PDA

View Full Version : unnceccessary code


pinbrook
19-Mar-2004, 01:44 PM
I am going through all my actinic templates attempting to tidy up the code and reduce it.

The site uses text links for navigation so one of the things i would like to remove is the OnLoad="NETQUOTEVAR:ONLOAD"

becasue it translates to OnLoad="PreloadImages('home2.gif','back2.gif','sitemap2.gif','info2.gif','cart2.gif','order2.gif'

ie loading images I don't use

I also end up with the following code here is a snippet

<A HREF="http://www.surf-wax.co.uk" TARGET="_self" onMouseOver="SwapImage('nav_home','home2.gif')" onMouseOut="RestoreImage()"><span class="actxxsmall_link">HOME</span></A>&nbsp; <img src="bullet.gif">&nbsp;<A HREF="sitemap.html" TARGET="_self" onMouseOver="SwapImage('nav_sitemap','sitemap2.gif')" onMouseOut="RestoreImage()">

the code for image rollovers is still there....

can anyone throw a few ideas out.....

Mike Hughes
19-Mar-2004, 01:58 PM
Like you I use hard coded text links for navigation. I've had the 'onload' bits commented out without a problem for over a year now.

Mike