gticlutchburn
03-06-2005, 03:35 AM
I have been trying to get this script to let me open the linked page in a new window that I can resize with no toolbars or scrollbars. This is the code I have, any help would be appreciated...
<script language="JavaScript">
<!--
/*
Random Image Link Script
By Website Abstraction (http://www.wsabstract.com)
and Java-scripts.net (http://www.java-scripts.net)
*/
function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="splash/patboy.jpg"
myimages[2]="splash/kevinboy.jpg"
myimages[3]="splash/keithboy.jpg"
myimages[4]="splash/chrisboy.jpg"
myimages[5]="splash/danboy.jpg"
//specify corresponding links below
var imagelinks=new Array()
imagelinks[1]="index2.html"
imagelinks[2]="index2.html"
imagelinks[3]="index2.html"
imagelinks[4]="index2.html"
imagelinks[5]="index2.html"
var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<a href='+'"'+imagelinks[ry]+'"'+' target="_blank"><img src="'+myimages[ry]+'" border=0></a>')
}
random_imglink()
//-->
</script>
<script language="JavaScript">
<!--
/*
Random Image Link Script
By Website Abstraction (http://www.wsabstract.com)
and Java-scripts.net (http://www.java-scripts.net)
*/
function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="splash/patboy.jpg"
myimages[2]="splash/kevinboy.jpg"
myimages[3]="splash/keithboy.jpg"
myimages[4]="splash/chrisboy.jpg"
myimages[5]="splash/danboy.jpg"
//specify corresponding links below
var imagelinks=new Array()
imagelinks[1]="index2.html"
imagelinks[2]="index2.html"
imagelinks[3]="index2.html"
imagelinks[4]="index2.html"
imagelinks[5]="index2.html"
var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<a href='+'"'+imagelinks[ry]+'"'+' target="_blank"><img src="'+myimages[ry]+'" border=0></a>')
}
random_imglink()
//-->
</script>