Jump to content


javascript popup resize?


3 replies to this topic

#1 tiki

    Young Padawan

  • Members
  • Pip
  • 259 posts
  • Gender:Male
  • Location:California

Posted 19 March 2006 - 03:30 AM

Is there a way to have a javascript popup that will resize it self to fit an image.

If they image is 200x200, can the popup resize to 200x200 without having to enter the width and height vars?

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 19 March 2006 - 01:47 PM

http://www.pixel2life.com/forums/index.php...19141&hl=pop+up

Other then that, i don't know of any other way to resize a window. I remember finding something a long time ago, but i also remember when i tried it, nothing happened.

#3 tiki

    Young Padawan

  • Members
  • Pip
  • 259 posts
  • Gender:Male
  • Location:California

Posted 19 March 2006 - 04:42 PM

Ok instead, is there a way to find the width and height of an image using php then echo it?

#4 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 19 March 2006 - 09:17 PM

http://php.net/manua...etimagesize.php
Theres 2 other functions at the bottom of that link if you would rather use those.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users