Predmet:Blinkanje pozadine teksta
PreuzmiIzvorni kôd (HTML):
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="Microsoft FrontPage 6.0" name=GENERATOR></HEAD>
<BODY><SPAN id=pochenderText style="WIDTH: 100%">
<H1 align="center"><font color="#FF0000"><A HREF="http://www.icentar.ba">Posjetite iCentar
</A></font></H1></SPAN>
var from = 2;
var to = 15;
var speed = 5;
var textcolor = "#3D95FF";
var i = to;
var j = 0;
pd();
function pu()
{
if (!document.all)
return
if (i < to)
{
pochenderText.style.filter = "Glow(Color=" + textcolor + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('pu()',speed);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('pd()',speed);
return 0;
}
}
function pd()
{
if (!document.all)
return
if (i > from)
{
pochenderText.style.filter = "Glow(Color=" + textcolor + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('pd()',speed);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('pu()',speed);
return 0;
}
}
// -->
Podrska samo putem foruma, jer samo tako i ostali imaju koristi od toga.