Flash Games

 FAQ   Search   Members   Groups   User Control Panel      Login 

It is currently Fri Jan 09, 2009 5:53 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Right click alert
PostPosted: Tue Mar 06, 2007 7:35 pm 
Offline
100+ Club
User avatar

Joined: Mon Feb 26, 2007 3:31 am
Posts: 195
Location: Mansfield, OH
I'm working on a web site for a photography company....

I want to make it so that when the user views the full size picture from the thumbnail, they can not right click on the image to copy and paste the image.

I need code that will bring up an alert when the user right-clicks on the image.

An example of what i'm talking about is http://www.bullseyetattoos.com - click on any tattoo and try to right click on it. That's what I want to happen.

Can anyone help?

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 06, 2007 11:31 pm 
Offline

Joined: Sat Mar 03, 2007 4:40 pm
Posts: 32
Code:
<body onContextMenu="abort();return false">
<script language="JavaScript">
function abort()
{
msg = "YOUR MESSAGE HERE"
alert(msg) // REMOVE THIS LINE TO DISPLAY NO MESSAGE
return
}
</script>
</body>


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 07, 2007 5:49 pm 
Offline
100+ Club
User avatar

Joined: Mon Feb 26, 2007 3:31 am
Posts: 195
Location: Mansfield, OH
sachav wrote:
Code:
<body onContextMenu="abort();return false">
<script language="JavaScript">
function abort()
{
msg = "YOUR MESSAGE HERE"
alert(msg) // REMOVE THIS LINE TO DISPLAY NO MESSAGE
return
}
</script>
</body>


It doesn't work. Any other ideas?

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 07, 2007 11:38 pm 
Offline

Joined: Sat Mar 03, 2007 4:40 pm
Posts: 32
Put it online and/or show me the entire code


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 12, 2007 5:49 pm 
Offline
100+ Club
User avatar

Joined: Mon Feb 26, 2007 3:31 am
Posts: 195
Location: Mansfield, OH
sachav wrote:
Put it online and/or show me the entire code


Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Plymouth vs Shelby</title>

