Javascript - Html kodları

Aşağıdaki kodları <body> kodundan sonra istediğiniz bir yere yapıştırın.

{codecitation class="brush: xml; gutter: false;" width="500px"}
<script language="JavaScript">

/**********************************************************************************
* Copyright 1999 William Goudy
* http://www.goudy.net - personal
* http://www.goudy.net/fms - Design Business
* This email address is being protected from spambots. You need JavaScript enabled to view it. - Email (feel free to email me)
**********************************************************************************/

var mw=170 /* The width */
var mh=100 /* The height */
var sp=1 /* The Speed */

var text= 'Kayan Yazı Örneği<br><br><B>1999.12.14</B> New <A HREF="http://www.creamsoft.com/scribbler/">Scribbler 2000</A> is available!<BR><BR><B>1999.12.12</B> <U>Only 19 days</U> left to Millennium<BR><BR>etc...'

if (document.all)document.write('<marquee direction="up" scrollAmount='+sp+' style="width:'+mw+';height:'+mh+'">'+text+'</marquee>')

function loop()
{
window.location.reload()
}

function loop2()
{
if (document.layers) { setTimeout("window.onresize=loop",350)
init()

}
}

function init()
{
document.marq.document.marqEx.document.write(text)
document.marq.document.marqEx.document.close()
thelength=document.marq.document.marqEx.document.height
runmarq()
}

function runmarq()
{
if (document.marq.document.marqEx.top>=thelength*(-1)) {
document.marq.document.marqEx.top-=sp
setTimeout("runmarq()",100)
}

else
{
document.marq.document.marqEx.top=mh
runmarq()

}
}

window.onload=loop2

</script>



{/codecitation}



Örnek demo için tıklayın >>