1) Script Title: Simple Controls Gallery
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...plegallery.htm
3) Describe problem: I have embedded the script in this page:www.17minutes.f2s.com/Gallery2.htm
I understand that the images can be hyperlinked. i would like to use this facility to open a new window with the relevant clicked image in for printing. I have tried to call a function I have written before:
but I don't know how to code calling the function and passing the "source" parameter to the function.Code:<SCRIPT LANGUAGE="JavaScript"> function BigPhoto(source){ var source var newWindow = window.open("", "", "location=no, directories=no, fullscreen=no, menubar=no, status=no, toolbar=no, width=900, height=600, scrollbars=no"); newWindow.document.write("<BODY BGCOLOR=#000000 LINK=#FFFFFF>"); newWindow.document.write("<center>"); newWindow.document.write("<a = 'javascript:window.refresh()'></a>") newWindow.document.write("<img src='" + source + "'/><br>"); newWindow.document.write("</body></html>"); newWindow.document.print(); newWindow.document.close(); } </SCRIPT>
Another option would be to make a new page, say called PrintImage, and link to it from the image and define it's source as part of the link so the page opens to display the image for printing.
Any thoughts please, my heads spinning!
Cheers, Lol



Reply With Quote

Bookmarks