Meerkat Manor {Suricati e much more}

Reply
Messaggi scritti sullo sfondo:, Inserisci tra BODY e /BODY
view post Posted on 9/5/2009, 19:58Quote
Avatar

By Sarah

Group: Capo Meerkat
Posts: 4970
Location: lontano


Status: Offline: ultima azione eseguita il 24/12/2009, 19:46


CODICE
<script>

<script>
// Set your messages. You may add as many messages as you like.
var message=new Array()
message[0]="Vincere al Casinò."
message[1]="Non perdere questa occasione!!!"
message[2]="Visita: http://www.vinceresoldionline.com/"

// Set font-family of the text
var fnt="Arial"

// Set font-size of the text (CSS-values)
var fntsize=20

// Set font-color of the text
var fntcolor="#CCCCCC"

// Set font-color of the last letter of the ticker
var fntcolorlastletter="#666666"

// Set font-weight. Set a value between 1 to 9 to adjust the boldness
var fntweight=7

// Set standstill between the messages (seconds)
var standstill=2

// Set speed (higher=slower)
var speed=80

// the top-position of the ticker (distance to the border on top, pixels)
var topposition=200

// the left-position of the ticker (distance to the border on the left, pixels)
var leftposition=20

// Do not edit the variables below
var tickerwidth
var tickerheight
var i_substring=0
var i_presubstring=0
var i_message=0
var messagecontent=""
var messagebackground=""
var messagepresubstring=""
var messageaftersubstring=""
fntweight=fntweight*100
standstill*=1000

var browserinfos=navigator.userAgent
var ie4=document.all&&!document.getElementById&&!browserinfos.match(/Opera/)
var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/)
var ns4=document.layers
var ns6=document.getElementById&&!document.all&&!browserinfos.match(/Opera/)
var opera=browserinfos.match(/Opera/)  
var browserok=ie4||ie5||ns4||ns6||opera

for (i=0;i<=message.length-1;i++) {
       message[i]=message[i]+" "
}

function initiateticker() {
       if (ie4) {        
               tickerheight=document.body.clientHeight-5
           tickerwidth=document.body.clientWidth-5
               document.all.ticker.style.posLeft=leftposition
               document.all.ticker.style.posTop=topposition
               showticker()
       }
       if (ie5 || opera) {        
               tickerheight=document.body.clientHeight-5
           tickerwidth=document.body.clientWidth-5
               document.getElementById('ticker').style.left=leftposition
               document.getElementById('ticker').style.top=topposition
               showticker()
       }
       if (ns4) {
               tickerheight=window.innerHeight-10
           tickerwidth=window.innerWidth-10
               document.ticker.left=leftposition
               document.ticker.top=topposition
               showticker()
       }
       if (ns6) {
               tickerheight=window.innerHeight-10
           tickerwidth=window.innerWidth-10
               document.getElementById('ticker').style.left=leftposition
               document.getElementById('ticker').style.top=topposition
               getmessagecontentNS6()
       }
}

function getmessagecontent() {
       messagepresubstring=message[i_message].substring(0,i_presubstring)
       messageaftersubstring=message[i_message].substring(i_presubstring,i_substring)
       messagecontent="<table border=0 width="+tickerwidth+" height="+tickerheight+"><tr><td valign=top>"
       messagecontent+="<span style='position:relative; font-family:"+fnt+";color:"+fntcolor+";font-size:"+fntsize+"pt;font-weight:"+fntweight+"'>"        
       messagecontent+="<font color='"+fntcolor+"'>"
       messagecontent+=messagepresubstring
       messagecontent+="</font>"
       messagecontent+="</span>"
       messagecontent+="<span style='position:relative; font-family:"+fnt+";color:"+fntcolor+";font-size:"+fntsize+"pt;font-weight:900'>"        
       messagecontent+="<font color='"+fntcolorlastletter+"'>"
       messagecontent+=messageaftersubstring
       messagecontent+="</font>"
       messagecontent+="</span>"
       messagecontent+="</td></tr></table>"
}

function getmessagecontentNS6() {
       messagecontent="<table border=0 width="+tickerwidth+" height="+tickerheight+"><tr><td valign=top>"
       messagecontent+="<span style='position:relative; font-family:"+fnt+";color:"+fntcolor+";font-size:"+fntsize+"pt;font-weight:"+fntweight+"'>"        
       messagecontent+="<font color='"+fntcolor+"'>"
       messagecontent+=message[i_message]
       messagecontent+="</font>"
       messagecontent+="</span>"
       messagecontent+="</td></tr></table>"
       showtickerNS6()
}

function showticker() {
       if (i_substring<=message[i_message].length-1) {
                       i_substring++
                       i_presubstring=i_substring-1
                       if (i_presubstring<0) {i_presubstring00}
                       getmessagecontent()
               if (ie4) {
                       ticker.innerHTML=messagecontent
                       var timer=setTimeout("showticker()", speed)
               }
               if (ie5 || opera) {
                       document.getElementById('ticker').innerHTML=messagecontent
                       var timer=setTimeout("showticker()", speed)
               }

               if (ns4) {
                       document.ticker.document.write(messagecontent)
                       document.ticker.document.close()
                       var timer=setTimeout("showticker()", speed)
               }
       }
       else {
               clearTimeout(timer)
               var timer=setTimeout("changemessage()", standstill)
       }
}

function showtickerNS6() {
       document.getElementById('ticker').innerHTML=messagecontent
       i_message++
       if (i_message>message.length-1) {i_message=0}
       var timer=setTimeout("getmessagecontentNS6()", 2*standstill)
}

function changemessage() {
       i_substring=0
       i_presubstring=0
       i_message++
       if (i_message>message.length-1) {
               i_message=0
       }
       showticker()
}
if (browserok) {window.onload=initiateticker}
</script><DIV ID="ticker" style="position:absolute"></DIV>
<DIV ID="do_not_delete_this" style="position:absolute">
<!-- Codice HTML prelevato da: http://www.htmlscriptweb.com - gioca e vinci con http://www.vinceresoldionline.com/ - play and win with http://www.casinobonuslink.com/ - prelevato da http://www.web-link.it -->




Nelle prime righe di codice dello script trovate le variabili:

var fnt="Arial" = tipo di font.

var fntsize=64 = dimensione del caratter font.

var fntcolor="#CCCCCC" = colore del testo.

var fntcolorlastletter="#666666" = colore del testo in fase di scrittura.

var fntweight=7 = spessore del font (quanto deve essere bold)

var standstill=2 = tempo in secondi di attesa fra una frase e l'altra.

var speed=80 = Velocità di scrittura (si rallenta aumentando il numero)

var topposition=50 e var leftposition=20 = distanze in pixle dal bordo superiore e dal bargine lateral
e sinistro.

image
image image image
image


image

 
P_MSG P_EMAIL P_WEBSITE Top
0 replies since 9/5/2009, 19:58
 
Reply

load
Fast reply

 
 
 

Enable emoticons
Clickable Smilies
Show All


Nickname:      Email:



 

 
 




The End...
Gemellaggi
^^ Zoo e Famiglia ^^
Affiliati Valutazioni effettuate da:
Image and video hosting by TinyPicPoodle Italian Forum Eternal Star
 


Orange Serenity è una skin di Shizuru117 pubblicata su The Graphic Corner