JAMES' JAVA STUFF |
<script language="JavaScript1.2"> |
/* |
Cross browser marquee script |
*/ |
//Specify the marquee's width (in pixels) |
var marqueewidth=330 |
//Specify the marquee's height (in pixels, pertains only to NS) |
var marqueeheight=20 |
//Specify the marquee's scroll speed (larger is faster) |
var speed=4 |
//Specify the marquee contents |
var marqueecontents='<font face="Arial"><strong><big>You put you what you want it to say here. You can make links like this. <A HREF="http://www.javafile.com">This like goes to JavaFile.</A> Or an e-mail link, <A HREF="mailto:jgw_2000_87@hotmail.com">E-mail me</A> Enjoy!</big></strong></font>' |
if (document.all) |
document.write('<marquee scrollAmount='+speed+' style="width:'+marqueewidth+'">'+marqueecontents+'</marquee>') |
function regenerate(){ |
window.location.reload() |
} |
function regenerate2(){ |
if (document.layers){ |
setTimeout("window.onresize=regenerate",450) |
intializemarquee() |
} |
} |
function intializemarquee(){ |
document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>') |
document.cmarquee01.document.cmarquee02.document.close() |
thelength=document.cmarquee01.document.cmarquee02.document.width |
scrollit() |
} |
function scrollit(){ |
if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){ |
document.cmarquee01.document.cmarquee02.left-=speed |
setTimeout("scrollit()",100) |
} |
else{ |
document.cmarquee01.document.cmarquee02.left=marqueewidth |
scrollit() |
} |
} |
window.onload=regenerate2 |
</script> |
<ilayer width=&{marqueewidth}; height=&{marqueeheight}; name="cmarquee01"> |
<layer name="cmarquee02"></layer> |
</ilayer> |
_____________________________________________________________ |
Up to list |
Hotmail |
Let people (if your site is on the internet) check their e-mail from your site. This is what it looks like (not sure if works). |
DIRECTIONS: Click "Store Login" to save your Login ID.
|
|||
Here is the code, leave this one alone: |
<script LANGUAGE="JavaScript"> |
<!-- |
// HotMail Login ID Storage Program |
// Written and © by Michael Nobilio |
// June 7, 1998 |
// mnobilio@hotmail.com |
// |
// Distribute Freely, as long as |
// this notice is left in the code. |
// |
// Please notify me of any bugs. |
notice = "Click \"Store Login\" to save your Login ID."; |
promptMessage = "No Login Stored"; |
function setCookie(name, value, expire) |
{ |
document.cookie = name + "=" + escape(value) + ( (expire == null) ? "" : ("; expires=" + expire.toGMTString()) ); |
} |
function getCookie(Name) |
{ |
var search = Name + "="; |
if( document.cookie.length > 0 ) |
{ |
offset = document.cookie.indexOf(search); |
if( offset != -1 ) |
{ |
offset = offset + search.length; |
end = document.cookie.indexOf(";", offset); |
if( end == -1 ) |
{ |
end = document.cookie.length; |
} |
return unescape( document.cookie.substring(offset, end) ); |
} |
} |
} |
function storeLogin() |
{ |
if( loginID != null ) |
{ |
promptMessage = loginID; |
} |
var Value = prompt("Enter a Login ID to store:", promptMessage); |
if( Value == null ) |
{ |
Value = promptMessage; |
} |
var today = new Date(); |
var expires = new Date(); |
expires.setTime( today.getTime() + (365*24*60*60*1000) ); |
setCookie( "HotMailLogin", Value, expires ); |
} |
// --> |
</script> |
<title>JavaFILE</title> |
<base target="leftframe"> |
<!--------------------------------------------> |
<!-- HotMail Login ID Storage Program 1.1 --> |
<!-- Written and © by Michael Nobilio --> |
<!-- June 7, 1998 --> |
<!-- mnobilio@hotmail.com --> |
<!--------------------------------------------> |
<!-- Distribute Freely, as long as --> |
<!-- this notice is left in the code. --> |
<!--------------------------------------------> |
<!-- Please notify me of any bugs. --> |
<!-- --> |
<!-- 1.1 Bug fixes: --> |
<!-- * Existing Login ID is now populated --> |
<!-- when "Update Login" is clicked. --> |
<!-- * Prompt "Cancel" bug fixed. --> |
<!-- --> |
<!--------------------------------------------> |
<body BGCOLOR="#FFFFFF" TEXT="#000000"> |
<form NAME="passwordform" ACTION="http://207.82.250.251/cgi-bin/start" METHOD="post"> |
<input type="hidden" name="curmbox" value="ACTIVE"><input type="hidden" name="js" |
value="no"><div align="center"><center><table CELLSPACING="0" CELLPADDING="0"> |
<tr> |
<td WIDTH="20"><br> |
</td> |
<td><div align="center"><center><p><font FACE="arial" SIZE="+2"><b>HotMail</b></font> </td> |
</tr> |
<tr align="center"> |
<td WIDTH="15"><br> |
</td> |
<td><table BORDER="1" CELLSPACING="1" CELLPADDING="10"> |
<tr> |
<td><table CELLSPACING="0" CELLPADDING="0"> |
<tr> |
<td><font FACE="arial" SIZE="-2"><b>Login: </b></font></td> |
<td> </td> |
<td><font FACE="arial" SIZE="-2"><b>Password: </b></font></td> |
<td></td> |
</tr> |
<tr> |
<td><input TYPE="text" NAME="login" SIZE="16" MAXLENGTH="16" onFocus="this.select();"> </td> |
<td><br> |
</td> |
<td><input TYPE="password" NAME="passwd" SIZE="16" MAXLENGTH="16"> </td> |
<td ALIGN="center" VALIGN="bottom"> <input TYPE="submit" NAME="enter" VALUE="Enter"> </td> |
</tr> |
<tr> |
<td NOWRAP ALIGN="center" COLSPAN="3"><input TYPE="radio" NAME="frames" VALUE="yes"><font |
FACE="arial" SIZE="-3"><i>Frames</i></font> <input TYPE="radio" NAME="frames" |
VALUE="no"><font FACE="arial" SIZE="-3"><i>No Frames</i></font> <input TYPE="radio" |
NAME="frames" VALUE="auto" checked><font FACE="arial" SIZE="-3"><i>Use my Default</i></font> |
</td> |
<td><br> |
</td> |
</tr> |
</table> |
</td> |
</tr> |
</table> |
</td> |
</tr> |
</table> |
</center></div> |
</form> |
<div align="center"><center> |
<table WIDTH="450"> |
<tr> |
<td ALIGN="center"><form NAME="storeForm"> |
<font SIZE="-1"><p><input NAME="saveLogin" TYPE="button" VALUE="Store Login" |
onClick="storeLogin(); history.go(0);"></font></p> |
</form> |
</td> |
</tr> |
<tr> |
<td VALIGN="top" ALIGN="center"><table CELLSPACING="0" CELLPADDING="10"> |
<tr> |
<td ALIGN="center"><font FACE="arial" SIZE="-2">HotMail Login ID Storage Program 1.1<br> |
Written and © 1998 Michael Nobilio<br> |
<a HREF="mailto:mnobilio@hotmail.com">mnobilio@hotmail.com</a></font></td> |
</tr> |
</table> |
</td> |
</tr> |
</table> |
</center></div><font SIZE="-1" FACE="arial"><b><i> |
<p align="center">DIRECTIONS: Click "Store Login" to save your Login ID.</i></b></p> |
<p align="center"><br> |
</p> |
</font> |
_____________________________________________________________ |
Password protect as many pages as you like with this script! You can assign each user his/her password and username. Note: When you install this on your site, you do not want to include a value= attribute for your input fields. An alert will pop up if you type in an incorrect password or name. |