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<br />
<br />
var imglist = new Array();<br />
imglist[0] = new BuildZeroArray(ImagesInList[0])<br />
imglist[0][0] = new Image ()<br />
imglist[0][0].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"bday.gif"<br />
imglist[0][0].width = imgW; <br />
imglist[0][0].height = imgH;<br />
imglist[0][1] = new Image ()<br />
imglist[0][1].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"cancel.gif"<br />
imglist[0][1].width = imgW; <br />
imglist[0][1].height = imgH; <br />
imglist[0][2] = new Image ()<br />
imglist[0][2].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"changesb.gif"<br />
imglist[0][2].width = imgW; <br />
imglist[0][2].height = imgH; <br />
imglist[0][3] = new Image ()<br />
imglist[0][3].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"chksubs.gif"<br />
imglist[0][3].width = imgW; <br />
imglist[0][3].height = imgH; <br />
imglist[0][4] = new Image ()<br />
imglist[0][4].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"emlsysop.gif"<br />
imglist[0][4].width = imgW; <br />
imglist[0][4].height = imgH; <br />
imglist[0][5] = new Image ()<br />
imglist[0][5].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"login.gif"<br />
imglist[0][5].width = imgW; <br />
imglist[0][5].height = imgH; <br />
imglist[0][6] = new Image ()<br />
imglist[0][6].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"lstpswd.gif"<br />
imglist[0][6].width = imgW; <br />
imglist[0][6].height = imgH; <br />
imglist[0][7] = new Image ()<br />
imglist[0][7].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"newuser.gif"<!--content-->Sorry uve lost me, I new to Javascriptin, and I jus tryin to edit a existing script, could u show/explain it more, ive attached my script so that u can see how im getting the images. Thank u<!--content-->Can ne1 help plz???? <!--content-->
<br />
var imglist = new Array();<br />
imglist[0] = new BuildZeroArray(ImagesInList[0])<br />
imglist[0][0] = new Image ()<br />
imglist[0][0].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"bday.gif"<br />
imglist[0][0].width = imgW; <br />
imglist[0][0].height = imgH;<br />
imglist[0][1] = new Image ()<br />
imglist[0][1].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"cancel.gif"<br />
imglist[0][1].width = imgW; <br />
imglist[0][1].height = imgH; <br />
imglist[0][2] = new Image ()<br />
imglist[0][2].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"changesb.gif"<br />
imglist[0][2].width = imgW; <br />
imglist[0][2].height = imgH; <br />
imglist[0][3] = new Image ()<br />
imglist[0][3].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"chksubs.gif"<br />
imglist[0][3].width = imgW; <br />
imglist[0][3].height = imgH; <br />
imglist[0][4] = new Image ()<br />
imglist[0][4].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"emlsysop.gif"<br />
imglist[0][4].width = imgW; <br />
imglist[0][4].height = imgH; <br />
imglist[0][5] = new Image ()<br />
imglist[0][5].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"login.gif"<br />
imglist[0][5].width = imgW; <br />
imglist[0][5].height = imgH; <br />
imglist[0][6] = new Image ()<br />
imglist[0][6].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"lstpswd.gif"<br />
imglist[0][6].width = imgW; <br />
imglist[0][6].height = imgH; <br />
imglist[0][7] = new Image ()<br />
imglist[0][7].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"newuser.gif"<!--content-->Sorry uve lost me, I new to Javascriptin, and I jus tryin to edit a existing script, could u show/explain it more, ive attached my script so that u can see how im getting the images. Thank u<!--content-->Can ne1 help plz???? <!--content-->