| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
onResize only for home page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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
__________________
Sean X-Cart Gold - 4.2.1 PHP - 5.2.9-1 MySQL - 5.1.32 IIS 6.0 w/ FastCGI Windows Server 2003 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() {if $main eq "catalog" and $current_category.category eq ""}
{/if}
__________________
xcart 5.1.2 |
|||||||||
#3
|
|||||||
|
|||||||
![]() You sir are fantastic, that worked exactly as I wanted it to.
Cheers
__________________
Sean X-Cart Gold - 4.2.1 PHP - 5.2.9-1 MySQL - 5.1.32 IIS 6.0 w/ FastCGI Windows Server 2003 |
|||||||
|
|||
X-Cart forums © 2001-2020
|