Mobbs
A Large Portion, Yes
I have been using a Java script but finding that is it grows it gets huge, and want to replace it with an array. Unfortunately that's a little over my head!
I'm currently doing the following :
var0="index000.gif"
lnk0="<a href='http://clubs.yahoo.com/clubs/timelordsfootyclub' target='resource window'>"
txt0="<font color='white'>Timelord's Footy Club</font></a>"
var1="index002.gif"
lnk1="<a href='http://www.fitzroyfc.com.au' target='resource window'>"
txt1="<font color='white'>Fitzroy FC (Vic)</font></a>"
now=new Date()
num=(now.getSeconds() )%1
if (num == 0)
{cliche=var0
link=lnk0
description=txt0}
if (num == 1)
{cliche=var1
link=lnk1
description=txt1}
document.write("<center><font color='white' size='-1'><i>Footypedia recommends :</i></font></center>")
document.write("<center>" + link + "<img src='" + cliche + "'>" + "</a></center>")
document.write("<center><font size='-3' color='white'>"+ link+description + "</font></center>")
But now its up to 31 items, the script has really blown out.
Wondering if there's a shorter way, using arrays?
Anyone?
I'm currently doing the following :
var0="index000.gif"
lnk0="<a href='http://clubs.yahoo.com/clubs/timelordsfootyclub' target='resource window'>"
txt0="<font color='white'>Timelord's Footy Club</font></a>"
var1="index002.gif"
lnk1="<a href='http://www.fitzroyfc.com.au' target='resource window'>"
txt1="<font color='white'>Fitzroy FC (Vic)</font></a>"
now=new Date()
num=(now.getSeconds() )%1
if (num == 0)
{cliche=var0
link=lnk0
description=txt0}
if (num == 1)
{cliche=var1
link=lnk1
description=txt1}
document.write("<center><font color='white' size='-1'><i>Footypedia recommends :</i></font></center>")
document.write("<center>" + link + "<img src='" + cliche + "'>" + "</a></center>")
document.write("<center><font size='-3' color='white'>"+ link+description + "</font></center>")
But now its up to 31 items, the script has really blown out.
Wondering if there's a shorter way, using arrays?
Anyone?





