PHP Get images from a UL list

Posted by benjamin shrimpton on Stack Overflow See other posts from Stack Overflow or by benjamin shrimpton
Published on 2010-06-02T15:03:24Z Indexed on 2010/06/02 15:13 UTC
Read the original article Hit count: 185

Filed under:

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??

© Stack Overflow or respective owner

Related posts about php