|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
|||||||
| New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
|
Thread Tools |
|
|
#1 |
|
So Fucking Drunk
Industry Role:
Join Date: Oct 2006
Posts: 2,155
|
Redirect on Event.MOUSEDOWN can it be done?
Im trying to figure this out but coming up with nothing.
I want this to happen on a page of text links. Currently I have it so that the user would find their right click is disabled, but clicking the text link as you would normaly takes you to the url it points to. Heres the Javascript code currently allowing me to do this: <script language="Javascript1.2"> // function nrcIE(){ if (document.all){return false;}} function nrcNS(e){ if(document.layers||(document.getElementById&&!doc ument.all)){ if (e.which==2||e.which==3){ return false;}}} if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=nrcNS; }else{document.onmouseup=nrcNS;document.oncontextm enu=nrcIE;} document.oncontextmenu=new Function("return false"); </script> What I want to do is redirect users to a certian page on right click. I know it can be done, I just have dont know what i'm over looking. Google has been of no use this time. Any ideas? Thanks in advance.
__________________
I'm funner than AIDS, and easier to explain to your parents.
|
|
|
|