Skrypt Ile istniej strona:
///////////////////////////////////////////////
<script>
<!--
/*
Count up from any date script-
By Website Abstraction (www.wsabstract.com)
Over 200+ free scripts here!
*/
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
function countup(yr,m,d){
var today=new Date()
var todayy=today.getYear()
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var paststring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1)
difference+=" dni"
document.write("Portal Wolny Chocianów istnieje od 22.09.2009, czyli "+difference+"!")
}
//enter the count up date using the format year/month/day
countup(2009,09,22)
//-->
</script>
///////////////////////////////////////////////////////////////////////
Pożegnanie jak opuszczasz stronę;
<body OnUnLoad="alert('DZIĘKUJĘ ZA ODWIEDZENIE STRONY. ZAPRASZAM PONOWNIE!\n');">
////////////////////////////////////////
FPRMULAŻ EMAIL
(w ramach head)
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!--
function msg() {
document.mailer.action = "mailto:"
mailtoandsubject = ((document.mailer.mailtoperson.options[document.mailer.mailtoperson.selectedIndex].value) + '?subject=' + document.mailer.subject.value);
}
//-->
</SCRIPT>
…………………………..(w dowolnym miejscu strony)
<FORM NAME="mailer" METHOD="post" ACTION="" ENCTYPE="text/plain" onSubmit="(document.mailer.action += mailtoandsubject)">
<TABLE BORDER="0">
<TR VALIGN="top">
<TD>Odbiorca:</TD>
<TD>
<SELECT NAME="mailtoperson" onChange="msg(this.form)">
<OPTION VALUE="">Wybierz odbiorcę ...
<OPTION VALUE="twoj@adres.email.pl">Twoja nazwa
<OPTION VALUE="adres_twojego@przyjaciela.pl">Nazwa Twojego przyjaciela
</SELECT>
</TD>
</TR>
<TR VALIGN="top">
<TD>Twoje nazwisko:</TD>
<TD>
<INPUT TYPE="text" SIZE="45" NAME="name" onChange="msg(this.form)">
</TD>
</TR>
<TR VALIGN="top">
<TD>Twój adres email:</TD>
<TD>
<INPUT TYPE="text" SIZE="45" NAME="email" onChange="msg(this.form)">
</TD>
</TR>
<TR VALIGN="top">
<TD>Ważność:</TD>
<TD>
<SELECT NAME="priority" onChange="msg(this.form)">
<OPTION VALUE="Normal">Zwykły
<OPTION VALUE="Urgent">Pilny
<OPTION VALUE="No Reply Needed">Nie potrzeba odpowiadać
</SELECT></TD>
</TR>
<TR VALIGN="top">
<TD>temat:</TD>
<TD><INPUT TYPE="text" SIZE="45" NAME="subject" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD>Wiadomość:</TD>
<TD>
<TEXTAREA NAME="message" COLS="45" ROWS="7" WRAP="virtual" OnChange="msg(this.form)">
</TEXTAREA>
</TD>
</TR>
<TR>
<TD> </TD>
<TD><INPUT TYPE="submit" VALUE="Wyślij email teraz!">
<INPUT TYPE="reset" VALUE="Reset"></TD>
</TR>
</TABLE>
</FORM>
///////////////////////////////////////////////////////////////////////////////////////////
Strona istnieje od..
<script>
<!--
/*
Count up from any date script-
By Website Abstraction (www.wsabstract.com)
Over 200+ free scripts here!
*/
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
function countup(yr,m,d){
var today=new Date()
var todayy=today.getYear()
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var paststring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1)
difference+=" dni"
document.write("Witryna @ll4you istnieje od 10.09.2000, czyli "+difference+"!")
}
//enter the count up date using the format year/month/day
countup(2000,09,10)
//-->
</script>
/////////////////////////////////////////
Od jakiejś daty coś….
<table align="center" valign="middle" width="0" height="0" cellspacing="2" cellpadding="3" border="4" bgcolor="#C0FFD8" bordercolor="#B45800" bordercolorlight="#FFFF00" bordercolordark="#0000FF">
<tr>
<td>
<p style=" font-weight: bold; font-size: 15pt; color: #6C5800; text-align: center; text-shadow: inherit; margin-left: 3mm; margin-right: 3mm">
<script>
<!--
/*
Count up from any date script-
By Website Abstraction (www.wsabstract.com)
Over 200+ free scripts here!
*/
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
function countup(yr,m,d){
var today=new Date()
var todayy=today.getYear()
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var paststring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1)
difference+=" dni"
document.write("Portal Wolny Chocianów istnieje od 22.093.2009, czyli minęło "+difference+"!")
}
//enter the count up date using the format year/month/day
countup(2009,09,22)
//-->
</script></p>
</td>
</tr>
</table>