PDA

View Full Version : New window



Ron Bakker
01-11-2004, 08:37 PM
I'm trying to opening a new window without scroll bar task bar, to display enlarged photos of my online catalogue.
The way I have it set up now I feel that some may get confused.
I have looked at other sites for the code, but I can't tell what belongs to what.
Cheers Ron

ApeNz
01-11-2004, 08:41 PM
dont you put " blank " in the target area of the HTML code by the link

Rob99
01-11-2004, 10:48 PM
What are you using to make the code?

To open a window, you need to define the width and height, you can set scrollbars if you like. All this happens on the main page.

The window that it opens contains very little code, probally just a <img src=" and maybe a close window.

Ron Bakker
01-11-2004, 10:54 PM
I use Dreamweaver3
Here is site with the effect I am going for.
http://www.toyo.co.nz/px4.htm
when you click on the pic, the window that opens is simple.

Cheers Ron

Rob99
01-11-2004, 11:17 PM
This is on the main page

<html>
<head>
<title>Untitled Document</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body>
images/image-thumb.gif
</body>
</html>


This is the popup window:

<html>
<head>
<title>Untitled Document</title>
</head>

<body>
images/image.gif
</body>
</html>

Greg S
01-11-2004, 11:18 PM
I can't recall how it goes in DW3 - here's how I do it in MX:

Click on your image.
In the Behaviours window, click the + to add an event.
Click Open Browser Window.
Scroll to your images folder to the larger image.
Enter the image dimensions.
After choosing which attributes you want, eg scroll bar etc, click ok.
Under events choose (on click)

The code should look something like this:

<ahref="javascript:;"onclick="MM_openBrWindow('images/image1.jpg','','width=450,height=470')">images/image1b.jpg

Rob99
01-11-2004, 11:22 PM
&l t;/head>

dont know how that happend but obviously </head>

Ron Bakker
02-11-2004, 06:26 AM
Wow it was there all along!!
Thanks Greg S. this makes things easy for me.

Cheers Ron