Link to home
Start Free TrialLog in
Avatar of badwolfff
badwolfffFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Why does my code work perfectly on all browsers but IE 8 and 9?

Please could someone have a look at this page and tell me where I am going wrong. It is driving me mad!

http://www.absolutproject.com/dominator

This code works on ALL latest browsers including on my iphone and ipad but NOT on IE8 or 9!
Could anyone please suggest a solution or point out the problem to me?

thanks so much
Avatar of Gregg
Gregg
Flag of United States of America image

hi badwolfff,

Please switch the nesting of anchor tag and list element.:

<a href="javascript:exit('yachtDivName[i]');"><li>...</li></a>

Open in new window


with

<li><a...></a></li>

Open in new window


This causes invalid html. Try and see if that helps.
Avatar of leakim971
Pu this in the first script in your body section instead in head section :

					var yachtDivName 	= 	new Array("d620", "d680", "d720", "d780", "d860", "d29m", "d36m", "d40m");	
					var yachtName 		= 	new Array("620", "680", "720", "780", "860", "29m", "36m", "40m");	
					var yachtFeeling 	= 	new Array("touch", "feel", "love", "seduce", "escape", "dream", "imagine", "desire");

Open in new window

     
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
all the other function you need inside your body script, put them in the body instead in script in the head section
Avatar of badwolfff

ASKER

sorry guys my access to this site was blocked due to some subscription issues.
I will try your suggestions out asap and get back to you :)

thanks so much for helping out