| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to add javascript for rolloverbutons | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi there,
![]() Please help me! I am a web designer and i am using this software first time. i have created a seperate template file(main-buttons.tpl) for main buttons of the site i am designing. And i have called that file in home.tpl template by using include function. i had first created rollover buttons in a table using dreamweaver and from there i have copied the coding and pasted it in main-buttons.tpl file. (to mention i have not copied javascript which appears b/w head tags but some script along with the images is copied and i think they are calling the functions from javascript, b/w head tags, for teh effect of rollover.) Everything is coming fine as desired in home page preview! except for the buttons aren't showing up rollover images when we go over them. I know that the javascript is placed in b/w head tags and an onload function is added, which loads the rollover images, inside the body tag. Please tell me where to place the "javascript" and "onload" function and how. It would be so kind of you ![]() Hoping to receive the solution of my problem soon! Thanks Bye
__________________
Rohit Sharma |
|||||||
#2
|
|||||||
|
|||||||
![]() Thing to remember is that you need to put javascript between {literal}{/literal} tags to make sure that doesn't think it is smarty code. The thing that throws it out in javascript is the {
Do that and all will be well.
__________________
ex x-cart guru ![]() |
|||||||
|
|||
X-Cart forums © 2001-2020
|