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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-04-2001, 05:09 AM   #1
spider1
Registered User
 
Join Date: Apr 2001
Posts: 24
No right click cgi script

Anyone knows where can i find cgi script to disable right mouse click...no java scripts

thanks
spider1 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-04-2001, 06:35 AM   #2
Susan
Confirmed User
 
Join Date: Feb 2001
Location: Amost UK central
Posts: 772
CGI is a gateway not a method of controlling browser functions. You will need to use code within the page to control the right click.
All a server side script can do for you is return some html with instructions on what to do with the right mouse click, you might as well code it into the document.

What are you trying to do stop people taking pics off the right click ? I wouldn't bother, put the right click to better use.
Susan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-04-2001, 07:24 AM   #3
Kat - Fast
Confirmed User
 
Join Date: Feb 2001
Location: The bushes behind your house
Posts: 2,303
http://javascript.internet.com/page-...ght-click.html

there ya go, i know it's java - but it's the only thing i can find right now

[This message has been edited by Kat (edited 05-04-2001).]
Kat - Fast is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-04-2001, 07:30 AM   #4
Kat - Fast
Confirmed User
 
Join Date: Feb 2001
Location: The bushes behind your house
Posts: 2,303
http://sitelevel.whatuseek.com/query.go?crid=0c4f00a65e9d2741&query=right%20click &slice_title=&page=&domain=&exclude=&autocustomize =

DHTML this time
Kat - Fast is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-04-2001, 07:40 AM   #5
RedShoe
赤い靴 call me 202-456-1111
 
RedShoe's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
I agree with Kat, you need a jS, or dhtml.

If you still want CGI, you could put this script on a blank page and use CGI to call the script, so that if you ever want to change the script you only need to change it once. And it would in effect change across your entire site.
Of course, you could do the same thing without CGI as well.

http://www.dynamicdrive.com/dynamicindex9/noright2.htm

------------------
[email protected]
LeeannOnline.com
usexfan.com
ICQ : 114683191
RedShoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-04-2001, 11:52 AM   #6
Expo
Registered User
 
Join Date: Apr 2001
Location: Detroit MI
Posts: 80
Quote:
Originally posted by spider1:
Anyone knows where can i find cgi script to disable right mouse click...no java scripts

thanks
Try this, this will disable EVERY FUNCTION associated with the right lick.

< !--Begin Cut-->

script
if (window.Event) // Only Netscape will have the CAPITAL E.
document.captureEvents(Event.MOUSEUP); // catch the mouse up event

function nocontextmenu() // this function only applies to IE4, ignored otherwise.
{
event.cancelBubble = true
event.returnValue = false;

return false;
}

function norightclick(e) // This function is used by all others
{
if (window.Event) // again, IE or NAV?
{
if (e.which == 2 &#0124;&#0124; e.which == 3)
return false;
}
else
if (event.button == 2 &#0124;&#0124; event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}

}

document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
/script
< !--End Cut-->

That is to be placed in you after your body tag.

Hope that helps. You will also have to add the "<" and the ">" arround the "script". I didn't know any other way to place the code in this post.

- Expo


[This message has been edited by Expo (edited 05-04-2001).]

[This message has been edited by Expo (edited 05-04-2001).]
Expo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.