Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing img values to a js 1

Status
Not open for further replies.

hablablow

Programmer
Sep 9, 2000
115
FR

Hello,

I use a popup script. The new window is centered on screen.
I would like to open my window depending on the img ( size )
contained in it so that each individual width ( X ) and height ( Y ) is passed to the open window method

ONCLICK="javascript:WindowPop('pack.htm','pack','','X','Y','true')"

Is it possible to build a script wich passes both strings to the open window method ?

Hope this makes sense
Thanks for your incomming messsages
 
imagename.width
imagename.height

should do it _________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
Onpnt thank you but,
i'm not sure about your answer.
I would like to build a general function
so i don't want to give a specific name to it

imagename.width
imagename.height

goes

ONCLICK="javascript:WindowPop('pack.htm','pack','','imagename.width','imagename.height','true')" ??

Where do these 2 go ? in place of X and Y ? Correct?
Isn't it possible to store the width and height of an img tag somewhere and make the open window js retrieve it to build his popup ?
This is a litle abstract for me
Maybie this is un - logical
Tell me if it is the case

thx
 
[lol]

glad to help and thnak for the star _________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top