Piros: a szöveg helye
Zöld: a szöveg, majd a pulzálás színe
Firefoxban nem látszik.
A kód:
<!--Inicio do script -->
<DIV style="font: 10pt arial"></DIV>
<DIV style="width: 761; height: 1"><BR></DIV><SPAN id=theText style="width: 100%">
<H2> </H2>
<H2><font color="#FFFFFF"> . ~*~ . MANO DESIGN.
~*~ .</font></H2></SPAN>
<SCRIPT>
<!--
/*
Pulsating Text (Chris A e-mail: KilerCris@Mail.com)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
file://range of glowing
var from = 5;
var to = 11;
file://speed of pulsing
var delay = 55;
file://color of glow, name or RGB value (example:'#00FF00')
var glowColor = "#5C6390";
file://NO MORE EDITING!!!
var i = to;
var j = 0;
file://can be called here or whenever you want the text to start pulsing
textPulseDown();
function textPulseUp()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
}
function textPulseDown()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
}
file://-->
</SCRIPT>
<!--Final do script -->
Utolsó kommentek