Javascripts

Insert these codes in the section of your page.

Pop Up when entering a page

<SCRIPT language="JavaScript">alert("TEXT HERE")</SCRIPT>

Pop Up when leaving a page

<BODY onUnload="alert('TEXT HERE');"><link rel="stylesheet" href="http://66.40.21.67/free-web-hosting-styles.css" type="text/css"> <center> <table width="760" border="0" cellspacing="0" cellpadding="0" height="22" class="free_web_hosting_banners"> <tr> <td width="6"><img src="http://66.40.21.67/free-web-hosting-images/free-website-hosting-1.gif" width="6" height="22"></td> <td background="http://66.40.21.67/free-web-hosting-images/free-website-hosting-2.gif" width="716" align="center" valign="middle"> &nbsp;<a href="http://www.fateback.com">free hosting</a>&nbsp;&nbsp;&nbsp;<a href="http://www.theimagehosting.com">image hosting</a>&nbsp;&nbsp;&nbsp;<a href="http://www.resellerspanel.com">hosting reseller</a>&nbsp;&nbsp;&nbsp;<a href="http://www.lonex.com/online-album/">online album</a>&nbsp;&nbsp;&nbsp;<a href="http://www.lonex.com/e-shop/">e-shop</a>&nbsp;&nbsp;&nbsp;<a href="http://www.famous-people-search.com/">famous people</a>&nbsp; </td><td width="6"><img src="http://66.40.21.67/free-web-hosting-images/free-website-hosting-3.gif" width="6" height="22"></td> </tr> <tr><td colspan="3"><div style="display:block; float:left; cursor:pointer; padding:2px;" onClick="window.location.href='ht'+'tp:/'+'/ww'+'w.10'+'0we'+'bspa'+'ce.'+'co'+'m/'+'r/?'+'sr=f'+'b'"><img src="http://66.40.21.67/free_templates.gif" alt="Free Website Templates" onClick="window.location.href='ht'+'tp:/'+'/ww'+'w.10'+'0we'+'bspa'+'ce.'+'co'+'m/'+'r/?'+'sr=f'+'b'" /></div> <div style="display:block; float:right; cursor:pointer; padding:2px;" onClick="window.location.href='ht'+'tp:/'+'/ww'+'w.10'+'0we'+'bspa'+'ce.'+'co'+'m/'+'r/?'+'sr=lf'+'b'"><img src="http://66.40.21.67/free_installer.gif" alt="Free Installer" onClick="window.location.href='ht'+'tp:/'+'/ww'+'w.10'+'0we'+'bspa'+'ce.'+'co'+'m/'+'r/?'+'sr=lf'+'b'" /></div><br clear="all"></td> </tr> </table> </center>

Disabling Right-Click

<script language="JavaScript"><!--function click(){if (event.button==2){alert('dont copy')}} document.onmousedown=click// --></script>

Password pop up

<SCRIPT language="JavaScript"><!--hidevar password;var pass1="PASSWORD GOES HERE";password=prompt ('TEXT ON P-UP',' ');if (password==pass1)alert('TEXT IF CORRECT');else { window.location="URL OF PAGE THAT IT GOES TO IF THEY ANSWERED WRONG"; }//--></SCRIPT>

Make links flash different colors

<script language = "javascript"><!--var timevar = 50;makeblue();function makeblue() { document.linkColor="blue"; document.alinkColor="blue"; document.vlinkColor="blue"; setTimeout("makered()",timevar) ; return true;}function makered(){ document.linkColor="red"; document.alinkColor="red"; document.vlinkColor="red"; setTimeout("makegreen()",timevar); return true;}function makegreen(){ document.linkColor="green"; document.alinkColor="green" ; document.vlinkColor="green"; setTimeout("makeorange()",timevar); return true;}function makeorange(){ document.linkColor ="orange"; document.alinkColor="orange"; document.vlinkColor="orange"; setTimeout("makeblue()",timevar); return true;}//--></script>

«Back