|
-
August 6th, 2011, 01:28 PM
#1
using an XML file to place images on a web page
Hi, I am not a programmer and what I am thinking shouldn't be too difficult for all you experts. I have a web page that has images displayed basically in a table with 4 columns and by how ever many rows needed to accommodate the quantity of images available. Some of the images change on a regular basis and I don't want to have to put in the HTML static data when it changes on a regular basis. I would like to have the ability to just use an XML file to add or subtract images as they are requested to be changed. The XML file would contain image names, image size for a small version and a large version, and a description. From the web page, I would like to call the XML file and use the inputted info for each image and populate the web page in the preset layout. In the preset layout, I would like to figure out the number of images that are going to be displayed and populate the table to display the images and the information. Also, currently, we use a Java script to enlarge the image if clicked on by the user.
I have found Java image galleries, but they don't display the images like we want. I am hoping that we can put some simple variables into the webpage and call the XML file to build the gallery table. Thanks for any help in advance.
-
September 27th, 2011, 08:33 AM
#2
Re: using an XML file to place images on a web page
Well, the XML file is only the 'data storage' to say so.
What you are looking for is a JavaScript solution to read the XML and insert the appropiate code into your webpage.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|