<style type="text/css">
<!--
body,td,th {
   color: #000000;
}
body {
   background-color: #999999;
}
a:link {
   color: #FF0000;
}
a:visited {
   color: #FFFFFF;
}
a:hover {
   color: #FF0000;
}
a:active {
   color: #333333;
}
.style2 {
   font-size: 14px;
   font-style: italic;
   font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style3 {
   font-size: 36px;
   font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style4 {font-size: 14px}
.style5 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px;}
.style6 {
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: x-small;
}
-->
</style></head>

<body>


<p align="center" class="style3"><a href="Sabourin_Photography.htm"><img src="Header.gif" alt="Sabourin Photography" name="header" width="504" height="180" border="0" id="header" /></a></p>
<p align="center" class="style2">Girls Basketball vs Shelby </p>
<p align="center" class="style5"><a href="Sabourin_Photography.htm">Home</a> | <a href="stpeters.htm">GBB vs St. Peters </a>| <a href="buckeye.htm">GBB vs Buckeye Central</a> | <a href="mansfieldchristian.htm">GBB vs Mansfield Christian</a></p>
<table width="200" border="5" align="center" cellspacing="5" bordercolor="#666666" bgcolor="#990000" id="vsshelby">
  <tr>
    <td><img src="Thumbnails/DSC_0002_Thumbnail.gif" alt="Click to see full size!" name="shelby1" width="120" height="120" id="shelby1" /></td>
    <td><img src="Thumbnails/DSC_0003_Thumbnail.gif" alt="Click to see full size!" name="shelby2" width="120" height="120" id="shelby2" /></td>
    <td><img src="Thumbnails/DSC_0004_Thumbnail.gif" alt="Click to see full size!" name="shelby3" width="120" height="120" id="shelby3" /></td>
    <td><img src="Thumbnails/DSC_0005_Thumbnail.gif" alt="Click to see full size!" name="shelby4" width="120" height="120" id="shelby4" /></td>
    <td><img src="Thumbnails/DSC_0006_Thumbnail.gif" alt="Click to see full size!" name="shelby5" width="120" height="120" id="shelby5" /></td>
  </tr>
  <tr>
    <td><img src="Thumbnails/DSC_0008_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0009_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0010_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0011_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0012_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
  </tr>
  <tr>
    <td><img src="Thumbnails/DSC_0013_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0014_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0015_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0016_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0017_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
  </tr>
  <tr>
    <td><img src="Thumbnails/DSC_0018_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0019_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0020_Thumbnails.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<p align="center" class="style2">&nbsp;</p>
<p align="center" class="style2">&nbsp;</p>
<p align="center" class="style2">&nbsp;</p>
<p align="center" class="style2">&nbsp;</p>
<p align="center" class="style2">&nbsp;</p>
<p align="center"><span class="style5"><a href="order.htm">Order a Picture</a></span> </p>
<p align="center" class="style4"><span class="style6">All pictures are copyrighted | &copy; 2007 Tom Sabourin | <a href="mailto:baseball_man0@yahoo.com">Contact us</a></span></p>
</body>
</html>


I took out the code that you gave me so you could see what I was working with before...

sorry if it took awhile, I just got back to class

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 13, 2007 12:40 am 
Offline

Joined: Sat Mar 03, 2007 4:40 pm
Posts: 32
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Plymouth vs Shelby</title>

<style type="text/css">
<!--
body,td,th {
   color: #000000;
}
body {
   background-color: #999999;
}
a:link {
   color: #FF0000;
}
a:visited {
   color: #FFFFFF;
}
a:hover {
   color: #FF0000;
}
a:active {
   color: #333333;
}
.style2 {
   font-size: 14px;
   font-style: italic;
   font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style3 {
   font-size: 36px;
   font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style4 {font-size: 14px}
.style5 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px;}
.style6 {
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: x-small;
}
-->
</style></head>
<script language="javascript">
msg = "Right click disabled!"
displaymsg = true // PUT displaymsg = false IF YOU WANT TO DISPLAY NO MESSAGE
var rightclick = new Object
rightclick.abort = function() { if(displaymsg==true) { alert(msg); return(false) } else { return(false) } }
</script>
<body onContextMenu="return rightclick.abort();">
 

<p align="center" class="style3"><a href="Sabourin_Photography.htm"><img src="Header.gif" alt="Sabourin Photography" name="header" width="504" height="180" border="0" id="header" /></a></p>
<p align="center" class="style2">Girls Basketball vs Shelby </p>
<p align="center" class="style5"><a href="Sabourin_Photography.htm">Home</a> | <a href="stpeters.htm">GBB vs St. Peters </a>| <a href="buckeye.htm">GBB vs Buckeye Central</a> | <a href="mansfieldchristian.htm">GBB vs Mansfield Christian</a></p>
<table width="200" border="5" align="center" cellspacing="5" bordercolor="#666666" bgcolor="#990000" id="vsshelby">
  <tr>
    <td><img src="Thumbnails/DSC_0002_Thumbnail.gif" alt="Click to see full size!" name="shelby1" width="120" height="120" id="shelby1" /></td>
    <td><img src="Thumbnails/DSC_0003_Thumbnail.gif" alt="Click to see full size!" name="shelby2" width="120" height="120" id="shelby2" /></td>
    <td><img src="Thumbnails/DSC_0004_Thumbnail.gif" alt="Click to see full size!" name="shelby3" width="120" height="120" id="shelby3" /></td>
    <td><img src="Thumbnails/DSC_0005_Thumbnail.gif" alt="Click to see full size!" name="shelby4" width="120" height="120" id="shelby4" /></td>
    <td><img src="Thumbnails/DSC_0006_Thumbnail.gif" alt="Click to see full size!" name="shelby5" width="120" height="120" id="shelby5" /></td>
  </tr>
  <tr>
    <td><img src="Thumbnails/DSC_0008_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0009_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0010_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0011_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0012_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
  </tr>
  <tr>
    <td><img src="Thumbnails/DSC_0013_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0014_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0015_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0016_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0017_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
  </tr>
  <tr>
    <td><img src="Thumbnails/DSC_0018_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0019_Thumbnail.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td><img src="Thumbnails/DSC_0020_Thumbnails.gif" alt="Click to see full size!" width="120" height="120" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<p align="center" class="style2">&nbsp;</p>
<p align="center" class="style2">&nbsp;</p>
<p align="center" class="style2">&nbsp;</p>
<p align="center" class="style2">&nbsp;</p>
<p align="center" class="style2">&nbsp;</p>
<p align="center"><span class="style5"><a href="order.htm">Order a Picture</a></span> </p>
<p align="center" class="style4"><span class="style6">All pictures are copyrighted | &copy; 2007 Tom Sabourin | <a href="mailto:baseball_man0@yahoo.com">Contact us</a></span></p>
</body>
</html>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Yahoo [Bot] and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review

Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User:
Pass:
Log me on automatically each visit: