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=JAVASC RIPT TYPE="TEXT/JAVASCRIPT">
function funkcja(rysunek )
{
obrazek=new Image()
obrazek.src=rys unek
zmienna_w=obraz ek.width+50
zmienna_h=obraz ek.height+50
zmienna='toolba r=yes,location= yes,scrollbars= yes,width=' + zmienna_w +
',height=' + zmienna_h
return window.open(rys unek,'oknoObr', zmienna)
}
</SCRIPT>
.....
<a href="#"
OnClick="funkcj a('WojtStol_fil es/drzwi/wewnetrzne/100_0114.gif'); "><img
src="WojtStol_f iles/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=JAVASC RIPT TYPE="TEXT/JAVASCRIPT">
function funkcja(rysunek )
{
obrazek=new Image()
obrazek.src=rys unek
zmienna_w=obraz ek.width+50
zmienna_h=obraz ek.height+50
zmienna='toolba r=yes,location= yes,scrollbars= yes,width=' + zmienna_w +
',height=' + zmienna_h
return window.open(rys unek,'oknoObr', zmienna)
}
</SCRIPT>
.....
<a href="#"
OnClick="funkcj a('WojtStol_fil es/drzwi/wewnetrzne/100_0114.gif'); "><img
src="WojtStol_f iles/drzwi/wewnetrzne/100_0114.gif" width=150 height=100
border=1></a>
......
Comment