I know this has been posted on the V8 forum.
http://community.actinic.com/showthread.php?t=38755
But as I am working on V10 I thought I would post here.
I have been trying to get this working on my site bit with little success.
I have tried all above that is suggested and also as js file and again nothing.
This is the code that is generated from the site.
<script language="JavaScript">
<!--
function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[ 1 ]="img1.jpg"
myimages[ 2 ]="img2.jpg"
myimages[ 3 ]="img3.jpg"
//specify corresponding links below
var imagelinks=new Array()
imagelinks[ 1 ]="http://www.url.com"
imagelinks[ 2 ]="http://www.url.com"
imagelinks[ 3 ]="http://www.url.net"
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>
any help would be great.
Thanks
http://community.actinic.com/showthread.php?t=38755
But as I am working on V10 I thought I would post here.
I have been trying to get this working on my site bit with little success.
I have tried all above that is suggested and also as js file and again nothing.
This is the code that is generated from the site.
<script language="JavaScript">
<!--
function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[ 1 ]="img1.jpg"
myimages[ 2 ]="img2.jpg"
myimages[ 3 ]="img3.jpg"
//specify corresponding links below
var imagelinks=new Array()
imagelinks[ 1 ]="http://www.url.com"
imagelinks[ 2 ]="http://www.url.com"
imagelinks[ 3 ]="http://www.url.net"
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>
any help would be great.
Thanks
Comment