Hai ca am priceput ce vroiai.FyNNN wrote:Face la fel, doar ca deschide intr-o fereastra mai mica
Inlocuieste codul care ti l`am dat anterior cu:
Code: Select all
<script type="text/javascript">
// <![CDATA[
window.onload = resizeimg;
function resizeimg()
{
if (document.getElementsByTagName)
{
for (i=0; i<document.getElementsByTagName('img').length; i++)
{
im = document.getElementsByTagName('img')[i];
if (im.width > 600)
{
im.style.width = '540px';
im.style.height = '400px';
eval("pop" + String(i) + " = new Function(\"pop = window.open('" + im.src + " ','fullscale','width="+ im.width +",height="+ im.height +",scrollbars=1,resizable=1'); pop.focus();\")");
eval("im.onclick = pop" + String(i) + ";");
if (document.all) im.style.cursor = 'hand';
if (!document.all) im.style.cursor = 'pointer';
im.title = 'Click Here To See Image Full Size ';
}
}
}
}
// ]]>
</script>