I have a website with pictures like this one: http://www.potteryceramicsart.frac.dk/gallery_ceramics.php where a javascript shows each picture in a new window when you click on it, and I would like to see a php-script do the same. Can this easily be done or?
Would not simply using each picture as a link with target="_blank" do what you want in straight html?
target="_blank" won't let you specify new new window's settings. like size, status bar, menu, etc. Javascript is the only thing I know of that let's you pop up and configure a new window. PHP is a server side scripting language. It doesn't (can't) direct the browser to take any action. The only PHP improvement I can think of is instead of sending the pop up to an html page or an image send it to a PHP script like show_pic.php?pic_name=vase1.gif Giving yourself 1 place to make changes/improvements.
You'r right. Ok, hrmmm I'll have to look that one up and see if I can figure out what it can do for me. I think maybe I'll better just try and see if it looks good with each picture in its own page Including menus, top, side and bottom. This will create ca. 20-25 pages more, which - even though it is a very small amount - still more than tripples the size of the website in page numbers.