Björn Dieding@xrow.de
|
Thursday 04 August 2005 6:01:22 pm
some small javascript trick to view a larger image with out loading again
<div class="attribute-image">
{run-once}
{literal}
<script language="Javascript" type="text/javascript">
<!--
function enlargeImage( imsrc, ww, wh ) {
w1=window.open('','ImageEnlarged','width='+ww+',height='+wh+',status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,dependent=yes,innerHeight='+wh+',innerWidth='+ww+'');
w1.document.open();
w1.document.write("<html><head><\/head>");
w1.document.write("<body style=\"margin: 0px 0px 0px 0px;padding: 0px 0px 0px 0px;\">");
w1.document.write("<a href=\"javascript:window.close()\" style=\"margin: 0px 0px 0px 0px;border: none;padding: 0px 0px 0px 0px;\"><img name=theimg style=\"margin: 0px 0px 0px 0px;border: none;padding: 0px 0px 0px 0px;\" src=\"" + imsrc + "\" /></a>");
w1.document.write("<\/body><\/html>");
w1.document.focus();
};
//-->
</script>
{/literal}
{/run-once}
<p>
<a href="javascript:;" onClick="return enlargeImage('/{$node.data_map.image.content.original.full_path|ezurl(no}',{$node.data_map.image.content.original.width},{$node.data_map.image.content.original.height});" title="Click to Enlarge">
{attribute_view_gui attribute=$node.object.data_map.image image_class=imagelarge}
</a>
</p>
</div>
Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/
|