Forum Moderators: open

Message Too Old, No Replies

Display Larger Image in DW MX

Need to enlarge an image in a screen the same size as the image.

         

BeeDeeDubbleU

9:22 pm on Nov 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have two images of a map and I need to set things up so that when the smaller image is clicked a larger version is somehow displayed. At the moment I have the smaller image linked to the larger image as a target _blank. This works but it displays the larger image in a full screen.

The problem is that I don't want the larger image to open up in full screen. Is there a way that I can get the larger image to open in a screen sized to the new image and with a close button?

Powdork

6:10 pm on Nov 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<a href="javascript:;" onClick="MM_openBrWindow('example.htm','','width=700,height=525')"><img src="example.jpg" width="120" height="90" border="1"></a>

I used to be able to get this code using behaviors in DW4, I'm not sure how it would be done in MX, but I'm guessing with the code tab, then choosing js.

Powdork

8:39 am on Nov 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Okay, i found it in mx. Choose window-behaviors and then highlight the image and click the + sign in your behaviors window. If open new window is greyed out you must choose a newer browser version as your target browser. It's not the 'server behaviors' that appears under your application drop down tab.

BeeDeeDubbleU

11:07 am on Nov 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Cheers Powdork. I have it now. I had did this is the past, I just coudn't remember how. The confusion is that when you select the image the DW behaviors panel defaults to a particular behaviour. You then have to select this and change it to the one you actually want.

BeeDeeDubbleU

11:09 am on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Anyone know how I include a Close button?

Deepcreek

1:07 pm on Nov 21, 2004 (gmt 0)

10+ Year Member



Paste this code into the body where you want the close button to appear...

<input type=button value="Close Window" onClick="javascript:self.close();">

BeeDeeDubbleU

1:27 pm on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I can't place it into the body because the new window is an image as opposed to an HTML page or am I misunderstanding you?

sonjay

2:31 pm on Nov 21, 2004 (gmt 0)

10+ Year Member



You would need to put the larger image on an html page and link to the page, not to the image. Then you can put the "close window" button on the page, along with the image.

I always wonder about the need for a "close window" button, though. Doesn't every browser window already have a "close" box in the corner? And don't even the most clueless of newbies know how to close windows? You might ask yourself if your "close window" button is really necessary.

BeeDeeDubbleU

9:43 pm on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have asked myself but it's the client who wants this. What can I say?