|
-
February 4th, 2004, 10:07 PM
#38
Junior Member
Index Page.html
<HTML>
<HEAD>
<TITLE>hiding script with Frames</TITLE>
<!--No right Click mouse option to prevent a person from viewing source of pages
this is best to be added throughout your site so people don't have the option to view the source of your pages just the option to view the source of your Index.html (frame)- remove this line->
<script language="Javascript1.2">
// (C) 2003 CodeLifter.com
// Source: CodeLifter.com
// Do not remove this header
// Set the message for the alert box
am = "This function is disabled!";
// do not edit below this line
// ===========================
bV = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"
function nrc(e) {
if (bNS && e.which > 1){
alert(am)
return false
} else if (bIE && (event.button >1)) {
alert(am)
return false;
}
}
document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;
</script>
</HEAD>
<FRAMESET FRAMESPACING="0" BORDER="false" ROWS="1,*" FRAMEBORDER="0">
<FRAME NAME="swf" SCROLLING="no" NORESIZE TARGET="main" SRC="010519b.html"
MARGINWIDTH="1" MARGINHEIGHT="1">
<FRAME NAME="main" src="010519c.html" scrolling="auto">
<NOFRAMES>
<BODY>
<P>This page uses frames, but your browser doesn't support them.</P>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if (window != top) top.location.href = location.href;
// End -->
</SCRIPT>
</CENTER>
</BODY>
</NOFRAMES>
</FRAMESET>
</HTML>
010519c.html
-----------------
HTML>
<HEAD>
<TITLE>VISIBLE FRAME</TITLE>
<script language="Javascript1.2">
// (C) 2003 CodeLifter.com
// Source: CodeLifter.com
// Do not remove this header
// Set the message for the alert box
am = "This function is disabled!";
// do not edit below this line
// ===========================
bV = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"
function nrc(e) {
if (bNS && e.which > 1){
alert(am)
return false
} else if (bIE && (event.button >1)) {
alert(am)
return false;
}
}
document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;
</script>
</HEAD>
<BODY>
<BODY bgcolor=lightblue>
<CENTER>
<!-every link you open throughout your site with your code on it make sure that the A href option starts with the following-remove this line->>
<P>Hello World. This is 010519c.html.</P>
<!--this is the link to your sites that requires to be altered fitting the names of your site pages-Remove this line also->
<A HREF="010519d.html">Next</a>
</BODY>
</HTML>
However don't forget to disable the right click option and use the above and the only code they will see is that of your main frame?
hope that helps
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|