Come far scorrere la linguetta titolo nel browser?
2 partecipanti
Pagina 1 di 1
Come far scorrere la linguetta titolo nel browser?
Salve,
mi è capitato di vedere alcuni siti in cui con Firefox (non ho provato se l'effetto lo facesse anche con Internet Explorer) il titolo della pagina scorreva nella linguetta della scheda, oppure che si componeva un carattere alla volta.
Qualcuno ha idea di come si possa realizzare un sito con questo effetto?
C'è qualche guida in materia?
Grazie mille
__________________
guida su come vedere film, nuova idea regalo originale, istruzioni sul mercato tritarifiuti, storia dello stereoscopio
mi è capitato di vedere alcuni siti in cui con Firefox (non ho provato se l'effetto lo facesse anche con Internet Explorer) il titolo della pagina scorreva nella linguetta della scheda, oppure che si componeva un carattere alla volta.
Qualcuno ha idea di come si possa realizzare un sito con questo effetto?
C'è qualche guida in materia?
Grazie mille
__________________
guida su come vedere film, nuova idea regalo originale, istruzioni sul mercato tritarifiuti, storia dello stereoscopio
Wilky- Nuovo Utente
-
Numero di messaggi : 1
Età : 48
Data d'iscrizione : 06.01.08
ciao.. spero sia circa come lo cerchi
ciao.
Questo script ti permette di far apparire la scritta come se fosse scritta al pc per intenderci, non scorre.
var message="Titolo del Sito" //specifys the title
var message=message+" " //gives a pause at the end,1 space=1 speed unit, here I used 10 spaces@150 each = 1.5seconds.
i="0" //declares the variable and sets it to start at 0
var temptitle="" //declares the variable and sets it to have no value yet.
var speed="150" //the delay in milliseconds between letters
function titler(){
if (!document.all&&!document.getElementById)
return
document.title=temptitle+message.charAt(i) //sets the initial title
temptitle=temptitle+message.charAt(i) //increases the title by one letter
i++ //increments the counter
if(i==message.length) //determines the end of the message
{
i="0" //resets the counter at the end of the message
temptitle="" //resets the title to a blank value
}
setTimeout("titler()",speed) //Restarts. Remove line for no-repeat.
}
window.onload=titler
Non è proprio quello che cercavi ma spero che possa andarti bene comunque.
Questo script va inserito fra e . Ovviamente modifica i parametri in modo da personalizzarlo.
Spero ti sia utile.
ciao.
Questo script ti permette di far apparire la scritta come se fosse scritta al pc per intenderci, non scorre.
var message="Titolo del Sito" //specifys the title
var message=message+" " //gives a pause at the end,1 space=1 speed unit, here I used 10 spaces@150 each = 1.5seconds.
i="0" //declares the variable and sets it to start at 0
var temptitle="" //declares the variable and sets it to have no value yet.
var speed="150" //the delay in milliseconds between letters
function titler(){
if (!document.all&&!document.getElementById)
return
document.title=temptitle+message.charAt(i) //sets the initial title
temptitle=temptitle+message.charAt(i) //increases the title by one letter
i++ //increments the counter
if(i==message.length) //determines the end of the message
{
i="0" //resets the counter at the end of the message
temptitle="" //resets the title to a blank value
}
setTimeout("titler()",speed) //Restarts. Remove line for no-repeat.
}
window.onload=titler
Non è proprio quello che cercavi ma spero che possa andarti bene comunque.
Questo script va inserito fra e . Ovviamente modifica i parametri in modo da personalizzarlo.
Spero ti sia utile.
ciao.
Grigio- Utente Plus
-
Numero di messaggi : 27
Età : 45
Data d'iscrizione : 02.11.07
Re: Come far scorrere la linguetta titolo nel browser?
Non mi ha lasciato incollare lo scrpt.. spero di riuscirci ora.
- Codice:
<script language="JavaScript1.2">
var message="Titolo del Sito" //specifys the title
var message=message+" " //gives a pause at the end,1 space=1 speed unit, here I used 10 [url=http://webmyl.forumattivo.com/mailto:spaces@150]spaces@150[/url] each = 1.5seconds.
i="0" //declares the variable and sets it to start at 0
var temptitle="" //declares the variable and sets it to have no value yet.
var speed="150" //the delay in milliseconds between letters
function titler(){
if (!document.all&&!document.getElementById)
return
document.title=temptitle+message.charAt(i) //sets the initial title
temptitle=temptitle+message.charAt(i) //increases the title by one letter
i++ //increments the counter
if(i==message.length) //determines the end of the message
{
i="0" //resets the counter at the end of the message
temptitle="" //resets the title to a blank value
}
setTimeout("titler()",speed) //Restarts. Remove line for no-repeat.
}
window.onload=titler
</script>
Grigio- Utente Plus
-
Numero di messaggi : 27
Età : 45
Data d'iscrizione : 02.11.07
Re: Come far scorrere la linguetta titolo nel browser?
Un po' disordinato.. ultimo tentativo, se poi un moderatore può sistemare il pasticcio mi fa un favore sennò sembro proprio un'incompetente
- Codice:
<script language="JavaScript1.2">
var message="Titolo del Sito" //specifys the title
var message=message+" " //gives a pause at the end,1 space=1 speed unit, here I used 10 [url=http://webmyl.forumattivo.com/mailto:spaces@150]spaces@150[/url] each = 1.5seconds.
i="0" //declares the variable and sets it to start at 0
var temptitle="" //declares the variable and sets it to have no value yet.
var speed="150" //the delay in milliseconds between letters
function titler(){
if (!document.all&&!document.getElementById)
return
document.title=temptitle+message.charAt(i) //sets the initial title
temptitle=temptitle+message.charAt(i) //increases the title by one letter
i++ //increments the counter
if(i==message.length) //determines the end of the message
{
i="0" //resets the counter at the end of the message
temptitle="" //resets the title to a blank value
}
setTimeout("titler()",speed) //Restarts. Remove line for no-repeat.
}
window.onload=titler
</script>
Grigio- Utente Plus
-
Numero di messaggi : 27
Età : 45
Data d'iscrizione : 02.11.07
Pagina 1 di 1
Permessi in questa sezione del forum:
Non puoi rispondere agli argomenti in questo forum.
|
|