X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Adding a Preload Images onload call to the existing Code (https://forum.x-cart.com/showthread.php?t=26379)

w3designstudios 11-04-2006 10:04 PM

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?

w3designstudios 11-08-2006 08:46 PM

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?


All times are GMT -8. The time now is 07:13 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.