View Full Version : Another No Right Click Question
shortyluke
05-13-2000, 11:36 PM
I think I am still slightly confused.
I downloaded the script, and uploaded it onto my website's harddrive. Then, I pasted the script into the HTML. After that, I tested the script out by attempting to right click one of my pictures, and it let me. Is there something I am missing or doing wrong?
Owen_MC_Evans
05-14-2000, 04:08 AM
last time you posted the script you had pasted it into the wrong part of the page.
Scripts hvae to go between the <HEAD></HEAD> tags (where the title tag is held) for them to be entirely useful. Otherwise I can't help as I cant see the page to tell you what you are doing wrong
Owen
shortyluke
05-14-2000, 10:17 AM
I put the script inbetween <HEAD> and </HEAD>. But still, it is not working and neither is my other script. If you would like to take a look at the page source, you can visit the page at http://www.geocities.com/bsbgurlaj/main.html. Thank you very much for your help!
Hi,
I have had a look at your source code and I see several things wrong with it.
The no-right-click script is not actually inbetween your <head></head> tags but inbetween your </head><body> tags, you have your finishing head tag after <META NAME="AUTHOR" CONTENT="Lauren Luke"></HEAD>
you also have several closing body and html tags in various places through out your page.
</BODY><CENTER><img src="....
</BODY>
</HTML>
<SCRIPT LANGUAGE="JavaScript">
</html>
</HTML>
<IMG SRC="http://...
and the opening <SCRIPT LANGUAGE="JavaScript"> as seen above has noting in it or no closing </script> and there is no closing body tag and html tag at the end of your page.
you might want to sort out your basic html first, and then I will be only to happy to look at your script if it is still not working for you. http://talkboard.123webmaster.com/ubbhtml/smile.gif
Just post here and let me know when you get that sorted and if the script is producing errors.
good luck.
------------------
Ian
Web Development - Big Resources Inc
ian@123webmaster.com
ICQ: 25828668
BIG Resources.com (http://www.bigresources.com)
shortyluke
05-14-2000, 06:05 PM
Ok, I put the script inbetween the <HEAD> and </HEAD> tags. Then, I took out all fo the extra <BODY> and other unnecessary tags. Finally, I tested it out...and it still didn't work! I am very sorry for keep on needing help, but I am very new to Javascript!
Hi,
Ok, you're neally there, you still have a html problem.
Your closing head tag </head> must be before the beginning of your opening body tag <body>.
The correct layout is:
<html>
<head>
</head>
<body>
</body>
</html>
Yours currently is:
<html>
<head>
<body>
</head>
</body>
</html>
your closing head tag is after your first table: ..ALT=""></a></CENTER></TD></TR>
</TABLE>
</script></head>
which is inside your body, also there is a closing script tag there and it is not doing anything as there is not script to close.
As for the no-right-click script, when you install it, make sure this part:
var message="Sorry, that function is disabled.\nThis Page Copyrighted and\nImages and Text protected!\nALL RIGHTS RESERVED";
does not have any breaks in it and is one line as it is creating an "Unterminated String Constant".
Make those few changes and let me know how you get on. Good luck.
------------------
Ian
Web Development - Big Resources Inc
ian@123webmaster.com
ICQ: 25828668
BIG Resources.com (http://www.bigresources.com)
shortyluke
05-14-2000, 08:59 PM
It worked! Thank you so much for your help and your time spent helping me!
Hi,
I'm glad you have got it working, If you have another problems, just post them, we are only to happy to help where we can. http://talkboard.123webmaster.com/ubbhtml/smile.gif
All the best.
------------------
Ian
Web Development - Big Resources Inc
ian@123webmaster.com
ICQ: 25828668
BIG Resources.com (http://www.bigresources.com)
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.