|
-
can anyone give me the code for a no right click option
<param name= ???????>
i believe it goes in the above code - i had the code but seemed to have lost it.
thanks
-
If its JAVASCRIPT to prevent users from right clicking you are after try the following...
<script language=JavaScript>
function clickIE() {
if (document.all) {
return false;
}
}
function clickNS(e) {
if (document.layers||(document.getElementById&&!docum ent.all)) {
if (e.which==2||e.which==3) {
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS;
}
else{
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function("return false")
</script>
This will also supress an alert to the user.
Cheers...
-
Originally posted by ela4u
can anyone give me the code for a no right click option
<param name= ???????>
i believe it goes in the above code - i had the code but seemed to have lost it.
thanks
generate the HTML from SWISH with the menu option turned of (in the Export Panel) and you'll have exactly what you want.
That's better than hand-coding <object> and <param> tags yourself.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|