Dragon Games BR!

MUDAMOS DE ENDEREÇO : www.G2EX.net

Bem vindos ao nosso fórum!

Últimos assuntos

Parceiros





----------------------


---------------------
--------------------

    Códigos JavaScript's - para Sites, Blogs e Forums.

    Compartilhe

    Nick
    Administrador
    Administrador

    Mensagens Mensagens : 457
    Moedas Moedas : 1805
    Reputação Reputação : 29
    Data de inscrição Data de inscrição : 02/09/2011

    Códigos JavaScript's - para Sites, Blogs e Forums.

    Mensagem  Nick em Dom Mar 03, 2013 6:13 pm

    Bem aqui vai alguns javascripts úteis para sites, blogs e forums;

    -Neve Artificial
    Spoiler:
    <SCRIPT language=JavaScript1.2>
    <!--

    var snowsrc="http://www.mephost.com/br/codigos_especiais/snow.gif"

    var no = 9;

    var ns4up = (document.layers) ? 1 : 0;
    var ie4up = (document.all) ? 1 : 0;

    var dx, xp, yp;
    var am, stx, sty;
    var i, doc_width = 800, doc_height = 600;

    if (ns4up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    }

    dx = new Array();
    xp = new Array();
    yp = new Array();
    am = new Array();
    stx = new Array();
    sty = new Array();

    for (i = 0; i < no; ++ i) {
    dx[i] = 0;
    xp[i] = Math.random()*(doc_width-50);
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*20;
    stx[i] = 0.02 + Math.random()/10;
    sty[i] = 0.7 + Math.random();
    if (ns4up) {
    if (i == 0) {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+snowsrc+"' border=\"0\"></a></layer>");
    } else {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+snowsrc+"' border=\"0\"></layer>");
    }
    } else if (ie4up) {
    if (i == 0) {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"></a></div>");
    } else {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"></div>");
    }
    }
    }

    function snowNS() {
    for (i = 0; i < no; ++ i) { // iterate for every dot
    yp[i] += sty[i];
    if (yp[i] > doc_height-50) {
    xp[i] = Math.random()*(doc_width-am[i]-30);
    yp[i] = 0;
    stx[i] = 0.02 + Math.random()/10;
    sty[i] = 0.7 + Math.random();
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    }
    dx[i] += stx[i];
    document.layers["dot"+i].top = yp[i];
    document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowNS()", 10);
    }

    function snowIE() {
    for (i = 0; i < no; ++ i) {
    yp[i] += sty[i];
    if (yp[i] > doc_height-50) {
    xp[i] = Math.random()*(doc_width-am[i]-30);
    yp[i] = 0;
    stx[i] = 0.02 + Math.random()/10;
    sty[i] = 0.7 + Math.random();
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
    }
    dx[i] += stx[i];
    document.all["dot"+i].style.pixelTop = yp[i];
    document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowIE()", 10);
    }

    if (ns4up) {
    snowNS();
    } else if (ie4up) {
    snowIE();
    }
    //-->
    </SCRIPT>

    -Animação no titulo da página
    Spoiler:

    <title>DragonGamesBR - Coloque o titulo aqui</title>
    <SCRIPT LANGUAGE="JavaScript">
    ie4 = (document.all)? true:false
    var langd=0;textStr="Título";textStr2=" ";
    if (ie4) skriv();
    function skriv() {
    if (langd < textStr.length)
    {
    langd+=1;
    document.title=textStr.substring(0,langd) + textStr2.substring(langd,textStr2.length);
    setTimeout('skriv()',250);
    }else{
    langd=0;
    langd=0;
    setTimeout('skriv()',1500);
    }}
    //-->
    </SCRIPT>

    -Mensagem de alerta ao abrir a página
    Spoiler:

    <SCRIPT LANGUAGE="JavaScript">
    <!--
    window.alert("DragonGamesBR! Bem Vindos")
    // -->
    </SCRIPT>

    -Data (baseada na informação do seu PC)
    Spoiler:

    <script language="JavaScript">

    document.write("<font color='#000000' font size='3' font face='arial'>")
    var mydate=new Date()
    var year=mydate.getYear()
    if (year<2000)
    year += (year < 1900) ? 1900 : 0
    var day=mydate.getDay()
    var month=mydate.getMonth()
    var daym=mydate.getDate()
    if (daym<10)
    daym="0"+daym
    var dayarray=new Array("Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado")
    var montharray=new Array(" de Janeiro de "," de Fevereiro de "," de Março de ","de Abril de ","de Maio de ","de Junho de","de Julho de ","de Agosto de ","de Setembro de "," de Outubro de "," de Novembro de "," de Dezembro de ")
    document.write(" "+dayarray[day]+", "+daym+" "+montharray[month]+year+" ")
    document.write("</b></i></font>")
    </script>

    -Janela que treme
    Spoiler:

    <script language="JavaScript1.2">
    function tremer(n) {
    if (self.moveBy) {
    for (i = 10; i > 0; i--) {
    for (j = n; j > 0; j--) {
    self.moveBy(0,i);
    self.moveBy(i,0);
    self.moveBy(0,-i);
    self.moveBy(-i,0);
    }}}}
    tremer(5)
    </script>

    -Barra de status animada
    Spoiler:

    <script language="JavaScript">
    tempo = 10;
    chars = 5;
    texto = "COLOQUE O TEXTO AQUI";
    wtexto = new Array(33);
    wtexto[0] = texto;
    blnk = " ";//Mantenha este espaço
    for (i = 1; i < 32; i++) {
    b = blnk.substring(0, i);
    wtexto[i] = "";
    for (j = 0; j < texto.length; j++) wtexto[i] = wtexto[i] + texto.charAt(j) + b;
    }
    function animastatus() {
    if (chars > -1) str = wtexto[chars];
    else str = wtexto[0];
    if (chars-- < -40) chars = 31;
    status = str;
    clearTimeout(tempo);
    tempo = setTimeout("animastatus()", 150);
    }
    animastatus()
    </script>

    -Bola que pula ao clicar (obs, baixe alguma img pequena (em formato de bola ou não) e salve como bolamagica.gif
    Spoiler:

    <SCRIPT LANGUAGE="JavaScript1.2">
    <!-- Begin
    function BrowserCheck() {
    var b = navigator.appName;2
    if (b == "Netscape") this.b = "NS";
    else if (b == "Microsoft Internet Explorer") this.b = "IE";
    else this.b = b;
    this.v = parseInt(navigator.appVersion);
    this.NS = (this.b == "NS" && this.v>=4);
    this.NS4 = (this.b == "NS" && this.v == 4);
    this.NS5 = (this.b == "NS" && this.v == 5);
    this.IE = (this.b == "IE" && this.v>=4);
    this.IE4 = (navigator.userAgent.indexOf('MSIE 4')>0);
    this.IE5 = (navigator.userAgent.indexOf('MSIE 5')>0);
    if (this.IE5 || this.NS5) this.VER5 = true;
    if (this.IE4 || this.NS4) this.VER4 = true;
    this.OLD = (! this.VER5 && ! this.VER4) ? true : false;
    this.min = (this.NS||this.IE);
    }
    is = new BrowserCheck();
    // End -->
    </script>


    <center>
    Clique aqui para ver um exemplo<br>
    <div id="staticBall" style="position:relative;visibility:visible">
    <img src="bolamagica.gif" height=30 width=30 alt="Static ball">
    </div>
    </center>
    <div id="ball" style="visibility:hidden; position:absolute; left:100; top:10; height:34; width:34">
    <img src="bolamagica.gif" height=30 width=30 alt="Bola mágica">
    </div>

    <script language="Javascript1.2">
    <!-- Begin2
    iter = 0;
    setId = 0;
    down = true;
    up = false;
    bouncingBall = (is.VER5) ? document.getElementById("ball").style
    : (is.NS) ? document.layers["ball"]
    : document.all["ball"].style;
    stillBall = (is.VER5) ? document.getElementById("staticBall").style
    : (is.NS) ? document.layers["staticBall"] : document.all["staticBall"].style;
    winH = (is.NS) ? window.innerHeight - 55 : document.body.offsetHeight - 55;
    document.onmouseup = buttonUp;
    if (is.NS4)
    document.captureEvents(Event.MOUSEUP);
    function buttonUp(e) {
    if ( ((is.NS) ? e.which : event.button) != 1) return true;
    if (setId != 0) clearInterval(setId);
    bouncingBall.visibility="visible";
    stillBall.visibility="hidden";
    bouncingBall.left = (is.NS) ? e.pageX - 15 : event.offsetX - 15;
    bouncingBall.top = (is.NS) ? e.pageY - 15 : event.offsetY - 15;
    iter = 0;
    setId = setInterval("generateGravity()", 20);
    return true;
    }
    function generateGravity() {
    if ((parseInt(bouncingBall.top)+iter < winH) && down) {
    bouncingBall.top = parseInt(bouncingBall.top) + iter;
    iter++;
    return;
    }
    else {
    if ((parseInt(bouncingBall.top)< winH) && down) {
    bouncingBall.top = winH + 5;
    return;
    }
    down = false;
    up = true;
    if (iter < 0 && parseInt(bouncingBall.top) > winH) {
    clearInterval(setId);
    bouncingBall.visibility = "hidden";
    stillBall.visibility="visible";
    setId = 0;
    }
    if (parseInt(bouncingBall.top) > 0 && up && iter >= 0) {
    bouncingBall.top = parseInt(bouncingBall.top) - iter;
    iter--;
    if (iter%3 == 0) iter--;
    return;
    }
    down = true;
    up = false;
    }
    }
    // End -->
    </script>

    -Calendário
    Spoiler:

    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    var day_of_week = new Array('Dom','Seg','Ter','Qua','Qui','Sex','Sab');
    var month_of_year = new Array('Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro');

    var Calendar = new Date();

    var year = Calendar.getYear(); // Retorna o ano
    var month = Calendar.getMonth(); // Retorna mes (0-11)
    var today = Calendar.getDate(); // Retorna dias (1-31)
    var weekday = Calendar.getDay(); // Retorna dias (1-31)

    var DAYS_OF_WEEK = 7; // "constant" para o numero de dias na semana
    var DAYS_OF_MONTH = 31; // "constant" para o numero de dias no mes
    var cal; // Usado para imprimir na tela

    Calendar.setDate(1); // Comecar o calendario no dia '1'
    Calendar.setMonth(month); // Comecar o calendario com o mes atual


    var TR_start = '<TR>';
    var TR_end = '</TR>';
    var highlight_start = '<TD WIDTH="30"><TABLE CELLSPACING=0 BORDER=1 BGCOLOR=DEDEFF BORDERCOLOR=CCCCCC><TR><TD WIDTH=20><B><CENTER>';
    var highlight_end = '</CENTER></TD></TR></TABLE></B>';
    var TD_start = '<TD WIDTH="30"><CENTER>';
    var TD_end = '</CENTER></TD>';

    cal = '<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 BORDERCOLOR=BBBBBB><TR><TD>';
    cal += '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2>' + TR_start;
    cal += '<TD COLSPAN="' + DAYS_OF_WEEK + '" BGCOLOR="#EFEFEF"><CENTER><B>';
    cal += month_of_year[month] + ' ' + year + '</B>' + TD_end + TR_end;
    cal += TR_start;

    for(index=0; index < DAYS_OF_WEEK; index++)
    {

    if(weekday == index)
    cal += TD_start + '<B>' + day_of_week[index] + '</B>' + TD_end;
    else
    cal += TD_start + day_of_week[index] + TD_end;
    }

    cal += TD_end + TR_end;
    cal += TR_start;

    for(index=0; index < Calendar.getDay(); index++)
    cal += TD_start + ' ' + TD_end;

    for(index=0; index < DAYS_OF_MONTH; index++)
    {
    if( Calendar.getDate() > index )
    {
    week_day =Calendar.getDay();
    if(week_day == 0)
    cal += TR_start;
    if(week_day != DAYS_OF_WEEK)
    {
    var day = Calendar.getDate();
    if( today==Calendar.getDate() )
    cal += highlight_start + day + highlight_end + TD_end;
    else
    cal += TD_start + day + TD_end;
    }
    if(week_day == DAYS_OF_WEEK)
    cal += TR_end;
    }
    Calendar.setDate(Calendar.getDate()+1);
    }
    cal += '</TD></TR></TABLE></TABLE>';

    // MOSTRAR CALENDARIO
    document.write(cal);
    // End -->
    </SCRIPT>

    -Rélogio no mouse (da hora)
    Spoiler:

    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    fCol='orange';//face colour.
    dCol='000000';//dot colour.
    hCol='green';//hours colour.
    mCol='red';//minutes colour.
    sCol='blue';//seconds colour.
    ClockHeight=35;
    ClockWidth=35;
    ClockFromMouseY=80;
    ClockFromMouseX=5;

    ns=(document.layers);
    ie=(document.all);
    h=3;
    m=4;
    s=5;
    face='1 2 3 4 5 6 7 8 9 10 11 12';
    face=face.split(' ');
    n=face.length;
    speed=0.6;
    ymouse=0;
    xmouse=0;
    scrll=0;
    p="<font face=verdanal size=1 color="+fCol+">";
    e=360/n;
    HandHeight=ClockHeight/4;
    HandWidth=ClockWidth/4;
    HandY=0;
    HandX=0;
    scrll=0;
    y=new Array();x=new Array();Y=new Array();X=new Array();
    for (i=0; i < 37; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0}
    Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();
    for (i=0; i < n; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0}
    if (ns){
    for (i=0; i < n; i++)
    document.write('<layer name="nsN'+i+'" top=0 left=0 height=15 width=15><center>'+p+face[i]+'</font></center></layer>');
    for (i=0; i < n; i++)
    document.write('<layer name="nsD'+i+'" top=0 left=0 bgcolor='+dCol+' clip="0,0,2,2"></layer>');
    for (i=0; i < h; i++)
    document.write('<layer name=nsH'+i+' top=0 left=0 bgcolor='+hCol+' clip="0,0,2,2"></layer>');
    for (i=0; i < m; i++)
    document.write('<layer name=nsM'+i+' top=0 left=0 bgcolor='+mCol+' clip="0,0,2,2"></layer>');
    for (i=0; i < s; i++)
    document.write('<layer name=nsS'+i+' top=0 left=0 bgcolor='+sCol+' clip="0,0,2,2"></layer>');
    }
    if (ie){
    document.write('<div id="On" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < n; i++)
    document.write('<div id="ieN" style="position:absolute;width:15px;height:15px;text-align:center">'+p+face[i]+'</font></div>');
    document.write('</div></div>');
    document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < n; i++)
    document.write('<div id="ieD" style="position:absolute;height:2px;width:2px;font-size:2px;background:'+dCol+'"></div>');
    document.write('</div></div>');
    document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < h; i++)
    document.write('<div id="ieH" style="position:absolute;width:2px;height:2px;font-size:2px;background:'+hCol+'"></div>');
    document.write('</div></div>');
    document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < m; i++)
    document.write('<div id="ieM" style="position:absolute;width:2px;height:2px;font-size:2px;background:'+mCol+'"></div>');
    document.write('</div></div>')
    document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < s; i++)
    document.write('<div id="ieS" style="position:absolute;width:2px;height:2px;font-size:2px;background:'+sCol+'"></div>');
    document.write('</div></div>')
    }

    (ns)?window.captureEvents(Event.MOUSEMOVE):0;
    function Mouse(evnt){
    ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
    xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;
    }
    (ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;

    function ClockAndAssign(){
    time = new Date ();
    secs = time.getSeconds();
    sec = -1.57 + Math.PI * secs/30;
    mins = time.getMinutes();
    min = -1.57 + Math.PI * mins/30;
    hr = time.getHours();
    hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360;
    if (ie){
    On.style.top=window.document.body.scrollTop;
    Od.style.top=window.document.body.scrollTop;
    Oh.style.top=window.document.body.scrollTop;
    Om.style.top=window.document.body.scrollTop;
    Os.style.top=window.document.body.scrollTop;
    }
    for (i=0; i < s; i++){
    var sd=(ns)?document.layers['nsS'+i]:ieS[i].style;
    sd.top=y[8+i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll;
    sd.left=x[8+i]+HandX+(i*HandWidth)*Math.cos(sec);
    }
    for (i=0; i < m; i++){
    var md=(ns)?document.layers['nsM'+i]:ieM[i].style;
    md.top=y[4+i]+HandY+(i*HandHeight)*Math.sin(min)+scrll;
    md.left=x[4+i]+HandX+(i*HandWidth)*Math.cos(min);
    }
    for (i=0; i < h; i++){
    var hd=(ns)?document.layers['nsH'+i]:ieH[i].style;
    hd.top=y[1+i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll;
    hd.left=x[1+i]+HandX+(i*HandWidth)*Math.cos(hrs);
    }
    for (i=0; i < n; i++){
    var D=(ns)?document.layers['nsD'+i]:ieD[i].style;
    D.top=y[13+i] + ClockHeight*Math.sin(-1.0471 + i*e*Math.PI/180)+scrll;
    D.left=x[13+i] + ClockWidth*Math.cos(-1.0471 + i*e*Math.PI/180);
    }
    for (i=0; i < n; i++){
    var N=(ns)?document.layers['nsN'+i]:ieN[i].style;
    N.top=y[25+i]-6 + ClockHeight*1.4*Math.sin(-1.0471 + i*e*Math.PI/180)+scrll;
    N.left=x[25+i]-6 + ClockWidth*1.4*Math.cos(-1.0471 + i*e*Math.PI/180);
    }
    }

    function Delay(){
    scrll=(ns)?window.pageYOffset:0;
    y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
    x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
    for (i=1; i < 37; i++){
    y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
    x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
    }
    ClockAndAssign();
    setTimeout('Delay()',20);
    }
    if (ns||ie)window.onload=Delay;

    </script>

    -Rélogio ao topo da página
    Spoiler:


    <body onLoad="show5()">
    <span id="liveclock" style="position:absolute;left:0;top:0;">
    </span>

    <script language="JavaScript">
    <!--


    function show5(){
    if (!document.layers&&!document.all)
    return
    var Digital=new Date()
    var hours=Digital.getHours()
    var minutes=Digital.getMinutes()
    var seconds=Digital.getSeconds()
    var dn="AM"
    if (hours>12){
    dn="PM"
    hours=hours-12
    }
    if (hours==0)
    hours=12
    if (minutes<=9)
    minutes="0"+minutes
    if (seconds<=9)
    seconds="0"+seconds
    myclock="<font size='5' face='Arial' ><b><font size='1'>Hora Certa:</font></br>"+hours+":"+minutes+":"
    +seconds+" "+dn+"</b></font>"
    if (document.layers){
    document.layers.liveclock.document.write(myclock)
    document.layers.liveclock.document.close()
    }
    else if (document.all)
    liveclock.innerHTML=myclock
    setTimeout("show5()",1000)
    }

    //-->
    </script>

    -Show de cores em flash (da hora)
    Spoiler:

    <SCRIPT LANGUAGE="Javascript">

    <!-- Begin
    var COLOR = 999999
    var woot = 0
    function stoploop() {
    document.bgColor = '#000000';
    clearTimeout(loopID);
    }
    function loopBackground() {
    if (COLOR > 0) {
    document.bgColor = '#' + COLOR
    COLOR -= 111111
    loopID = setTimeout("loopBackground()",1)
    } else {
    document.bgColor = '#000000'
    woot += 10
    COLOR = 999999
    COLOR -= woot
    loopID = setTimeout("loopBackground()",1)
    }
    }
    // End -->
    </SCRIPT>

    <CENTER>
    <FORM NAME="background">
    <INPUT TYPE="button" VALUE="Inicia o show de cores"
    onClick="loopBackground()">
    <br><br>
    <input type="button" value="PARAR" onClick="stoploop()">
    </FORM>
    </CENTER>

    -Texto que segue o mouse (da hora)
    Spoiler:


    <style>
    .animado {position:absolute;visibility:visible;top:-50px;font-size:10pt;font-family:Arial;font-weight:bold;color:black;}
    </style>
    <script language=JavaScript>
    var x,y
    var tempo=20
    var espera=0

    var texto="DragonGamesBR - Coloque o Texto aqui "
    texto=texto.split("")

    var xpos=new Array()
    for (i=0;i<=texto.length-1;i++) {
    xpos[i]=-50
    }

    var ypos=new Array()
    for (i=0;i<=texto.length-1;i++) {
    ypos[i]=-50
    }

    function seguir(e){
    x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX
    y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY
    espera=1
    }

    function animar_cursor() {
    if (espera==1 && document.all) {
    for (i=texto.length-1; i>=1; i--) {
    xpos[i]=xpos[i-1]+tempo
    ypos[i]=ypos[i-1]
    }
    xpos[0]=x+tempo
    ypos[0]=y

    for (i=0; i<texto.length-1; i++) {
    var camada = eval("span"+(i)+".style")
    camada.posLeft=xpos[i]
    camada.posTop=ypos[i]
    }
    }

    else if (espera==1 && document.layers) {
    for (i=texto.length-1; i>=1; i--) {
    xpos[i]=xpos[i-1]+tempo
    ypos[i]=ypos[i-1]
    }
    xpos[0]=x+tempo
    ypos[0]=y

    for (i=0; i<texto.length-1; i++) {
    var camada = eval("document.span"+i)
    camada.left=xpos[i]
    camada.top=ypos[i]
    }
    }
    var timer=setTimeout("animar_cursor()",30)
    }

    </script>
    <script Language=JavaScript>
    for (i=0;i<=texto.length-1;i++) {
    document.write("<span id='span"+i+"' class='animado'>")
    document.write(texto[i])
    document.write("</span>")
    }

    if (document.layers){
    document.captureEvents(Event.MOUSEMOVE);
    }
    document.onmousemove = seguir;
    animar_cursor()
    </script>

    -Rélogio Digital
    Spoiler:


    <SCRIPT language=javascript>
    function dotime()
    { today = new Date();
    hr= today.getHours();
    mn= today.getMinutes()+100+"";
    se= today.getSeconds()+100+"";
    h=(hr%13)+(hr>12)+((hr==0)*12)+100+"";
    s=((hr>11)*2);
    alltime = h.substring(1,3)+"c"+mn.substring(1,3)+"ampm".substring(s,s+1)+se.substring(1,3);
    for(i=0;i<alltime.length;i++)
    document.images["d"+i].src='dg'+alltime.charAt(i)+'.gif';
    };
    </SCRIPT>

    <SCRIPT language=javascript>
    today = new Date();
    hr= today.getHours();
    mn= today.getMinutes()+100+"";
    h=(hr%13)+(hr>12)+((hr==0)*12)+100+"";
    s=((hr>11)*2);
    alltime = "s"+h.substring(1,3)+"c"+mn.substring(1,3)+"ampm".substring(s,s+1)+"s";
    for(i=0;i<alltime.length;i++)
    document.write("<img src='dg"+alltime.charAt(i)+".gif' name='d"+i+"' border=0 width=16 height=21>");
    document.write("<br>");

    function clock()
    { dotime();
    id=setTimeout('clock()',1000); };
    clock();
    </SCRIPT>

    vTi.Luffy
    Moderador
    Moderador

    Mensagens Mensagens : 74
    Moedas Moedas : 100
    Reputação Reputação : 2
    Data de inscrição Data de inscrição : 13/09/2012

    Re: Códigos JavaScript's - para Sites, Blogs e Forums.

    Mensagem  vTi.Luffy em Dom Mar 03, 2013 6:51 pm

    Boooa ;D

      Data/hora atual: Qui Dez 08, 2016 2:51 am