Açıklama
Sayfanızda yukarı doğru kayan yazı yerleştirmek istediğinizde kullanabileceğiniz bir kkod örneği.
JS SOURCE CODE
// *****************************************************************
// <BODY> Bölümleri arasına eklenecek olan bölüm
// *****************************************************************
<script language="JavaScript">
/**********************************************************************************
* Copyright 1999 William Goudy
* http://www.goudy.net - personal
* http://www.goudy.net/fms - Design Business
* william@goudy.net - Email (feel free to email me)
**********************************************************************************/
var mw=170 /* The width */
var mh=100 /* The height */
var sp=1 /* The Speed */
var text= '<B>Ekim 2005</B><BR>Yeni siteniz<BR><A HREF="http://www.siteniz.com/">http://www.siteniz.com</A><BR><BR><B>ASP,PHP, Javascript ipuçları<BR></B> <U>Forumlar</U> Dersler...'
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",200)
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>
Detaylı İnceleme
Kodları BODY tagları arasında istediğiniz yere kopyalamanız yetmektedir.
Kayan yazıyı değiştirmek için script içerisindeki "text" değşkenine atamanız gerekmektedir.
İyi çalışmalar.
Görüntülenme: 13618
Ekleyen: Administrator