hi,
can anyone tell me if it is possible to run multiple copies of the same script on one page. i have a sports results page on my site and i found this neat simple script for blinking text. (see below). i show five games a week and wanted the winning teams score to blink so i added the text. game one great loks good. trouble is when i add it to game 2-5 the text for game one stops blinking and the other 4 are not visable at all. is this because i am trying to run the same thing 5 time? is there a way around this at all. the following link shows the page with only the first game using the script (removed the other 4 for now to demonstate) can i have that scrip for games 2-6 run at the same time?
thanks
the link
[URL=”http://www.thepremiershipclub.com/results2.html”]http://www.thepremiershipclub.com/results2.html
the script
<!– TWO STEPS TO INSTALL BLINKING TEXT:
1. Copy the coding into the HEAD of your HTML document2. Add the last code into the BODY of your HTML document –>
<!– STEP ONE: Paste this code into the HEAD of your HTML document –>
<HEAD>
<SCRIPT LANGUAGE=”JavaScript”>
<!– This script and many more are available free online at –>
<!– The JavaScript Source!! [url]http://javascript.internet.com
<!– Original: Premshree Pillai (
<!– Web Site: [url]http://www.qiksearch.com
<!– Begin
window.onerror = null;
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == “Netscape” && bVer >= 4);
var IE4 = (bName == “Microsoft Internet Explorer”
&& bVer >= 4);
var NS3 = (bName == “Netscape” && bVer < 4);
var IE3 = (bName == “Microsoft Internet Explorer”
&& bVer < 4);
var blink_speed=250;
var i=0;
if (NS4 || IE4) {
if (navigator.appName == “Netscape”) {
layerStyleRef=”layer.”;
layerRef=”document.layers”;
styleSwitch=””;
}else{
layerStyleRef=”layer.style.”;
layerRef=”document.all”;
styleSwitch=”.style”;
}
}
//BLINKING
function Blink(layerName){
if (NS4 || IE4) {
if(i%2==0)
{
eval(layerRef+'[“‘+layerName+'”]’+
styleSwitch+’.visibility=”visible”‘);
}
else
{
eval(layerRef+'[“‘+layerName+'”]’+
styleSwitch+’.visibility=”hidden”‘);
}
}
if(i<1)
{
i++;
}
else
{
i–
}
setTimeout(“Blink(‘”+layerName+”‘)”,blink_speed);
}
// End –>
</script>
</HEAD>
<!– STEP TWO: Copy this code into the BODY of your HTML document –>
<BODY>
<div id=”prem_hint” style=”position:relative; left:0; visibility:hidden” class=”prem_hint”>
<font color=”#000000″><b>93</b></font>
</div>
<script language=”javascript”>Blink(‘prem_hint’);</script>
<p><center>
<font face=”arial” size”5″><br>
</a></font>
</center><p>
<!– Script Size: 1.98 KB –>