Y2K Resume

 

y2kres

 

I was looking through some old files and found my resume I wrote by hand in html way back in 1999.  Back then it was easy to steal static source code as the “View Source” option was available.  Entering blank lines at the beginning so source code goes well beyond the initial page view or a few page downs tricked the novice.

Putting in a right click java script alert dialog deterred some if they didn’t know how to disable java.

<script LANGUAGE="JavaScript1.1">
function right(e) {if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Copyright © 2000 patbhakta.com");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;

This handy trick of rewriting the right click options still works in today’s IE browser ironically.

<RightClick> <!--[if IE]>
<div id="ie5menu" class="cMenu" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5()">
<div class="menuitems" url="http://www.patbhakta.com">Home</div>
<HR>
<div class="menuitems" url="mailto:[email protected]">Email</div>
<HR>
<![endif]--> 
<script language="JavaScript">
<!--
if (document.all&&window.print){
 ie5menu.className="cMenu"
 document.oncontextmenu=showmenuie5
 document.body.onclick=hidemenuie5
}
//-->
</script>
</RightClick>

Today there are so many ways to protect source code, there are still issues protecting static content.  I just found it cool that IE11 behaves the same as IE5 back in the day.

 

01
Jan
2000

Leave a Reply