Ok, if anyone has the same problem with these scripts clashing i have figured out the reason why...
In the script for the Cross Browser Marquee, there is a function called populate which at the end of it has the line window.onload=populate (see below).
Code:
function populate(){
if (iedom){
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
cross_marquee.innerHTML=marqueecontent
actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
}
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2
ns_marquee.left=parseInt(marqueewidth)+8
ns_marquee.document.write(marqueecontent)
ns_marquee.document.close()
actualwidth=ns_marquee.document.width
}
lefttime=setInterval("scrollmarquee()",20)
}
window.onload=populate
The window.onload clashes with the <BODY onload=""> event of the Chained Select Menu. Essentially the BODY onload event never fires.
The way i got round this was to comment out or remove that window.onload=populate line and ammend the body onload event to the following.
Code:
<BODY onload="initListGroup('chainedselectmenu', document.listmenu0.firstlevel, document.listmenu0.secondlevel, document.listmenu0.thirdlevel, 'saveit');populate()">
i.e. i added the populate function to the body onload event rather than using the window.onload method.
I hope this helps anyone with similar problems with scripts clashing.
Bookmarks