Click to See Complete Forum and Search --> : probably been asked many times - popups


kg062079
10-14-2003, 04:28 AM
Hi,

I have a page of pictures, and want to have the ability so that when you click each picture it opens a new window displaying a larger image, a tiny bit of text and a button - but as i hav about 100 pictures I dont want to make a new page for each one!

I have managed to write a javascript thing to open a new window and display the picture, or open a window to display the text, but i can't manage to combine both and haven't a clue how to do the button!!

Can anyone help please?

Many thanks!

Charles
10-14-2003, 04:46 AM
There is a way to use JavaScript to do this but it would necessarily be a JavaScript dependent page - and 13% of users do not use JavaScript. You need some sort of server side script to generate from each image a complete page of HTML. And then you can call the script thusly...

<a href="someScript.pl" onclick="window.open(this.href, 'child', 'height=400,width=300'); return false"><img alt="[some image]" src="someImage.png"></a>