Forum Moderators: travelin cat

Message Too Old, No Replies

JS problem in mac IE 5.1 help

         

thaker2002

1:39 am on May 15, 2003 (gmt 0)

10+ Year Member



i have some JS on my site it it wont work on the macs. i dont know why. please help

thaker2002

2:33 am on May 15, 2003 (gmt 0)

10+ Year Member



here is the code

<img border="0" src="Home.png" width="120" height="16" name="Home" onmouseover="document['Home'].src='HomeB.png'" onmouseout="document['Home'].src='Home.png'"</a>

ShawnR

3:56 am on May 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I can't see anything obvious. Check that the mac you are testing on doesn't have Javascript disabled (e.g. do an alert("hello world") ). If that is not the problem, it may be that mac IE 5.1 doesn't support .png, so see if the symptoms change using gif. You could try other ways to write your assignments, such as document.Home.src='HomeB.png' (although I don't see anything wrong with the way you have it).

Note that you could do the mouse-over effect using css instead.

Shawn

thaker2002

1:36 pm on May 15, 2003 (gmt 0)

10+ Year Member



thanks i will try that