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 on a sliced page. Should I use an image placeholder, a named anchor, or ?? Could you please post the code for this, too, b/c I'm not very swift with the coding bit. Thanks to anyone who can help!
<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 on a sliced page. Should I use an image placeholder, a named anchor, or ?? Could you please post the code for this, too, b/c I'm not very swift with the coding bit. Thanks to anyone who can help!