Click to See Complete Forum and Search --> : pop up window with no right click


photoguy
08-23-2003, 10:41 PM
I've got some photo gallery pages with thumbnails that point to this "pop up" java for close ups and wanted to modify it so there's no right click function in either IE and Netscape or any browser. I'm new and wondering if anyone can help?
Thanks

<!-- Begin POP-UP SIZES AND OPTIONS CODE


function popUpSlideshow(URL) {
var slideshow_width = 800
var slideshow_height = 600
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+slideshow_width+',heigh t='+slideshow_height+'');");
}


function popUp(URL) {
var view_width = 800
var view_height = 615
var look='toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width='+view_width+',heigh t='+view_height+','
popwin=window.open("","",look)
popwin.document.open()
popwin.document.write('<title>close up</title><head>')
popwin.document.write('<link rel=StyleSheet href="coolstyle.css" type="text/css" media="screen">')
popwin.document.write('<META HTTP-EQUIV="imagetoolbar" CONTENT="no">')
popwin.document.write('<script language="JavaScript">')
popwin.document.write('function noRightClick() {')
popwin.document.write('if (event.button==2) {')
popwin.document.write('alert(\'You may not right mouse click this page.\')')
popwin.document.write('}')
popwin.document.write('}')
popwin.document.write('document.onmousedown=noRightClick')
popwin.document.write('</script>')
popwin.document.write('</head>')
popwin.document.write('<body bgcolor="#36492D" background="picts/background-pop-ups.jpg" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" class="popup">')
popwin.document.write('<TABLE cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td align="center">')
popwin.document.write('<br><center>')
popwin.document.write('<TABLE cellpadding="15" cellspacing="0" border="1" bordercolor="#FFFFFF" style="border-collapse: collapse"><tr><td>')
popwin.document.write('<img src="'+URL+'"><br>')
popwin.document.write('</td></tr></table>')
popwin.document.write('</td></tr><tr><td valign="top" align="center">')
popwin.document.write('<br><form><input type=submit value="Close" onmouseover="this.className=\'buttonon-popups\'" onmouseout="this.className=\'button-popups\'" class="button-popups" onClick=\'self.close()\'></form><br>')
popwin.document.write('</center>')
popwin.document.write('</td></tr></table>')
popwin.document.write('</body>')
popwin.document.close()
}


// End -->





<!-- Begin full screen

function fullScreen() {
window.open(location.href,'fullscreen','fullscreen,scrollbars')
}

// End -->

zachzach
09-12-2003, 06:42 PM
please be clearer so there is a pop up page, do you want no right clicks on both page, one page, one image, all images
zach

photoguy
09-12-2003, 11:51 PM
zachzach, thanks for replying.... the script that I posted about is a popup closeup window for one image each, it has no right click script that works for IE but I couldn't find anything that worked for both IE and Netscape too. The popup script displays an enlarged image of a thumbnail pic from a gallery page which already has a no right click script that works with both IE and Netscape. Perhaps seeing it in person might make it clear. www.feralflowers.com/closeup1-1.htm is an example of what I'm doing. Click on the image for a closeup window and that's where I want no right click.
I appreciate any advice.
photoguy

swon
09-13-2003, 05:12 AM
Don't forget, if someone wanna have this image, the noright-click-function can't save your image:

here's the image:

http://www.feralflowers.com/gallery/Fgallery1-1.jpg

zachzach
09-13-2003, 10:58 AM
so you have a page that opens a page and you want a "no-right click" script on the popup, am i correct?

one, if your going to do this noright click, please add some scripts in to help the disabled because alot of those pll havce functions built into there rightclick mouse

umm that link is broken please put the code in and remember to use [cod e] and [/cod e] (without the spaces)

i think i understand what you want but i dont understand why its not working please do the above
zach

zachzach
09-13-2003, 11:01 AM
oh wait, nowe the links working

(im on wierless that explains lol)



now i understand but please post the code


i could look at it but my editor screws it up where it has weird box symbols

now its clear post the code ill see what i can do
zach

zachzach
09-13-2003, 11:09 AM
ok i cant find a script or make on(im only good at ie) that does that, but someone else will

try adding "sample" text on your images and then watermark them or one or the other or both

pll can always just go to veiw....then source or click the edit page toolbar button....or file....edit withnotpad/microsoft frontpage

and add lots of coppyright notices all over the place to scare those "image-stealer" people off
zach