Tuesday, October 30, 2007

load large image (on clicking small image)

<script type="text/javascript" language="javascript">
function view_im(img){
newwin=window.open('','printwin','left=100,top=100,width=800,height=800')
newwin.document.write('<HTML>\n<HEAD>\n')
newwin.document.write('<TITLE>Print Page</TITLE>\n')
newwin.document.write('</HEAD>\n')
newwin.document.write('<BODY>\n')
newwin.document.write('<table align="center"> <tr><td align="center" valign="middle">')
newwin.document.write("<img src='")
newwin.document.write('<?=constant('HTML_HOST_LINK')?>'+img)
newwin.document.write("' alt=''/>")
newwin.document.write("</td></tr></table>")
newwin.document.write('</BODY>\n')
newwin.document.write('</HTML>\n')
newwin.document.close()


}
</script>



Powered by ScribeFire.

No comments:

Post a Comment