...

View Full Version : Broken Rollover Images



brian.feister
02-11-2008, 05:34 AM
Hi Everyone,

I have scoured the net looking for solutions and possible explanations why my rollover images could be broken. Hopefully someone can help. The URL is:

http://liquidlovetrance.com
http://liquidlovetrance.com/liquidstyle.css

The navigation links beneath the header image are supposed to rollover and I wish I could give you more help in troubleshooting but I'm really not sure what my problem is.

Thanks!
Brian

twodayslate
02-11-2008, 05:45 AM
http://www.pageresource.com/jscript/jhover.htm

I would use CSS. Have the image as a background.

Also validate your page.

_Aerospace_Eng_
02-11-2008, 05:58 AM
I agree with twodayslate however the reason your code isn't working is because you messed up the javascript. You tried editing a function without knowing how it worked and you broke it.
Change this

function MM_preloadImages(dreamstar_banner.png), (Whoarewe.png), (footer.png), (home.png), (what.png), (where.png), (when.png) { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
to this

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

brian.feister
02-11-2008, 06:10 AM
Thanks for your help twodayslate and _Aerospace_Eng... I appreciate!

Also, to clarify, the website is for a not-for-profit event that I'm in charge of.

brian.feister
02-11-2008, 06:28 AM
Hi there,

I fixed the bug in the script, but unfortunately, there must be another problem because the rollover is still broken.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum