tman
08-13-2004, 07:38 AM
can anyone help me modify this plz i need\want it to open random url window instead of the same one have tried var window=new array() etc but get errors ( frontpage expected ')' or "," )
want it to go { window.open("http://www.your site link { window.open("http://www.new link window.open("http://www.new link etc etc random order
script works on right click only (below works) but would like it to random url to plz
- any help would be appreciated thanks Tman
<!--
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3))
{ window.open("http://www.your site link etc","top","width=600,height=430,toolbar=yes,location=0,status=yes,menubar=0,scrollbars=1,resizable=1");
window.focus();
alert('ooooh **** you right clicked')
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
//-->
yep don't know bulk about js lol
thanks tm
want it to go { window.open("http://www.your site link { window.open("http://www.new link window.open("http://www.new link etc etc random order
script works on right click only (below works) but would like it to random url to plz
- any help would be appreciated thanks Tman
<!--
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3))
{ window.open("http://www.your site link etc","top","width=600,height=430,toolbar=yes,location=0,status=yes,menubar=0,scrollbars=1,resizable=1");
window.focus();
alert('ooooh **** you right clicked')
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
//-->
yep don't know bulk about js lol
thanks tm