MnInShdw
asked on
setAttribute in Firefox
The following script works perfectly in Internet explorer.
but it does nothing in FireFox. How can I modify it work
in FireFox too.
thanks for your help
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
<style>
.imgCls {border: none;}
.imgClsClick {border: 1px solid black;}
</style>
<img src="japnuma.png" onmousedown="setAttribute( 'className ', 'imgClsClick');" onmouseup="setAttribute('c lassName', 'imgCls');" />
but it does nothing in FireFox. How can I modify it work
in FireFox too.
thanks for your help
--------------------------
<style>
.imgCls {border: none;}
.imgClsClick {border: 1px solid black;}
</style>
<img src="japnuma.png" onmousedown="setAttribute(
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Million thanks for your quick help
Your welcome! I'm glad that I could help. Thank you for the grade, the points and the fun question.
bol
bol
<img src="japnuma.png" onmousedown="setAttribute(
But will not work in IE :)
So use b0lsc0tt's version :)