html - Random Images- how to add links? -
how add link these sets of random images. want link b , c respectively , want these colors match up. in page i'm working on (my own personal art site) these colors images.
http://rollinleonard.com/please-help/
<!doctype html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>rollin leonard</title> </head> <body> <script language="javascript"> function banner() { } ; b = new banner() ; n = 0 b[n++]= "<img name=randimg src='http://rollinleonard.com/please-help/images/green_01.gif' border='0' alt=''><img name=randimg src='http://rollinleonard.com/please-help/images/green_02.gif' border='0' alt=''><img name=randimg src='http://rollinleonard.com/please-help/images/green_03.gif' border='0' alt=''>" b[n++]= "<img name=randimg src='http://rollinleonard.com/please-help/images/purple_01.gif' border='0' alt=''><img name=randimg src='http://rollinleonard.com/please-help/images/purple_02.gif' border='0' alt=''><img name=randimg src='http://rollinleonard.com/please-help/images/purple_03.gif' border='0' alt=''>" b[n++]= "<img name=randimg src='http://rollinleonard.com/please-help/images/yellow_01.gif' border='0' alt=''><img name=randimg src='http://rollinleonard.com/please-help/images/yellow_02.gif' border='0' alt=''><img name=randimg src='http://rollinleonard.com/please-help/images/yellow_03.gif' border='0' alt=''>" i=math.floor(math.random() * n) ; document.write( b[i] ) </script> </body> </html>
if want whole image link, wrap <img>
tags within anchor:
<a href='http://link.to/wherever.html'><img ...></a>
Comments
Post a Comment