Hi, I'm using the following code to place a random image with links:
<script language="JavaScript">
function random_imglink(){
var myimages=new Array()
myimages[1]="/Homepage/images/mainFrame_Beth_01.gif"
myimages[2]="/Homepage/images/mainFrame_Darla_01.gif"
myimages[3]="/Homepage/images/mainFrame_Natalie_01.gif"
myimages[4]="/Homepage/images/mainFrame_Toni_01.gif"
myimages[5]="/Homepage/images/mainFrame_Twins_01.gif"
myimages[6]="/Homepage/images/mainFrame2_01.gif"
myimages[7]="/Homepage/images/mainFrame_Vivian_01.gif"
var imagelinks=new Array()
imagelinks[1]="/MainFrame/mf_PS_Beth.htm"
imagelinks[2]="/MainFrame/mf_PS_Darla.htm"
imagelinks[3]="/MainFrame/mf_PS_natalie.htm"
imagelinks[4]="/MainFrame/mf_PS_Toni.htm"
imagelinks[5]="/MainFrame/mf_PS_twins.htm"
imagelinks[6]="/MainFrame/mf_PS_laPorscha.htm"
imagelinks[7]="/MainFrame/mf_PS_Vivian.htm"
var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0 ></a>')
}
random_imglink()
//-->
</script>
I would like the random image to appear in a specific spot in a table. I've created an image placeholder for it to go into (same size as the random images, named "ps"--> how can I alter the script to tell it where to load into? As is, the random image loads above the table. THANKS!!
<script language="JavaScript">
function random_imglink(){
var myimages=new Array()
myimages[1]="/Homepage/images/mainFrame_Beth_01.gif"
myimages[2]="/Homepage/images/mainFrame_Darla_01.gif"
myimages[3]="/Homepage/images/mainFrame_Natalie_01.gif"
myimages[4]="/Homepage/images/mainFrame_Toni_01.gif"
myimages[5]="/Homepage/images/mainFrame_Twins_01.gif"
myimages[6]="/Homepage/images/mainFrame2_01.gif"
myimages[7]="/Homepage/images/mainFrame_Vivian_01.gif"
var imagelinks=new Array()
imagelinks[1]="/MainFrame/mf_PS_Beth.htm"
imagelinks[2]="/MainFrame/mf_PS_Darla.htm"
imagelinks[3]="/MainFrame/mf_PS_natalie.htm"
imagelinks[4]="/MainFrame/mf_PS_Toni.htm"
imagelinks[5]="/MainFrame/mf_PS_twins.htm"
imagelinks[6]="/MainFrame/mf_PS_laPorscha.htm"
imagelinks[7]="/MainFrame/mf_PS_Vivian.htm"
var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0 ></a>')
}
random_imglink()
//-->
</script>
I would like the random image to appear in a specific spot in a table. I've created an image placeholder for it to go into (same size as the random images, named "ps"--> how can I alter the script to tell it where to load into? As is, the random image loads above the table. THANKS!!