K
Kamyk
Hello all!
Could you tell me where is the error on the below code, because the script
is sometimes
working correctly and sometimes is not working correctly. I want my new
window with picture
to be fitted/enlarged to original size. The page on the below address:
http://www.kapy.bydg.pl/~marcinz/stolarnia/.
I have Windows XP and IE 6.0. and everything works correctly. If I run the
page on Win 2000, IE 5.0.
it is not good-working.
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
function funkcja(rysunek)
{
obrazek=new Image()
obrazek.src=rysunek
zmienna_w=obrazek.width+50
zmienna_h=obrazek.height+50
zmienna='toolbar=yes,location=yes,scrollbars=yes,width=' + zmienna_w +
',height=' + zmienna_h
return window.open(rysunek,'oknoObr',zmienna)
}
</SCRIPT>
.....
<a href="#"
OnClick="funkcja('WojtStol_files/drzwi/wewnetrzne/100_0114.gif');"><img
src="WojtStol_files/drzwi/wewnetrzne/100_0114.gif" width=150 height=100
border=1></a>
......
Could you tell me where is the error on the below code, because the script
is sometimes
working correctly and sometimes is not working correctly. I want my new
window with picture
to be fitted/enlarged to original size. The page on the below address:
http://www.kapy.bydg.pl/~marcinz/stolarnia/.
I have Windows XP and IE 6.0. and everything works correctly. If I run the
page on Win 2000, IE 5.0.
it is not good-working.
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
function funkcja(rysunek)
{
obrazek=new Image()
obrazek.src=rysunek
zmienna_w=obrazek.width+50
zmienna_h=obrazek.height+50
zmienna='toolbar=yes,location=yes,scrollbars=yes,width=' + zmienna_w +
',height=' + zmienna_h
return window.open(rysunek,'oknoObr',zmienna)
}
</SCRIPT>
.....
<a href="#"
OnClick="funkcja('WojtStol_files/drzwi/wewnetrzne/100_0114.gif');"><img
src="WojtStol_files/drzwi/wewnetrzne/100_0114.gif" width=150 height=100
border=1></a>
......