Setting the Size for a New Window

liunx

Guest
I'm using Front Page and I have a web page with a list of names with hyperlinks to jpg pictures of each person. They open in a new window when the person's name is clicked on but I would like the new window to open so it fits the 800x600 picture instead of just whatever size a new window happens to be on a user's browser.

Are there settings in Front Page to make the program automatically do this or would I have to manually create a new html page for each picture with the proper language so it opens to a specific size?

I hope I said all of that right. I'm not very familiar with html or making web pages. Thanks in advance.There is spawn (<!-- m --><a class="postlink" href="http://www.jimcosoftware.com/addins.aspx">http://www.jimcosoftware.com/addins.aspx</a><!-- m -->) that will help you create pop-up code, but usually you have to point to an HTML page or even add more javascript to control the window the JPG opens up in. Plus in the new browsers, pop-ups tend to open in a new tab - not a pop-upImages of 800 x 600 seem a bit on the large size but give this a try

<script type="text/javascript">
<!--
function openWindow(url){
newWin = open(url,'win1','width=800,height=600,top=0,left=0' )
}
//-->
</script>

<a href=http://www.webdeveloper.com/forum/archive/index.php/"image1.jpg" onclick="openWindow(this.href) ; return false">Image 1</a>

<a href=http://www.webdeveloper.com/forum/archive/index.php/"image2.jpg" onclick="openWindow(this.href) ; return false">Image 2</a>
 
Back
Top