1. مهمان گرامی، جهت ارسال پست، دانلود و سایر امکانات ویژه کاربران عضو، ثبت نام کنید.
    بستن اطلاعیه

ايجاد متن افكت دار

شروع موضوع توسط ♥ yakamoz ♥ ‏4/12/10 در انجمن JS

  1. کاربر ویژه

    تاریخ عضویت:
    ‏25/11/10
    ارسال ها:
    8,717
    تشکر شده:
    4,395
    امتیاز دستاورد:
    123
    حرفه:
    Telegram: vahid_yakamoz instagram: vahid_yakamoz
    <body onload="if (document.all||document.layers) {regenerate2();update()}">

    <style>
    <!--
    #msgline{
    position:relative;
    layer-background-color:black;
    width:400;
    height:12;
    }

    #msgtext{
    background-color:black;
    position:absolute;
    border: 1px solid black;
    width:400;
    height:12;

    }


    .msgtextfont{
    font:bold 16px Arial;
    postition:absolute;
    left:5px;
    text-decoration:none;
    color:white;
    }

    .msgtextfont a{
    color:white;
    text-decoration:none;
    }
    -->
    </style>
    <div id="msgline">
    <div id="msgtext" class="msgtextfont" align="center" style="position: absolute; right: 302px; top: -4px">Starting Messages...</div>
    </div>

    <script language="JavaScript1.2">

    var speed=4000
    var news=new Array()
    news[0]="<a href='http://www.haraji.org/'>First line of text....</a>"
    news[1]="<a href='http://www.haraji.org/'>Second line of text....</a>"
    news[2]="<a href='http://www.haraji.org/'>Third line of text....</a>"
    news[3]="<a href='http://www.haraji.org/'>Add as many as you want....</a>"

    i=0
    if (document.all)
    tickerobject=document.all.msgtext.style
    else
    tickerobject=document.msgline.document
    function regenerate(){
    window.location.reload()
    }
    function regenerate2(){
    if (document.layers)
    setTimeout("window.onresize=regenerate",450)
    }

    function update(){
    BgFade(0xff,0xff,0xff, 0x00,0x00,0x00,10);
    if (document.layers){
    document.msgline.document.msgtext.document.write('<span class="msgtextfont">'+news+'</span>')
    document.msgline.document.msgtext.document.close()
    }
    else
    document.all.msgtext.innerHTML=news

    if (i<news.length-1)
    i++
    else
    i=0
    setTimeout("update()",speed)
    }

    function BgFade(red1, grn1, blu1, red2,
    grn2, blu2, steps) {
    sred = red1; sgrn = grn1; sblu = blu1;
    ered = red2; egrn = grn2; eblu = blu2;
    inc = steps;
    step = 0;
    MsgDither();
    }
    function MsgDither() {
    var epct = step/inc;
    var spct = 1 - epct;
    if (document.layers)
    tickerobject.bgColor =
    Math.floor(sred * spct + ered *
    epct)*256*256 +
    Math.floor(sgrn * spct + egrn * epct)*256 +
    Math.floor(sblu * spct + eblu * epct);
    else
    tickerobject.backgroundColor=
    Math.floor(sred * spct + ered *
    epct)*256*256 +
    Math.floor(sgrn * spct + egrn * epct)*256 +
    Math.floor(sblu * spct + eblu * epct);
    if ( step < inc ) {
    setTimeout('MsgDither()',50);
    }
    step++;
    }

    </script>