Click to See Complete Forum and Search --> : Any way to copy or reference an image on page for 2nd placement on same page?


scottba
01-19-2007, 02:36 PM
I'm wondering if it's at all possible to make a copy of or reference to one image that is already on a page?

I have a page that allows the user to upload an image. I'm using CSS to style and create a thumbnail version for display on the page while the original is kept in a folder. I'm trying to figure out how I could make a duplicate of that image and then position elsewhere on the page, hopefull using some clever CSS(?).

Right now I'm stying the img tag which is fine because the only other img's on the page are links so I'm able to get around those being affected. There is one other 'hook' id I could use but that's eseentially generated from the db and is more product specific and I'm hoping to make a more universal scenario. I also thought about using the uploaded image as a background image but the database tags that with a unique filename when it's uploaded.

All ideas appreciated,
-Scott

holyhttp
01-20-2007, 01:57 AM
Try Javascript instead.