GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   Redirect on Event.MOUSEDOWN can it be done? (https://gfy.com/showthread.php?t=892091)

jmcb420 03-06-2009 09:15 PM

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.:thumbsup


All times are GMT -7. The time now is 01:24 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123