l.anh
17-07-2004, 01:18 PM
cho tiêu đề của trang Web !
Để trang trí cho tiêu đề của trang web thêm sinh động, chúng ta hãy làm cho nó “rực chói” lửa đỏ bằng Java Scrip ai nhìn vào cũng phải chói mắt.
<html>
<head>
<title></title>
</head>
<body bgcolor="#000000" text="#FFFFFF">
<center>
<span id="theText" style="width:100%">
<br><font face="Arial" color="#FFFF00"><font size="7">LIPTON_ICETEA </font><br>
</font>
</span>
<script>
<!--
//range of glowing
var from = 3;
var to = 9;
//speed of pulsing
var delay = 40;
//color of glow, name or RGB value (example:'#00FF00')
var glowColor = "Red";
//NO MORE EDITING!!!
var i = to;
var j = 0;
//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;
}
}
//-->
</script>
</center>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"><font face="Arial">lipton_icetea</font></p>
</body>
</html>
:technolog
Để trang trí cho tiêu đề của trang web thêm sinh động, chúng ta hãy làm cho nó “rực chói” lửa đỏ bằng Java Scrip ai nhìn vào cũng phải chói mắt.
<html>
<head>
<title></title>
</head>
<body bgcolor="#000000" text="#FFFFFF">
<center>
<span id="theText" style="width:100%">
<br><font face="Arial" color="#FFFF00"><font size="7">LIPTON_ICETEA </font><br>
</font>
</span>
<script>
<!--
//range of glowing
var from = 3;
var to = 9;
//speed of pulsing
var delay = 40;
//color of glow, name or RGB value (example:'#00FF00')
var glowColor = "Red";
//NO MORE EDITING!!!
var i = to;
var j = 0;
//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;
}
}
//-->
</script>
</center>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"><font face="Arial">lipton_icetea</font></p>
</body>
</html>
:technolog