I mixed different Js together in order to have visual effects on my page.
They perfectly work separately.
The problem appears in netscape on a rollover effect when i mix them.
The communicator console shows me this message:
"document[name] has no properties"
The script i use for the rollover is quite simple, it goes like this:
---------------------------------------------------------------------------------------------------
<SCRIPT LANGUAGE="javascript">
var NN3 = false;
image1= new Image();
image1.src = "popup/uneed.gif";
image1on = new Image();
image1on.src = "popup/uneed.gif";
image1alt = new Image();
image1alt.src = "popup/bm1.gif";
image1alton = new Image();
image1alton.src = "popup/bm1_what_roll.gif";
function on3(name) {
document[name].src = eval(name + "on.src"
document["hbl"].src = eval(name + "alton.src"
}
function off3(name) {
document[name].src = eval(name + ".src"
document["hbl"].src = eval(name + "alt.src"
}
NN3 = true;
function on(name) {
if (NN3) on3(name);
}
function off(name) {
if (NN3) off3(name);
}
</SCRIPT>
--------------------------------------------------------------------------------------------------
Then goes the usual OnMouseOver and Out in the body tag.
This works perfectly alone on both browers, but not when i mix it with other JS.
So what is the missing element to make it work on netscape ?
Anyone knows ?
[sig][/sig]
They perfectly work separately.
The problem appears in netscape on a rollover effect when i mix them.
The communicator console shows me this message:
"document[name] has no properties"
The script i use for the rollover is quite simple, it goes like this:
---------------------------------------------------------------------------------------------------
<SCRIPT LANGUAGE="javascript">
var NN3 = false;
image1= new Image();
image1.src = "popup/uneed.gif";
image1on = new Image();
image1on.src = "popup/uneed.gif";
image1alt = new Image();
image1alt.src = "popup/bm1.gif";
image1alton = new Image();
image1alton.src = "popup/bm1_what_roll.gif";
function on3(name) {
document[name].src = eval(name + "on.src"
document["hbl"].src = eval(name + "alton.src"
}
function off3(name) {
document[name].src = eval(name + ".src"
document["hbl"].src = eval(name + "alt.src"
}
NN3 = true;
function on(name) {
if (NN3) on3(name);
}
function off(name) {
if (NN3) off3(name);
}
</SCRIPT>
--------------------------------------------------------------------------------------------------
Then goes the usual OnMouseOver and Out in the body tag.
This works perfectly alone on both browers, but not when i mix it with other JS.
So what is the missing element to make it work on netscape ?
Anyone knows ?
[sig][/sig]