I tried to read as many posts as I could find on this topic but did not see any that answered the question I was looking for. Bottom line is that I use the random picture generator below and it works great. It allows you to link the pictues to specific websites which is exactly what I wanted to do. However, I'm having a very difficult time trying to find a way to open these links in a new window when the pictures are clicked on. Can anyone help?
Thanks in advance...
Code:<SCRIPT LANGUAGE="Javascript"> function banner() { } ; b = new banner() ; n = 0 b[n++]= "<A HREF='index.html'><IMG name=randimg SRC='images/interface/banner2.jpg' border='0' ALT='Haunted House'></A>" b[n++]= "<A HREF='index.html'><IMG name=randimg SRC='images/interface/banner3.jpg' border='0' ALT='Graves in the Snow'></A>" b[n++]= "<A HREF='index.html'><IMG name=randimg SRC='images/interface/banner4.jpg' border='0' ALT='Insane Joker'></A>" b[n++]= "<A HREF='index.html'><IMG name=randimg SRC='images/interface/banner5.jpg' border='0' ALT='Fangs'></A>" b[n++]= "<A HREF='index.html'><IMG name=randimg SRC='images/interface/banner6.jpg' border='0' ALT='Screaming Clowns'></A>" b[n++]= "<A HREF='index.html'><IMG name=randimg SRC='images/interface/banner7.jpg' border='0' ALT='Dead Servant'></A>" i=Math.floor(Math.random() * n) ; document.write( b[i] ) </SCRIPT>



Reply With Quote

Bookmarks