![]() |
onResize only for home page
Hello,
I have added an advertisement panel which on resize will display 1 - 4 panels depending on the size of the browser window. Now the panel itself is working as I want it to, the only issue I am running into is the onResize tag which goes in the <body> section like so: <body onresize="resizethat()">. I have placed that inside of skin1/customer/home.tpl and I assumed that the template was only used for the home page though it looks to be using it for many pages though I only want the ad panel on the home page. That being said, I would like to know if there is an if statement I can use that when someone is on home.php and regardless if there is any variables or anything after the .php that it will allow the onResize, otherwise it will just ignore it. If there is another way to go about doing this please let me know. As well, if you require code samples, just let me know. Cheers, Sean |
Re: onResize only for home page
{if $main eq "catalog" and $current_category.category eq ""}
{/if} |
Re: onResize only for home page
You sir are fantastic, that worked exactly as I wanted it to.
Cheers |
All times are GMT -8. The time now is 01:13 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.