Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How to add javascript for rolloverbutons

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-04-2003, 03:43 AM
 
rohit rohit is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 36
 

Default How to add javascript for rolloverbutons

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
Reply With Quote
  #2  
Old 04-04-2003, 10:11 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:57 PM.

   

 
X-Cart forums © 2001-2020