browser_name = navigator.appName;
browser_version =
parseFloat(navigator.appVersion);
if(browser_name == "Netscape" &&
browser_version >= 3.0) { roll = 'true';}
else if (browser_name == "Microsoft Internet
Explorer" && browser_version >= 4.0) { roll =
'true';}
else { roll = 'false'; }
function msover1(img,ref) { if (roll == 'true')
{ document.images[img].src = ref; } }
function msout1(img,ref) { if (roll == 'true')
{ document.images[img].src = ref; } }
...
...
<td><p align="center"><a href="index.html"
onmouseover="msover1('home','images/homeOV.bmp');"
onmouseout="msout1('home','images/home.bmp');"><im
g
src="images/home.bmp" alt="Home"
border="0" width="76"
height="15" name="home"> </a></p></td>
any help would be greatly appreciated.
--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---
HTH
HTML is caseless. HTML is *supposed* to be read regardless of casing.
<A OnMOUSEover="alert()"> is the same as <A onMouseOver="alert()"> or <A
onmouseover="alert()"> ...
Events linked to HTML elements are caseless, just as the language that
the attribute is written in is supposed to be. If Netscape requires
camelcasing on their HTML attributes, then there's something wrong with
*their* spec.
Hope this helps....
~8^)
--
_____________________________________________________________
B&D Technologies
http://www.bd-tech.com
Antoni Biliardis - ant...@bd-tech.com
Tait Milliken wrote in message <3742FBAD...@rvjintl.com>...
>Netscape is less forgiving when it comes to what some might consider
>"minor" errors in coding. Your "onmouseover" and "onmouseout" statements
>should be written as "onMouseOver" and "onMouseOut" -- note the
>capitalization. Javascript is (supposed to be) sensitive to such
>capitalization errors. I guess that IE is non-conforming in that
>respect.
>
>i'm having problems doing a simple mouseover in
>netscape. it works fine in IE4/5 but doesn't work
>in netscape. here's the code i'm using:
<snip>
>onmouseover="msover1('home','images/homeOV.bmp');"
>
>onmouseout="msout1('home','images/home.bmp');"
I haven't tried the script locally, but the first thing I'd attempt is
turfing the bmp's. Think of them as an "MS only" deal. Assuming the
rest of the script is viable, converting the images to jpg's or gif's
should set things right.
BTW, I read one of the replies to this message commenting on the case
sensitivity of "onmouseout/onmouseover". I've used the tags in all
uppercase on my mess... MSIE, NN, & Opera don't seem to mind in the
slightest. Strange.
Erik Jan Tromp
London, Ontario, Canada
ejt...@yahoo.com
http://www.execulink.com/~gloriae/
"If I wanted to hear the pitter-patter of little feet, I'd put shoes on my cat."