Hi
I'm trying to use a Dreamweaver MX extension which is supposed to centre a popup window (Center Popup Window, Based on script by the amazing taz@blastradius.com ) - it's available as a download from the extensions part of this site. If anyone knows it, perhaps you can help. Here is what I am doing, and what's going wrong.
I have dDreamweaver running, the page I am working on is open in Design view. I click on the image I am using as link ( it's a thumbnail) and add the Behavior Open Browser window, giving the source etc and defining the window size. I then use the Commands menu, where the Center Popup WIndow has installed itself, run it, give the same window size and ok it. When I test preview the page (F12) -- the browser window which now opens to show my page is centred!! I click on the thumbnail, and the large image opens in a browser window in the top left, as before.
When I look at the Code view, back in Dreamweaver, I see this code has been added to the page
</script>
<script language="JavaScript">
// Based on script by the amazing taz@blastradius.com
windowWidth=200;
windowHeight=200;
if (parseInt(navigator.appVersion) >= 4) window.moveTo((screen.width/2)-(windowWidth/2+10),(screen.height/2)-(windowHeight/2+20));
</script>
This is clearly in the wrong place ! how do I get it to appear in the code for the popup window?
Thanks
Paul
I'm trying to use a Dreamweaver MX extension which is supposed to centre a popup window (Center Popup Window, Based on script by the amazing taz@blastradius.com ) - it's available as a download from the extensions part of this site. If anyone knows it, perhaps you can help. Here is what I am doing, and what's going wrong.
I have dDreamweaver running, the page I am working on is open in Design view. I click on the image I am using as link ( it's a thumbnail) and add the Behavior Open Browser window, giving the source etc and defining the window size. I then use the Commands menu, where the Center Popup WIndow has installed itself, run it, give the same window size and ok it. When I test preview the page (F12) -- the browser window which now opens to show my page is centred!! I click on the thumbnail, and the large image opens in a browser window in the top left, as before.
When I look at the Code view, back in Dreamweaver, I see this code has been added to the page
</script>
<script language="JavaScript">
// Based on script by the amazing taz@blastradius.com
windowWidth=200;
windowHeight=200;
if (parseInt(navigator.appVersion) >= 4) window.moveTo((screen.width/2)-(windowWidth/2+10),(screen.height/2)-(windowHeight/2+20));
</script>
This is clearly in the wrong place ! how do I get it to appear in the code for the popup window?
Thanks
Paul