I have buttons with mouse over effects like
<img src=pic/button/fast_right_a.png
OnMouseOver=bp("fast_right","c")
OnMouseOut=bp("fast_right","a")
height=20 width=60 border=0 name=fast_right
alt="something">
The old javascript worked fine in
MSIE and Mozilla
function bp(n,v){
this.document[n].src=eval(n+v+".src")}
I just wanted to implement mouse over also for
graphic input buttons.
<input type=image align=absmiddle SRC=pic/button/find_a.png
OnMouseOver=bp("find","c")
OnMouseOut=bp("find","a")
height=24 width=68 border=0 name=find
alt="search and find">
So I changed the old javascript against
function bp(n,v){
document.getElementById(n).src=eval(n+v+".src")}
This works very fine with MSIE
Mouse over normal images and input buttons.
But it produces only full idiotic error messages
with Mozilla 0.9.8
Why to the hell does this browser behave not normal?
Error: document.getElementById(n) has no properties
Source File: file:///E:/internet/heal-incontinence.com/pic/layout.js
Line: 238
--
Roland M�sl
http://pege.org Clear targets for a confused civilization
http://BeingFound.com Web Design starts at the search engine