Best books about Javasript
|
JavaScript Flashing border
See
the following effect. It is easy to change color or add links to
text. It works well in Internet Explorer.
|
www.kidslovepc.com -- add your link here
|
How
to do it?
The above example use javascript switch table border. The time
interval is set to 500 micro seconds.
<table
border="0" width="179" id="my" style="border:
5px solid yellow" height="25">
<tr>
<td height="21" valign="center" width="161">
<font size="2">Your text here .</font>
</td>
</tr>
</table>
<script language="JavaScript1.2">
<!--
function flashit()
{
var myexample = document.getElementById('my');
if (myexample.style.borderColor=="blue")
myexample.style.borderColor="red" ;
else
myexample.style.borderColor="blue" ;
}
setInterval('flashit()', 500) ;
//-->
</script>
|
|