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

Adding a Preload Images onload call to the existing Code

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-04-2006, 10:04 PM
 
w3designstudios w3designstudios is offline
 

Member
  
Join Date: Jun 2005
Location: Frederick, MD
Posts: 17
 

Default Adding a Preload Images onload call to the existing Code

Alright, I'm beating my head against a wall here. All I want to do is add an "onload" to the <head> tag but I'm drawing a blank.

Code:
<body{$reading_direction_tag}{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}>

I am trying to add the following into the above:
Code:
onLoad="MM_preloadImages('images/rotors_left_f2.jpg','images/brakepads_left_f2.jpg','images/contactus_left_f2.jpg','images/home_left_f2.jpg');

Could anyone provide any insight into this? I can't for the life of me figure out where the $body_onload is coming from?
__________________
Russ Williams
Primary Consultant

W3 Design Studios
X-Cart Gold 4.4.1
Reply With Quote
  #2  
Old 11-08-2006, 08:46 PM
 
w3designstudios w3designstudios is offline
 

Member
  
Join Date: Jun 2005
Location: Frederick, MD
Posts: 17
 

Default Re: Adding a Preload Images onload call to the existing Code

Anyone have any idea on how to add some code to the <body> tag?
__________________
Russ Williams
Primary Consultant

W3 Design Studios
X-Cart Gold 4.4.1
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 02:04 PM.

   

 
X-Cart forums © 2001-2020