3 Replies - 2076 Views - Last Post: 02 April 2001 - 06:41 PM

#1 ErSammmy1  Icon User is offline

  • non.coder

Reputation: 0
  • View blog
  • Posts: -100
  • Joined: 31-March 01

pop up window from an image???

Posted 01 April 2001 - 03:40 PM

Does any one know the code to make a pop-up window from an image???  I need this quick so if anyone can help I would appreciate it.
Is This A Good Question/Topic? 0
  • +

Replies To: pop up window from an image???

#2 skyhawk133  Icon User is offline

  • Head DIC Head
  • member icon

Reputation: 1868
  • View blog
  • Posts: 20,280
  • Joined: 17-March 01

Re: pop up window from an image???

Posted 01 April 2001 - 03:55 PM

I don't understand, do you have an example? Do you mean you click an image and a pop up window comes up like I have on my site: http://www.spydertl.com

Or do you mean and image actually pops up...

Was This Post Helpful? 0
  • +
  • -

#3 malkiri  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 3
  • View blog
  • Posts: 364
  • Joined: 29-March 01

Re: pop up window from an image???

Posted 02 April 2001 - 10:31 AM

If I'm guessing what you want correctly, you would need some code like this in the IMG tag:

<img src="whatever.jpg" onclick="Java script:window.open()">

The open method for window takes a number of parameters that I can't remember off the top of my head. They let you specify how you want the window sized, positioned, etc.

-Malkiri

Was This Post Helpful? 0
  • +
  • -

#4 Glutnix  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 07-March 01

Re: pop up window from an image???

Posted 02 April 2001 - 06:41 PM

Nah, that won't work too well malkiri...

<a href="Java script:void(0);"><img src="images-content/small-brett.jpg" width="50" height="60" onmousedown="openwindow()" border="0"></a>

This will allow the image to look like a link...

Working examples at http://nerdflat.orco.../residents.html, made with DW4

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1