It displayed the code wrong in first post. here it is:
<SCRIPT language=JavaScript>
<!--
function random_imglink(){
var mylink=new Array()
//Add the links below include image src. backslash all quotation marks
// ad 1
mylink[1]="<a href~ "
// ad 2
mylink[2]="<a href~ "
// ad 3
mylink[3]="<a href~ "
// Get random link
var rl=Math.floor(Math.random()*mylink.length)
if (rl==0)
rl=1
document.write(''+mylink[rl]+'')
}
random_imglink()
//-->
</SCRIPT>
the above is the link code, and below is my attempt at using it for YouTube (i just used the same Youtube video until i figured out if it works.. which it doesnt.
<SCRIPT language=JavaScript>
<!--
function random_imglink(){
var mylink=new Array()
//Add the links below. backslash all quotation marks
// Kaspersky
mylink[1]="<object type=\"application/x-shockwave-flash\" style=\"width:305px; height:250px;\" data=\"http://www.youtube.com/v/ZoMSS8FRoi8?rel=0&showsearch=0&showinfo=0\">
<param name=\"movie\" value=\"http://www.youtube.com/v/ZoMSS8FRoi8?rel=0&showsearch=0&showinfo=0\" /></object>"
mylink[2]="<object type=\"application/x-shockwave-flash\" style=\"width:305px; height:250px;\" data=\"http://www.youtube.com/v/ZoMSS8FRoi8?rel=0&showsearch=0&showinfo=0\">
<param name=\"movie\" value=\"http://www.youtube.com/v/ZoMSS8FRoi8?rel=0&showsearch=0&showinfo=0\" /></object>"
mylink[3]="<object type=\"application/x-shockwave-flash\" style=\"width:305px; height:250px;\" data=\"http://www.youtube.com/v/ZoMSS8FRoi8?rel=0&showsearch=0&showinfo=0\">
<param name=\"movie\" value=\"http://www.youtube.com/v/ZoMSS8FRoi8?rel=0&showsearch=0&showinfo=0\" /></object>"
// Get random link
var rl=Math.floor(Math.random()*mylink.length)
if (rl==0)
rl=1
document.write(''+mylink[rl]+'')
}
random_imglink()
//-->
</SCRIPT>