PHP Get images from a UL list
- by benjamin shrimpton
I have a long UL list and each LI contains an image tag, dynamically generated from SLideshowPro Director.
I need to get the widths of ALL the images inside the UL to use in a CSS width calculation.
I have been able to get the image width for the first item, but not all.
My PHP is pretty limited, but do I have to make this list into an ARRAY first to allow me to get all the widths?
And how do i do that??
These images contain very long id's generated by the CMS, so reading through a directory is not possible, as the images in cache bare not relation to the file names that are output to the HTML page. It has to all be done from the content that's sent to the page.
Or could I even use JQuery to do this??