Forum Web Myl
Vuoi reagire a questo messaggio? Crea un account in pochi click o accedi per continuare.

Come far scorrere la linguetta titolo nel browser?

2 partecipanti

Andare in basso

Come far scorrere la linguetta titolo nel browser? Empty Come far scorrere la linguetta titolo nel browser?

Messaggio Da Wilky Dom 6 Gen 2008 - 21:52

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

Wilky
Nuovo Utente
Nuovo Utente

Maschio
Numero di messaggi : 1
Età : 48
Data d'iscrizione : 06.01.08

Torna in alto Andare in basso

Come far scorrere la linguetta titolo nel browser? Empty ciao.. spero sia circa come lo cerchi

Messaggio Da Grigio Dom 2 Mar 2008 - 1:02

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
Grigio
Utente Plus
Utente Plus

Maschio
Numero di messaggi : 27
Età : 45
Data d'iscrizione : 02.11.07

Torna in alto Andare in basso

Come far scorrere la linguetta titolo nel browser? Empty Re: Come far scorrere la linguetta titolo nel browser?

Messaggio Da Grigio Dom 2 Mar 2008 - 1:04

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
Grigio
Utente Plus
Utente Plus

Maschio
Numero di messaggi : 27
Età : 45
Data d'iscrizione : 02.11.07

Torna in alto Andare in basso

Come far scorrere la linguetta titolo nel browser? Empty Re: Come far scorrere la linguetta titolo nel browser?

Messaggio Da Grigio Dom 2 Mar 2008 - 1:07

Un po' disordinato.. ultimo tentativo, se poi un moderatore può sistemare il pasticcio mi fa un favore sennò sembro proprio un'incompetente Very Happy

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
Grigio
Utente Plus
Utente Plus

Maschio
Numero di messaggi : 27
Età : 45
Data d'iscrizione : 02.11.07

Torna in alto Andare in basso

Come far scorrere la linguetta titolo nel browser? Empty Re: Come far scorrere la linguetta titolo nel browser?

Messaggio Da Contenuto sponsorizzato


Contenuto sponsorizzato


Torna in alto Andare in basso

Torna in alto


 
Permessi in questa sezione del forum:
Non puoi rispondere agli argomenti in questo forum.