Forum Moderators: open

Message Too Old, No Replies

Display lots images in one webpage

Navigation display

         

Alexsia

1:46 pm on Oct 25, 2004 (gmt 0)



im designing a website for my thesis and i want to load all my images of different kind of maps like soil map, rice land maps and etc.. i want it to load it only when user click it or choose it from my listmenu then it will appear in my view area

BlobFisk

3:27 pm on Oct 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, Alexsia!

You have a couple of choices here:

You could use an iFrame and have the link load a page containing the image in the iFrame, using hte target attribute. One disadvantage of this is that you need to have a seperate HTML page per image.

The second option is to use a script and have your image area as a <div>. You script could use the innerHTML property to change the image to the one you desire. This is a cleaner option in my opinion.

HTH

krieves

3:33 pm on Oct 25, 2004 (gmt 0)

10+ Year Member



Yeah, I've built several image viewers that way. Basically, I created an array to store the image names and have some script that steps though each item.