Click to See Complete Forum and Search --> : Help


soccer362001
08-25-2003, 07:19 PM
I'm not very good with Java Script so I really need some help.

I just want the alert to come up and not the table.

Code:
function buttoncheck(e) {
if (document.all && event.button==2) {
document.all.orderwindow.style.visibility="visible"
alert("Please order my HTML-source or pictures by email!")
return false
}
if (document.layers && e.which==3) {
document.orderwindow.visibility="visible"
alert("Please order my HTML-source or pictures by email!")
return false
}
}

function sendmail() {
if (document.all) {
document.all.orderwindow.style.visibility="hidden"
document.forms[0].submit()
}
if (document.layers) {
document.orderwindow.visibility="hidden"
document.orderwindow.document.forms[0].submit()
}
}

function closewindow() {
if (document.all) {
document.all.orderwindow.style.visibility="hidden"
}
if (document.layers) {
document.orderwindow.visibility="hidden"
}
}

if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=buttoncheck;

Jupac
08-25-2003, 07:25 PM
<SCRIPT language="Javascript1.2">
<!--
// please keep these lines on when you copy the source
// made by: Jason - http://come.to/Pur
// provided by: DarkN|TE - http://go.to/cyberchat/

var mymessage = "Sorry, But The Page Source For This Page Has Been Secured With A Special Javascript Preventing You From Viewing The Codes Used To Make This Page. If You Pressed The Right Button On Your Mouse By Accident, Please Be Careful Next Time. If You Did This On Purpose, Please Email Me If You Need Help With A Certain Script Or Else Find It At http://www.htmlgoodies.com/ ";

function rtclickcheck(keyp){
if (navigator.appName == "Netscape" && keyp.which == 3) {
alert(mymessage);
return false;
}

if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) {
alert(mymessage);
return false;
}
}

document.onmousedown = rtclickcheck
//-->

</SCRIPT>
but diabling the right clik wint do much:rolleyes:

soccer362001
08-25-2003, 07:29 PM
Thanks a lot

Jupac
08-25-2003, 07:31 PM
you bet..:D

pyro
08-25-2003, 08:54 PM
This is my favorite part... :rolleyes:

Originally posted by lakers01
But The Page Source For This Page Has Been Secured With A Special Javascript Preventing You From Viewing The Codes Used To Make This Page.Last I checked, no rightclick scripts don't prevent anyone from getting the source...

Jupac
08-25-2003, 11:20 PM
lol i stole it of some goeocities site :') it was a noob:mad: :p