Aggiornato il <script language="JavaScript">
<!--
document.write(document.lastModified)
// -->
</script>
SCRITTA SCORREVOLE NELLA BARRA DI STATO
<!-- Begin
var osd = " "
osd +="Benvenuti nel sito musicale di Rino Riccio Umberto-alias BARABBA ";
osd +="troverete tante cose interessanti! ";
osd +="fate con calma!!. ";
osd +="buon divertimento! ";
osd +=" ";
var timer;
var msg = "";
function scrollMaster () {
msg = customDateSpring(new Date())
clearTimeout(timer)
msg += " " + showtime() + " " + osd
for (var i= 0; i < 100; i++){
msg = " " + msg;
}
scrollMe()
}
function scrollMe(){
window.status = msg;
msg = msg.substring(1, msg.length) + msg.substring(0,1);
timer = setTimeout("scrollMe()", 200);
}
function showtime (){
var now = new Date();
var hours= now.getHours();
var minutes= now.getMinutes();
var seconds= now.getSeconds();
var months= now.getMonth();
var dates= now.getDate();
var years= now.getYear();
var timeValue = ""
timeValue += ((months >9) ? "" : " ")
timeValue += ((dates >9) ? "" : " ")
timeValue = ( months +1)
timeValue +="/"+ dates
timeValue +="/"+ years
var timeValue2 = " " + hours
timeValue2 += ((minutes < 10) ? ":0":":") + minutes
return timeValue2;
}
function MakeArray(n) {
this.length = n
return this
}
monthNames = new MakeArray(12)
monthNames[1] = "gennaio"
monthNames[2] = "febbraio"
monthNames[3] = "marzo"
monthNames[4] = "aprile"
monthNames[5] = "maggio"
monthNames[6] = "giugno"
monthNames[7] = "luglio"
monthNames[8] = "agosto"
monthNames[9] = "settembre"
monthNames[10] = "ottobre"
monthNames[11] = "novembre"
monthNames[12] = "dicembre"
daysNames = new MakeArray(7)
daysNames[1] = "domenica"
daysNames[2] = "lunedì"
daysNames[3] = "martedì"
daysNames[4] = "mercoledì"
daysNames[5] = "giovedì"
daysNames[6] = "venerdì"
daysNames[7] = "sabato"
function customDateSpring(oneDate) {
var theDay = daysNames[oneDate.getDay() +1]
var theDate =oneDate.getDate()
var theMonth = monthNames[oneDate.getMonth() +1]
return " Oggi è " + theDay + " " + theDate + " " + theMonth + " e sono le ore" }
scrollMaster();
// End -->
</script>
COLORA LE BARRE LATERALI DELLA PAGINA WEB
Per ottenere questo effetto adopera il codice per il foglio di stile che trovi indicato a fianco ed inseriscilo nell'intestazione della pagina tra <head> e </head> <style TYPE="text/css">
BODY
{
scrollbar-base-color: blue;
scrollbar-arrow-color: cyan;
}
</style>
Per ottenere questo effetto adopera il codice per il foglio di stile che trovi indicato a fianco ed inseriscilo nell'intestazione della pagina tra <head> e </head> <style TYPE="text/css">
BODY
{
scrollbar-base-color: lightgreen;
scrollbar-arrow-color: darkgreen;
}
</style>
Per ottenere questo effetto adopera il codice per il foglio di stile che trovi indicato a fianco ed inseriscilo nell'intestazione della pagina tra <head> e </head> <style TYPE="text/css">
BODY
{
scrollbar-base-color: red;
scrollbar-arrow-color: violet;
}
</style>
Per ottenere questo effetto adopera il codice per il foglio di stile che trovi indicato a fianco ed inseriscilo nell'intestazione della pagina tra <head> e </head> <style TYPE="text/css">
BODY
{
scrollbar-base-color: rgb(198,198,0;
scrollbar-arrow-color: yellow;
}
</style>
Per ottenere questo effetto adopera il codice per il foglio di stile che trovi indicato a fianco ed inseriscilo nell'intestazione della pagina tra <head> e </head> <style TYPE="text/css">
BODY
{
scrollbar-base-color: purple;
scrollbar-arrow-color: fuchsia;
}
</style>
Per ottenere questo effetto adopera il codice per il foglio di stile che trovi indicato a fianco ed inseriscilo nell'intestazione della pagina tra <head> e </head> <style TYPE="text/css">
BODY
{
scrollbar-base-color: white;
scrollbar-arrow-color: navy;
}
</style>
Per ottenere questo effetto adopera il codice per il foglio di stile che trovi indicato a fianco ed inseriscilo nell'intestazione della pagina tra <head> e </head> <style TYPE="text/css">
BODY
{
scrollbar-base-color: black;
scrollbar-arrow-color: red;
}
</style>
DA IL BENTORNATO AI VISITATORI DELLA TUA PAGE
<script language="JavaScript">
<!-- Begin
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var expDays = 30;
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function amt(){
var count = GetCookie('count')
if(count == null) {
SetCookie('count','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('count')
SetCookie('count',newcount,exp)
return count
}
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
// End -->
</script>
<p align="center"><strong><font SIZE="2" FACE="Verdana" COLOR="#008000">
<script language="JavaScript">
<!-- Begin
document.write("BENVENUTO da RINO RICCIO ! Tu mi hai visitato <b>" + amt() + "</b> volte.")
// End -->
</script>
</font></strong></p>
DA IL BENVENUTO A CHI ENTRA NEL TUO SITO
<script>
<!--
var divs = new Array();
var da = document.all;
var start;
var speed = 50;
function initVars(){
if (!document.all)
return
function update()
{
for (var i=0;i<divs.length;i++)
{
if (divs[i][4])
{
divs[i][0].filters.Glow.Strength++;
if (divs[i][0].filters.Glow.Strength == divs[i][3])
divs[i][4] = false;
}
if (!divs[i][4])
{
divs[i][0].filters.Glow.Strength--;
if (divs[i][0].filters.Glow.Strength == divs[i][2])
divs[i][4] = true;
}
}
}
-->
</script>
DISABILITA IL TASTO DX DEL MOUSE E LA TASTIERA
Autore: SeatigerTeam™
Per i fanatici della sicurezza. Disabilitare le funzioni del tasto destro del mouse non impedisce la copia
di stringhe di testo o di immagini, perché chiunque conosca un po' di scorciatoie sa che può evidenziare
la frase o l'immagine e premendo in contemporanea i tasti CTRL e la lettera C le copierà per poi incollarli
su un altro foglio con la combinazione dei tasti CTRL e lettera V. Con questo JavaScript™ sarà disabilitata
anche la tastiera, quindi un briciolo di sicurezza in più. Liberamente utilizzabile in qualunque genere di sito.
File necessari: nocopy.js
<!------------- INIZIO CODICE DA COPIARE NELL'INTESTAZIONE DELLA PAGINA ------------->
( tra i tag <head> e </head> )
SCEGLI LA MUSICA DI SOTTOFONDO
Autore: di pubblico dominio
Con questo JavaScript™ puoi far scegliere ai tuoi visitatori quale brano ascoltare mentre navigano
nel tuo sito. Molto compatto perché realizzato con il supporto di un menù a tendina, puoi inserire
tutti i file midi che preferisci precisandone il titolo negli appositi campi del modulo. Per poterlo usare
dovrai solo personalizzarlo con i tuoi file musicali preferiti. Liberamente utilizzabile in ogni genere
di sito.
L'inserimento del codice avviene in DUE fasi.
PRIMA FASE
<!------------- INIZIO CODICE DA COPIARE NELL'INTESTAZIONE DELLA PAGINA -------------->
( tra i tag <head> e </head> )
var music = null;
var track = 0;
var ver = navigator.appName;
function audioCheck(plugName) {
for (var i = 0; i < navigator.plugins.length; i++) {
if (navigator.plugins[i].name.toLowerCase() == plugName.toLowerCase()) {
for (var j = 0; j < navigator.plugins[i].length; j++) {
if (navigator.plugins[i][j].enabledPlugin) {
return true;
}
}
return false;
}
}
return false;
}
function chooseSong(s) { // ie
track = s.options[s.selectedIndex].value;
if (ver == "Microsoft Internet Explorer") {
document.all.music.src = songNum[track];
} else {
songPlay('play');
}
}
function songPlay(cmd) { // netscape
if (audioCheck("LiveAudio")) {
if (cmd == 'play') {
document.musicSource.play(false, songNum[track]);
}
} else {
alert("Non hai i plugins necessari!");
}
}
// End -->
</script>
<!-------------- FINE CODICE DA COPIARE NELL'INTESTAZIONE DELLA PAGINA --------------->
SECONDA FASE
<!------------------- INIZIO CODICE DA COPIARE NEL CORPO DELLA PAGINA -------------------->
( tra i tag <body> e </body> )
<form name="choose">
<div align="center"><center><p><select size="1" name="track" onChange="chooseSong(this);">
<option value="0">Scegli la tua musica</option>
<option value="1">asturias</option>
<option value="2">fuente</option>
<option value="3">gloria</option>
<option value="4">almora</option>
</select> </p>
</center></div>
</form>
<script language="JavaScript">
<!-- Begin
var ver = navigator.appName;
if (ver == "Microsoft Internet Explorer") {
document.write('<bgsound src="#" ID=music loop=1 AUTOSTART=true>');
} else {
document.write('<embed type="audio/midi" src="imagine.mid" AUTOSTART=false hidden=true VOLUME="90" name="musicSource" MASTERSOUND></EMBED>');
}
// End -->
</script>
<!--------------------- FINE CODICE DA COPIARE NEL CORPO DELLA PAGINA -------------------->
per avere questo script SEGNALA AD UN AMICO copia e incolla
questi codici
copiamo questo codice all'interno del tag head nella
pagina in cui vogliamo inserire il modulo:
<script language="JavaScript" type="text/javascript">
// Prelevato su http://web-link.it
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header
var good;
// var url = "www.centoxcento.cjb.net";
function checkEmailAddress(field) {
var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
if (goodEmail){
good = true
} else {
alert('Inserire un indirizzo e-mail valido.')
field.focus();
field.select();
good = false;
}
}
u = window.location;
// u = url;
m = "Ti segnalo questo sito";
function mailThisUrl(){
good = false
checkEmailAddress(document.eMailer.address)
if (good){
window.location = "mailto:"+document.eMailer.address.value+"?subject="+m+"&body="+document.title+"
"+u;
}
}
// -->
</SCRIPT>
In seguito copiamo quest'altro blocco di codice, all'interno del
tag body, nella posizione in cui vogliamo che compaia il box:
<form name="eMailer">
<font color="#FF0000" size="2" face="Verdana"><strong>SEGNALA
QUESTO SITO AD UN AMICO</strong></font><br>
<font color="#0000cc" size="2">Introduci
l'e-mail del destinatario:</font><br>
<input type="text" name="address" size="40"><br>
<input type="submit" value="Segnala" onClick="mailThisUrl()">
</form>