lilchici13
01-22-2003, 12:04 AM
i got the script from lissa and sometimes it does work but after i try it out a few times it goes away! i really don't want people stealing my hard made graphics help my site is:
http://www.geocities.com/lilchici13/index.html
lefty
01-22-2003, 12:12 AM
Your css and javascript codes are supposed to be in between your <HEAD> tags.... you have them after all your page info.
lilchici13
01-22-2003, 12:19 AM
Here is my code would this be right? Also i put it in the index, since I use frames should I put it in the right side of the webpage?
<html>
<head>
<title>~*The Stars Are The Limit With Eureka*~</title>
<script language="JavaScript"> <!--
// No rightclick script v.2.5
// (c) 1998 barts1000
// barts1000@aol.com
//provided free at http://www.lissaexplains.com
// Don't delete this header!
var message="Sorry for all of you trying to take my stuff:(\n\nContent & graphics are not for public use, unless I say so of course! \n Just remember I worked hard. So if you want awesome graphics you can make em!"; // Message for the alert box
// Don't edit below!
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script>
<META NAME="keywords" CONTENT="html, css, javascript, graphics, web design, graphic design, html help">
<META NAME="description" content="Graphic and HTML help for beginners of all ages. Tutorials and free html code is also available.">
<style>
</style>
</head>
<frameset cols="180,*"border=0 frameborder=0 framespacing=0>
<frame src="left.html" NAME="left" scrolling=no>
<frame src="right.html" NAME="right" scrolling=yes>
</frameset>
</frameset>
<body>
</body>
<noframes>
<a href="your main page.html">Click Here</a>
</noframes>
</html>
I'd hate to disappoint you, but the right-click script doesn't really stop anyone from stealing anything. If you're using it, you should also make sure that all your links are targeted properly - because visitors will no longer be able to right-click and select "open in new window" ;)
Also, since your site uses frames, you want to put that script on every page, except the index.html page. ;)