MattyMan
09-07-2006, 10:54 PM
I used the following code from the OTHER Link on the home page: (SEE BELOW)
The issue I have is that I have 2 boxes on my Page that I tried to apply this to. I can get one to work but not both. IF set the intervals on both boxes to the same then neither work, IF I set the time intervals for each box Differently then it gives me a weird flash.
I did start by changing the id="myexample" to a different name on each box but still can not get it to work,
You can see it at: www.sultrynitesonline.com
Any help would be appreciated!!
Mattyman
<table border="0" width="280" id="myexample" style="border:5px solid green">
<tr>
<td>Insert anything you want into this table.<br>Insert anything you want into this table.<br>Insert anything you want into this table.<br></td>
</tr>
</table>
<script language="JavaScript1.2">
<!--
/*
Flashing Table Border Script- © Dynamic Drive (www.dynamicdrive.com)
Visit http://www.dynamicdrive.com for this script
Credit must stay intact for use
*/
//configure interval btw flash (1000=1 second)
var speed=500
function fla****(){
var crosstable=document.getElementById? document.getElementById("myexample") : document.all? document.all.myexample : ""
if (crosstable){
if (crosstable.style.borderColor.indexOf("green")!=-1)
crosstable.style.borderColor="red"
else
crosstable.style.borderColor="green"
}
}
setInterval("fla****()", speed)
//-->
</script>
The issue I have is that I have 2 boxes on my Page that I tried to apply this to. I can get one to work but not both. IF set the intervals on both boxes to the same then neither work, IF I set the time intervals for each box Differently then it gives me a weird flash.
I did start by changing the id="myexample" to a different name on each box but still can not get it to work,
You can see it at: www.sultrynitesonline.com
Any help would be appreciated!!
Mattyman
<table border="0" width="280" id="myexample" style="border:5px solid green">
<tr>
<td>Insert anything you want into this table.<br>Insert anything you want into this table.<br>Insert anything you want into this table.<br></td>
</tr>
</table>
<script language="JavaScript1.2">
<!--
/*
Flashing Table Border Script- © Dynamic Drive (www.dynamicdrive.com)
Visit http://www.dynamicdrive.com for this script
Credit must stay intact for use
*/
//configure interval btw flash (1000=1 second)
var speed=500
function fla****(){
var crosstable=document.getElementById? document.getElementById("myexample") : document.all? document.all.myexample : ""
if (crosstable){
if (crosstable.style.borderColor.indexOf("green")!=-1)
crosstable.style.borderColor="red"
else
crosstable.style.borderColor="green"
}
}
setInterval("fla****()", speed)
//-->
</script>