FrancartK
09-01-2005, 10:31 PM
I'm incorporating a script language of "no right button" into a web page of pictures and addresses of our membership which is for membership use only. That script works beautifully on the page, however, I have a feature that allows the picture to be enlarged and the "no right button" feature is subsequently ignored. I know so very little about JavaScript that you can't even call me a novice.
The second script is used to open smaller windows with the larger picture in it.
I would like to know if one java script can be embedded in another. The copy I have below is taken directly from my page and my goal is to incorporate your script the first part into the second part and if so where would your script go into the second.
The scrript looks like this:
<script language=3DJavaScript>
<!--
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com
var message=3D"";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if=20
(document.layers||(document.getElementById&&!document.all)) {
if (e.which=3D=3D2||e.which=3D=3D3) {(message);return false;}}}
if (document.layers)=20
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=3DclickNS;}=
else{document.onmouseup=3DclickNS;document.oncontextmenu=3DclickIE;}
document.oncontextmenu=3Dnew Function("return false")
// -->=20
</script>
<SCRIPT LANGUAGE=3D"JavaScript">
<!-- Begin to hide script contents from old browsers. =20
function prizewin(file, anchor) {
var url =3D file;
if (anchor) url +=3D "#" + anchor;
infowindow =3D window.open (url, "infowindow",
"titlebar,menubar=3Dno,toolbar=3Dno,hotkeys,height=3D425,width=3D600,resi=
zable,scrollbars=3Dno,screenX=3D50,screenY=3D30");
//infowindow.location(url);
infowindow.focus ();
} =20
</script>
In advance I would like to Thank You for your help.
Kenn
The second script is used to open smaller windows with the larger picture in it.
I would like to know if one java script can be embedded in another. The copy I have below is taken directly from my page and my goal is to incorporate your script the first part into the second part and if so where would your script go into the second.
The scrript looks like this:
<script language=3DJavaScript>
<!--
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com
var message=3D"";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if=20
(document.layers||(document.getElementById&&!document.all)) {
if (e.which=3D=3D2||e.which=3D=3D3) {(message);return false;}}}
if (document.layers)=20
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=3DclickNS;}=
else{document.onmouseup=3DclickNS;document.oncontextmenu=3DclickIE;}
document.oncontextmenu=3Dnew Function("return false")
// -->=20
</script>
<SCRIPT LANGUAGE=3D"JavaScript">
<!-- Begin to hide script contents from old browsers. =20
function prizewin(file, anchor) {
var url =3D file;
if (anchor) url +=3D "#" + anchor;
infowindow =3D window.open (url, "infowindow",
"titlebar,menubar=3Dno,toolbar=3Dno,hotkeys,height=3D425,width=3D600,resi=
zable,scrollbars=3Dno,screenX=3D50,screenY=3D30");
//infowindow.location(url);
infowindow.focus ();
} =20
</script>
In advance I would like to Thank You for your help.
Kenn