Also, just to clarify for anyone that does have a gallery.php file or uses a server side language:
HTML Code:
<img src="file.jpg" alt="Vacation in Italy" width="100" height="100" onclick="expand(this)"/>
Code:
function expand(image_element) {
location.replace("gallery.php?alt=" + image_element.getAttribute("alt") + "&src=" + image_element.getAttribute("src"));
}
though do note that by having a php file accepting what could be user input, you will need to sanitize your data (things like absolute paths to images along with basename can help with that).
Bookmarks