2 replies [Last post]
La.Pomme.Verte
La.Pomme.Verte's picture
User offline. Last seen 5 years 41 weeks ago. Offline
newbie
Joined: 2004-11-14
Posts: 1
Points: 0

Okay. I'm in a dilemma. I can't seem to find ANY code or create ANY code for an image link that once clicked on opens up a popup window.

Basically, what I want is an image...And when you click on it to open a popup window in another window, obviously. Can this be done? Does it have to be purely with text?

The way I've been able to do this is with Javascript and I hate Javascript.

Any help would be IMMENSELY appreciated.

Kodee.

Hugo
Hugo's picture
User offline. Last seen 3 hours 32 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+1
Joined: 2004-06-06
Posts: 14200
Points: 1256

Image Link Popup Windows

Hi there, if your willing to use a transitional dtd then you could use the 'target="_blank" in your link but it is officially a deprecated tag as of HTML 4.01 and probably not a great idea to get in the habit of using, Javascript is the only other option really and works reasonably well .
The opening of windows is not really a document issue hence the removal of the function in HTML/XHTML it's a user issue and their choice to control with the browser I think.

Hope that's of some help.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

thepineapplehead
thepineapplehead's picture
User offline. Last seen 2 days 6 hours ago. Offline
rank Guru
Guru
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9180
Points: 284

Image Link Popup Windows

Is there any need for a popup window?

Check out www.s7u.co.uk and look for the photo gallery.

http://www.stunicholls.myby.co.uk/menu/scroll_gallery.html

There's a host of other stuff there, too.