deadlock Message Board
[ November Full List | Reply ]

Re: hiding source code.
From D on 19 Sept '00
replying to Re: hiding source code. posted by Kendyl

>>>I beg to differ go to www.telerama.com/~jury don't know how she did >it but it will not show you the source code
>>Try File|Save as, save the file on your hard dive then open use another editor, you see all the CODE!!!
>WRONG!!! all it saves is the standard "view source" message she has when a "view source" command is tried. "<!--' Coding Access Denied at http://www.telerama.com/~jury'-->"

You guys are just skipping over the obvious... all she has is a clever right-click protect! Similar to the one that pops up an alert window saying "Tsk Tsk, you naughty pirate!".

You want to know how she does it? Here...

<script LANGUAGE="JavaScript">
<!--
/* Right mouse click disable function in IE 4+ NN4+
Script by GirlGenius Productions
*/

n = (document.layers) ? 1:0
ie = (document.all) ? 1:0
menuon=false;

function cancelmenu(e){
if (ie){
if (event.button==2){
menuon=true;
if (popmenu.readyState==4){
popmenu.RemoveAllItems()
popmenu.AddItem("","","","")
popmenu.Popup (event.x,event.y)
}
else
alert("Please wait. Page Loading...")
}
if (event.button==1)
if (menuon){
popmenu.RemoveAllItems()
popmenu.Popup (event.x,event.y)
menuon=false;
}
}
if (n)
if (e.which==3)
return false;
}

document.onmousedown = cancelmenu;
if (n)
document.captureEvents(Event.MOUSEDOWN)
//-->

</script>

Now let that be the end of it. :)




Reply to this message

Required Details
Your name:
Subject:

Optional Details
Home page title:
Home page URL:
Email:
(if you'd like to receive automatic replies by email)

Your Message