Help with site

Associate
Joined
28 Jul 2003
Posts
1,987
Location
The Moon
I am using dreamweaver CS3 to build my first website and I want to make it such that I can click on a picture and it enlarges in a new window, anyone know how to do this?
 
Code:
<a href="somepicture.jpeg" target="_blank">
<img src="somepicture.jpeg"  />
</a>
Here's code which would do that.
I don't have dreamweaver so I can't tell you how to do it with the software.
 
In Dreamweaver, open up the "Behaviours" panel and use the <A>onClick function in there, or whatever other behaviour you want to set for the image. :cool:

dw1ow6.jpg


Add something like openBrWindow to open a new browser window, set the size for the new window and that should do the trick.

Randomly lifted from one of my web sites in which I have a picture doing this:-

Code:
onclick="MM_openBrWindow('images/Sam2.gif','Edinburgh','scrollbars=yes,width=580,height=816')
 
Last edited:
Back
Top Bottom