Hello, I have put java script code for my drop down menu and are using java script code for a lightbox which opens the images in a white pop up box, the java script for the menu is causing issues with the light box so i am just wondering what can i do to the code so i can fix the problem, see the js code below, let me know, thanks.
//Disable right mouse click Script //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive //For full source code, visit http://www.dynamicdrive.com
var message="Function Disabled!";
/////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } }
function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } }
if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; }
Your light box code frightens me... it has IE4 and NS4 in it, and layers are being deprecated soon... how old is it?
Since you're using jQuery anyway, why not try using a more up-to-date jQuery lightbox like Colorbox? Then you won't need to include the prototype and scriptaculous libraries.
Also, a demo set up on jsFiddle would make it much easier to troubleshoot the problem.
I have put java script code for my drop down menu and are using java script code for a lightbox which opens the images in a white pop up box, the java script for the menu is causing issues with the light box so i am just wondering what can i do to the code so i can fix the problem, see the js code below, let me know, thanks.
Since you're using jQuery anyway, why not try using a more up-to-date jQuery lightbox like Colorbox? Then you won't need to include the prototype and scriptaculous libraries.
Also, a demo set up on jsFiddle would make it much easier to troubleshoot the problem.