Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Sponsored Reviews   Improve your ranking, submit to directories   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 09-21-2004, 09:56 AM   #1 (permalink)
Moderator
 
South's Avatar
 
Join Date: 10-13-03
Location: Statesboro, Georgia
Posts: 2,953
iTrader: 0 / 0%
South is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest order
Alert

This script produces the "silent" no right click. I need it to serve an alert. Can this be done?

var disableRightClickString = "<script>function disableRightClick(e){if(document.layers){document. captureEvents(Event.MOUSEDOWN);document.onmousedow n = disableRightClick; }else document.oncontextmenu = disableRightClick; return document.rightClickDisabled = true;} disableRightClick(); </script>";


Thanks
__________________
"The modern definition of 'racist' is someone who is winning an argument with a liberal."

Statesboro Web Design | Southland Magazine
South is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 09-21-2004, 07:28 PM   #2 (permalink)
Moderator
 
South's Avatar
 
Join Date: 10-13-03
Location: Statesboro, Georgia
Posts: 2,953
iTrader: 0 / 0%
South is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest order
Where's Lazy Jim. Doesn't he usually know about this kinda stuff?
__________________
"The modern definition of 'racist' is someone who is winning an argument with a liberal."

Statesboro Web Design | Southland Magazine
South is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-21-2004, 08:05 PM   #3 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,941
iTrader: 0 / 0%
imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
all you have to do is add alert('your message'); to the section of code you want to use a popup alert screen.

imaginemn
__________________
Imagine Creative Services
Design : Marketing : Multimedia : More
imaginemn is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-21-2004, 08:36 PM   #4 (permalink)
Moderator
 
South's Avatar
 
Join Date: 10-13-03
Location: Statesboro, Georgia
Posts: 2,953
iTrader: 0 / 0%
South is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest order
OK, here's the script itself
.................................................. ........................

