Spectacular Free Slide Show
MP3 Sound Streamer
Email Link Encoder
Stream Website Audio
Cool Free Text Scroller
CodeLifter.com
S
oftware & S
cripts by CodeBrain.com
Home
JavaScripts
PopUp Maker
-
po
pup wind
ows
CodeLifter 5
-
source viewer
ScrollBar Styler
-
color scrol
lbars
Flash Fixer
-
rem
ove al
erts
Roll-Over Maker
-
image roll-overs
Link Cloaker 5
-
enc
rypt links
Site Capture 3
-
hidden frames
CHMOD 2 Utility
-
chmod utility
BlackBird 3.0
-
browser shell
Zoom 1.0
-
magnifier
MicroTicker.com
-
text scroller
CodeBrain.com
-
j
ava app
lets
D3Q.com
-
xp icon control
BrainCode.com
-
j
ava app
lets
MailToProtector
-
protect email
Java Applets
Perl Scripts
Affiliate Program
Index
No-Right-Click Script
Launches PopUp Window
Index
DEMO
Right-click anywhere
on the page.
Click
here
to select the code in the window below.
Use Ctrl+C to copy it to your clipboard.
============================================================ Script: No-Right-Click Script Launches PopUp Window Functions: Blocks right-click on mouse and launches a popup window. Browsers: NS4-7, IE4 & later Author: etLux ============================================================ Put the following script in the head of your page: <script language="JavaScript"> // Script Source: CodeLifter.com // Copyright 2003 // Do not remove this header. // ----------- Setups ------------------ // Set the address, width, height, top // and left dimensions for the popup // window below. // ------------------------------------- PopUpURL = "http://www.yoursite.com/yourpage.html"; PopUpLeft = 100; PopUpTop = 100; PopUpWidth = 500; PopUpHeight = 100; // ------------------------------------- // Do not edit anything below this line. // ------------------------------------- isIE=document.all; isNN=!document.all&&document.getElementById; isN4=document.layers; popO='left='+PopUpLeft+',top='+PopUpTop+',width='+PopUpWidth+',height='+PopUpHeight if (isIE||isNN){ document.oncontextmenu=checkV; }else{ document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP); document.onmousedown=checkV;} function checkV(e){ if (isN4){ if (e.which==2||e.which==3){ dPUW=window.open(PopUpURL,'nrc',popO); return false; }}else{ dPUW=window.open(PopUpURL,'nrc',popO); return false;}} </script> Additional Notes: In the popup window that you open with this script, you may wish to add onload="self.focus()" to the body tag, as shown immediately below. This forces the popup to come to the front. <body onload='self.focus()'> ===========================[end]============================
Get The Code!
CodeLifter is a
CodeBrain.com
Sister Site
© 1995-2008 OEC Corp & CodeLifter.com
CodeLifter™ & CodeBrain™
Legal Notices
CodeBrain InterNET Group
BrainCode.com
CodeFoot.com
CodeBelly.com
D3Q.com
etLux.com
FFFast.com
IEFix.com
PopUpWorks.com
MicroTicker.com
DavidSosnowski.com
OECCorp.com
MailToProtector.com
CodeBrain.com
Free MP3
Downloads
Contemporary classical music, completely free.
.