abhi.eternal
In search of light...
hi. i need your help for developing a webpage.
i have created a table with 3 columns. now i want to load images (300*250) in the middle column from a particular folder. but they should be selected randomly. after an image is selected, by clicking it a new link (target: blank) should open.
i think this can be achieved through JScript. If there are 20 images in a folder, here is what I think should be the code structure:
1: Generate a random number between 1-20. say x.
2: If x=1, then <a href="link1" target="_blank"><img src="image1.gif" alt="image1" width="300" height="250" border="0" /></a>
If x=2, then <a href="link2" target="_blank"><img src="image2.gif" alt="image2" width="300" height="250" border="0" /></a>...
3: If x < 1 and X > 20 goto step1.
this is just the structure. please provide me the exact JScript codes to do what I intend and its implementation.
please help. i promise the sender of the first solution thats works will have a nice small surprise for him/her.
thank you.
i have created a table with 3 columns. now i want to load images (300*250) in the middle column from a particular folder. but they should be selected randomly. after an image is selected, by clicking it a new link (target: blank) should open.
i think this can be achieved through JScript. If there are 20 images in a folder, here is what I think should be the code structure:
1: Generate a random number between 1-20. say x.
2: If x=1, then <a href="link1" target="_blank"><img src="image1.gif" alt="image1" width="300" height="250" border="0" /></a>
If x=2, then <a href="link2" target="_blank"><img src="image2.gif" alt="image2" width="300" height="250" border="0" /></a>...
3: If x < 1 and X > 20 goto step1.
this is just the structure. please provide me the exact JScript codes to do what I intend and its implementation.
please help. i promise the sender of the first solution thats works will have a nice small surprise for him/her.
thank you.