// JavaScript Document
//Kerberos Internet Services CC, Copyright 2004
//Image Studio V2.6
//http://www.kerberosdev.net
//http://www.kerberosb2b.com
var disableRightClickString = "<script>function disableRightClick(e){if(document.layers){document. captureEvents(Event.MOUSEDOWN);document.onmousedow n = disableRightClick; }else document.oncontextmenu = disableRightClick; return document.rightClickDisabled = true;} disableRightClick(); </script>";
isIE4 = document.all? true : false;
isIE6 = document.getElementById && document.all ? true : false;
isNS4 = document.layers? true : false;
isNS6 = document.getElementById && !document.all ? true : false;
var IMAGESTUDIO_CONTAINER_PREFIX = "IMAGESTUDIO_CONTAINER";
var IMAGESTUDIO_DISPLAY_PREFIX = "IMAGESTUDIO_DISPLAY";
var IMAGESTUDIO_DISPLAY_INFO_PREFIX = "IMAGESTUDIO_DISPLAY_INFO";
var IMAGESTUDIO_DISPLAY_IMAGE_PREFIX = "IMAGESTUDIO_DISPLAY_IMAGE";
var IMAGESTUDIO_DISPLAY_CELL_PREFIX = "IMAGESTUDIO_DISPLAY_CELL";
var IMAGESTUDIO_FILMSTRIP_PREFIX = "IMAGESTUDIO_FILMSTRIP";
var IMAGESTUDIO_FILMSTRIP_MINMAX_PREFIX = "IMAGESTUDIO_FILMSTRIP_MINMAX";
var IMAGESTUDIO_FILMSTRIP_CELL_PREFIX = "IMAGESTUDIO_FILMSTRIP_CELL";
var IMAGESTUDIO_FILMSTRIP_FRAMECELL_PREFIX = "IMAGESTUDIO_FILMSTRIP_FRAMECELL";
var IMAGESTUDIO_FILMSTRIP_STOP_R_PREFIX = "IMAGESTUDIO_FILMSTRIP_STOP_R";
var IMAGESTUDIO_FILMSTRIP_STOP_B_PREFIX = "IMAGESTUDIO_FILMSTRIP_STOP_B";
var IMAGESTUDIO_FILMSTRIP_FRAME_PREFIX = "IMAGESTUDIO_FILMSTRIP_FRAME";
var IMAGESTUDIO_FILMSTRIP_SCROLLMINUS_PREFIX = "IMAGESTUDIO_FILMSTRIP_SCROLLMINUS";
var IMAGESTUDIO_FILMSTRIP_SCROLLPLUS_PREFIX = "IMAGESTUDIO_FILMSTRIP_SCROLLPLUS";
var IMAGESTUDIO_idGenerator = new IDGenerator(0);
var IMAGESTUDIOMap = new Object();
var IMAGESTUDIOIDGenerator = null;
//Utility Functions
function IDGenerator(nextID){
this.nextID = nextID;
this.GenerateID = IDGeneratorGenerateID;




<yada yada yada>
__________________
"The modern definition of 'racist' is someone who is winning an argument with a liberal."

Statesboro Web Design | Southland Magazine
South is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-21-2004, 08:36 PM   #5 (permalink)
Moderator
 
South's Avatar
 
Join Date: 10-13-03
Location: Statesboro, Georgia
Posts: 2,953
iTrader: 0 / 0%
South is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest order
Here's what I include to call it

.................................................. ...............
<SCRIPT TYPE='text/javascript' src='http://www.912-352-7880.com/artists/amanda/myScripts/ImageStudio.js'></SCRIPT>
<SCRIPT>
var myImageStudioGallery = new ImageStudio();
myImageStudioGallery.resourceURL = 'http://www.912-352-7880.com/artists/amanda/IS_Res_Flames/';
myImageStudioGallery.baseURL_Thumbnails = 'http://www.912-352-7880.com/artists/amanda/thumbs/';
myImageStudioGallery.baseURL_Images = 'http://www.912-352-7880.com/artists/amanda/images/';
myImageStudioGallery.width = 450;
myImageStudioGallery.height = 395;
myImageStudioGallery.scrollSafe = false;
myImageStudioGallery.canPrint = false;
myImageStudioGallery.NoRightClick = true;
myImageStudioGallery.displayLayout = '1';
myImageStudioGallery.addImage("eye.gif","eye.gif", "Amanda - Eye","");
myImageStudioGallery.addImage("bird.gif","bird.gif ","Amanda - Bird","");
myImageStudioGallery.addImage("idea.gif","idea.gif ","Amanda - Idea","");
myImageStudioGallery.addImage("heart.gif","heart.g if","Amanda - Heart","");
myImageStudioGallery.addImage("fishbone.gif","fish bone.gif","Amanda - Fishbone","");
myImageStudioGallery.addImage("portrait.gif","port rait.gif","Amanda - Portrait","");
myImageStudioGallery.addImage("thumper.gif","thump er.gif","Amanda - Thumper","");
myImageStudioGallery.addImage("spider.gif","spider .gif","Amanda - Spider","");
myImageStudioGallery.addImage("lettering.gif","let tering.gif","Amanda - Lettering","");
myImageStudioGallery.Instantiate();
</SCRIPT>
__________________
"The modern definition of 'racist' is someone who is winning an argument with a liberal."

Statesboro Web Design | Southland Magazine
South is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-21-2004, 08:37 PM   #6 (permalink)
Moderator
 
South's Avatar
 
Join Date: 10-13-03
Location: Statesboro, Georgia
Posts: 2,953
iTrader: 0 / 0%
South is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest order
From that where do I put it?
__________________
"The modern definition of 'racist' is someone who is winning an argument with a liberal."

Statesboro Web Design | Southland Magazine
South is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you see the alert? Jason Coding Forum 6 05-15-2005 03:17 PM
Google Alert Dark_Matter Google Forum 7 05-18-2004 06:57 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 06:51 PM.
© Copyright 2008 V7 Inc