angelbutt
11-28-2002, 11:00 AM
I hope this is the right place for this question, if not, I'm sorry. I'm new to this.
I've installed a *no right click* script to my web-log. I need this there in order to use the graphics I choose to use, it's in the artists rules. It worked fine for quite a while, but lately ANYTIME I make ANY change to my blog, it undoes itself. And I get an error message like:
A Runtime Error has occured.
Do you wish to debug?
Line: 407
Error: Expected ')'
This is what the no right click script looks like when I first install it:
<script language=JavaScript>
<!--
//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="Thank You For Visiting";
///////////////////////////////////
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;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
And this is what it looks like after only an hour or so:
<script language=JavaScript>
<!--
//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="Thank You For Visiting";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&amp;&amp;!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&amp;&amp;!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
It seems to chage for some reason. I know nothing about this kind of thing, but I can't figure out where all those litle amp;amp's come from? Can anyone give me any advice or help on this matter?? I really need this No Right Click in place, or I can't use the graphics I purchased. I know I've placed it in the right place (between <body> and </body>), because it will work for a while.
Christina:confused:
I've installed a *no right click* script to my web-log. I need this there in order to use the graphics I choose to use, it's in the artists rules. It worked fine for quite a while, but lately ANYTIME I make ANY change to my blog, it undoes itself. And I get an error message like:
A Runtime Error has occured.
Do you wish to debug?
Line: 407
Error: Expected ')'
This is what the no right click script looks like when I first install it:
<script language=JavaScript>
<!--
//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="Thank You For Visiting";
///////////////////////////////////
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;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
And this is what it looks like after only an hour or so:
<script language=JavaScript>
<!--
//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="Thank You For Visiting";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&amp;&amp;!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&amp;&amp;!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
It seems to chage for some reason. I know nothing about this kind of thing, but I can't figure out where all those litle amp;amp's come from? Can anyone give me any advice or help on this matter?? I really need this No Right Click in place, or I can't use the graphics I purchased. I know I've placed it in the right place (between <body> and </body>), because it will work for a while.
Christina:confused: