Hi – my first post – hope I’m not too dumb – please forgive me if so.
I have a problem with two javascript conflicting on my page.
I already have a javascript navigation menu. I now want to add a popup window, and I found a scipt from The Javascript source, but it doesn’t work.
If I remove the code for my nav menu, then the popup works fine, so clearly the two are conflicting in some way. Can I stop this happening?
code for the nav menu is:
<script language=”javascript”>
var NC6=(navigator.userAgent.indexOf(“Netscape6”)>0)?true:false;
var IE=(document.all)?true:false;
if(IE){
document.write(“<script language=”javascript” src=”menu.js”></script>”);
}else if(NC6){
document.write(“<script language=”javascript” src=”NCmenu.js”></script>”);
}
</script>
code for the popup window is:
<SCRIPT LANGUAGE=”JavaScript”>
<!– Idea by: Nic Wolfe (
<!– Web URL: [url]http://fineline.xs.mw
<!– This script and many more are available free online at –>
<!– The JavaScript Source!! [url]http://javascript.internet.com
<!– Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval(“page” + id + ” = window.open(URL, ‘” + id + “‘, ‘toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=200,left = 300,top = 200’);”);
}
// End –>
</script>
within the head tags and also
<BODY onLoad=”javascript:popUp(‘
Thanks very much for your help