<script language="javascript">
var savewidth = 0;
function scaleImg(what){
what = document.getElementById(what);
if (navigator.appName=="Netscape")
winW = window.innerwidth;
if (navigator.appName.indexOf("Microsoft")!=-1)
winW = document.body.offsetwidth;
if (what.width>(720) || savewidth>(720)) {
if (what.width==(720))
what.width=savewidth;
else
{
savewidth = what.width;
what.style.cursor = "pointer";
what.width=(720);
}
}
}
</script>
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td align="center" valign="middle">
<script language="JavaScript">
var graphicHeight = window.innerHeight*0.7;
document.write("<img id='picture' alt='Highslide JS' {limit_var}='{new_limit}' usemap='#navi' onClick='scaleImg('picture')' onLoad='scaleImg('picture')' src='{media_src}' height="+graphicHeight+">");
</script>
</td>
</tr>
</table>
</td>
</tr>
</table>
1280x800 (http://www.xup.in/tn/2010_11/67565582.jpeg) (http://www.xup.in/dl,67565582/temp.jpg/) | 1024x768 (http://www.xup.in/tn/2010_11/29780482.jpeg) (http://www.xup.in/dl,29780482/temp2.jpg/) | 800x600 (http://www.xup.in/tn/2010_11/11054487.jpeg) (http://www.xup.in/dl,11054487/temp3.jpg/) |
Thanks works good for me..
can i know, what u've done for full preview???
div.imageresize img {
max-width:100%; max-height:100%;
}
<!-- Template file for JPG Files -->
<div class="imageresize"><img src="{media_src}" border="1" alt="{image_name}" /></div><br />