javasscript question
by franguim(at)menta.net
|
| Date: |
Mon, 17 Jul 2000 00:56:36 +0200 |
| To: |
hwg-languages(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
I've a script that recives three parameters, one srting and two ints ,
the string is the scr of an image and the other two
integers are the size of the image, when the scripts runs it have to
open one window whose size is the size of the image.
The script excute, but the window opened don't have the size of
parameters, the size is always the same, why? . The script is
it:
<SCRIPT LANGUAGE=3D"JavaScript">
var finestra
function verFoto(foto,ample,altu){
if (finestra) finestra.close();
var gran=3D"g"+foto
var amplada=3DMath.max(ample,578)
var altu=3Daltu+28
var conten=3D"<table width=3D100% border=3D0 cellspacing=3D0 cellpadding=3D=
0>"
conten+=3D"<tr align=3Dcenter valign=3Dmiddle> "
conten+=3D"<td><img src=3Danimales/"+ gran+ " width=3D" + ample+
"height=3D"+altu+"></td></tr>"
conten+=3D"<tr align=3Dcenter><td>"
conten+=3D"<object classid=3D'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
codebase=3D'http://download.macromedia.com/pub/shockwave/cabs/flash/swflas=
h.cab#version=3D4,0,2,0'
width=3D598
height=3D28>"
conten+=3D"<param name=3Dmovie value=3Dbarrafotos.swf><param name=3Dquali=
ty
value=3Dhigh>"
conten+=3D"<embed src=3Dbarrafotos.swf quality=3Dhigh
pluginspage=3D'http://www.macromedia.com/shockwave/download/index.cgi?P1_P=
rod_Version=3DShockwaveFlash
type=3Dapplication/x-shockwave-flash' width=3D598 height=3D28></embed>"
conten+=3D"</object></td></tr></table>"
finestra=3Dwindow.open("foto.htm","foto","heigth=3Daltu,width=3Damplada")
finestra.document.write(conten)
}
</SCRIPT>
amplada and altu, every time are diferents, but the window that the
navigator open is always the same.
=BFsomeone could help me?
Thanks
F.G.B
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.