Need web building advice: opening new windows of a fixed size

  • 7 Replies
  • 3260 Views
*

Offline Hmpf

  • 825
  • 15
  • Now with less rain.
    • View Profile
I'm trying to create a small gallery on my new website where you can click on a thumbnail and this will open a fixed-size window in which the full image will be displayed. How do I do that? I've been trying it in Dreamweaver, but the result doesn't seem to work in either of my browsers, even when I disable the pop-up blockers and so on. The code Dreamwaver gave me looks like this:

<a href="img/harbour.png"><img src="img/harbour_thumb.png" alt="harbour thumbnail" border="0" onload="MM_openBrWindow('img/harbour.png','harbour','width=592,height=232')" /></a>

Is there something wrong with that code? Any tips what I could change to make this work?

ETA: Never mind, I think I found the problem.

ETA2: Actually... I found out how to make the little pop-up window appear. However, for some reason there is *also* a full-size new browser tab that appears at the same time. Any idea why *that* happens? o.O

ETA3: Okay, now I *have* found and solved the problem. :-)
« Last Edit: July 19, 2010, 03:12:33 by Hmpf »

*

Offline Hmpf

  • 825
  • 15
  • Now with less rain.
    • View Profile
Re: Need web building advice: opening new windows of a fixed size
« Reply #1 on: July 19, 2010, 04:26:27 »
Well, frell. I should have written down what exactly the solution was, because I'm having the same frelling problem with the next page right now. GrrrrAAaaarrrRRRRGhh.

*

Offline AClockworkLemon

  • 708
  • 2
  • -Inactive-
    • View Profile
Re: Need web building advice: opening new windows of a fixed size
« Reply #2 on: July 19, 2010, 04:30:21 »
Have a look throught the code for the last page, and copy it across
I'm not dead. Not entirely. And yes, I'm embarrassed by most of the posts I made here.
:hiddenstar: - From Pumpkinbot

*

Offline Hmpf

  • 825
  • 15
  • Now with less rain.
    • View Profile
Re: Need web building advice: opening new windows of a fixed size
« Reply #3 on: July 19, 2010, 05:18:22 »
Have a look throught the code for the last page, and copy it across

Actually, I seem to have solved the problem... *again*. Though I still don't know how. o.O

Thanks, anyway! :-) I think I should probably go to bed now; my new KS website is done. One website down, one to go... (I have to hand in two projects on Tuesday, arrgh.)

*

Offline Miss Paula

  • 953
  • 30
  • I demand more of these.
    • View Profile
Re: Need web building advice: opening new windows of a fixed size
« Reply #4 on: July 19, 2010, 14:06:34 »
why do people like pictures appearing in popups? :sad: why do people use popups at all, anyways. D:
Spoiler: (click to show/hide)
:hs::hs::hs::hs::fish::hs::hs::hs::hs:
:hs:

*

Offline Hmpf

  • 825
  • 15
  • Now with less rain.
    • View Profile
Re: Need web building advice: opening new windows of a fixed size
« Reply #5 on: July 19, 2010, 14:50:54 »
why do people like pictures appearing in popups? :sad:

Because opening a new *big* page for a small image like a KS screenshot isn't very elegant, I find. The new window in that case would cover the entire main page of the site I'm building, and you'd have to click it closed to see the main page again. And the little screenie would look all lost on such a big, empty page. Hey, this forum uses popups, too! Every time I attach a picture that is larger than the standard screenshot size - e.g. my map screenshot I just posted yesterday - it gets opened in a popup window. And I like that - I like being able to look at an image - in a small extra window - while still being able to read the post it belongs to.

Re: Need web building advice: opening new windows of a fixed size
« Reply #6 on: July 19, 2010, 15:26:46 »
Use gallery software like this: http://minishowcase.net/demo/

Much better solution.

*

Offline LPChip

  • You can only truly help other people by allowing them to fail.
  • 3510
  • 138
  • Excel at the thing you're the best at!
    • View Profile
    • LPChip Interactive
Re: Need web building advice: opening new windows of a fixed size
« Reply #7 on: July 19, 2010, 18:14:02 »
Even better, make the image appear inside your page, like we have with the spoiler function. That way, a popup killer will not block it.
on the left, above my avatar.

MODPlug Central Forum
"If I tried to kill you, I'd end up with a big fat hole through my laptop." - Chironex