Makaveli.2003
02-05-2003, 05:30 PM
Im using an array like this in my script, how would I go about adding a link to a URL wen the user clicks on the picture? If u need to view all my script, say so and I will post it up, thanks
var imglist = new Array();
imglist[0] = new BuildZeroArray(ImagesInList[0])
imglist[0][0] = new Image ()
imglist[0][0].src = "bday.gif"
imglist[0][0].width = imgW;
imglist[0][0].height = imgH;
imglist[0][1] = new Image ()
imglist[0][1].src = "cancel.gif"
imglist[0][1].width = imgW;
imglist[0][1].height = imgH;
imglist[0][2] = new Image ()
imglist[0][2].src = "changesb.gif"
imglist[0][2].width = imgW;
imglist[0][2].height = imgH;
imglist[0][3] = new Image ()
imglist[0][3].src = "chksubs.gif"
imglist[0][3].width = imgW;
imglist[0][3].height = imgH;
imglist[0][4] = new Image ()
imglist[0][4].src = "emlsysop.gif"
imglist[0][4].width = imgW;
imglist[0][4].height = imgH;
imglist[0][5] = new Image ()
imglist[0][5].src = "login.gif"
imglist[0][5].width = imgW;
imglist[0][5].height = imgH;
imglist[0][6] = new Image ()
imglist[0][6].src = "lstpswd.gif"
imglist[0][6].width = imgW;
imglist[0][6].height = imgH;
imglist[0][7] = new Image ()
imglist[0][7].src = "newuser.gif"
var imglist = new Array();
imglist[0] = new BuildZeroArray(ImagesInList[0])
imglist[0][0] = new Image ()
imglist[0][0].src = "bday.gif"
imglist[0][0].width = imgW;
imglist[0][0].height = imgH;
imglist[0][1] = new Image ()
imglist[0][1].src = "cancel.gif"
imglist[0][1].width = imgW;
imglist[0][1].height = imgH;
imglist[0][2] = new Image ()
imglist[0][2].src = "changesb.gif"
imglist[0][2].width = imgW;
imglist[0][2].height = imgH;
imglist[0][3] = new Image ()
imglist[0][3].src = "chksubs.gif"
imglist[0][3].width = imgW;
imglist[0][3].height = imgH;
imglist[0][4] = new Image ()
imglist[0][4].src = "emlsysop.gif"
imglist[0][4].width = imgW;
imglist[0][4].height = imgH;
imglist[0][5] = new Image ()
imglist[0][5].src = "login.gif"
imglist[0][5].width = imgW;
imglist[0][5].height = imgH;
imglist[0][6] = new Image ()
imglist[0][6].src = "lstpswd.gif"
imglist[0][6].width = imgW;
imglist[0][6].height = imgH;
imglist[0][7] = new Image ()
imglist[0][7].src = "newuser.gif"