July 25, 200917 yr I have just about finished a website for a client and I have one thing that I would like to fix, but I have no idea how to do it. The website is temporarily at www.jaybeeweb.com/testsite . We have been given permission to use the financial calculators of one of my client's providers. I have linked to the calculators page at the top of the right sidebar. On the calculator page, there is a list of links to the individual calculators. When you click on one of those links, you get the calculator, but awkwardly placed in the upper left hand corner of a new window. Is there anyway I can restrict the size of this window, or to put the calculator into the maincontent area of the page? It looks really bad the way it is right now.
July 25, 200917 yr You can make a link open a new page of a certain size in a specified position (like a popup) although many experts don't think you should do this. <script type="text/javascript"> <!-- Idea by: Nic Wolfe (Nic@TimelapseProductions.com) --> <!-- Web URL: http://fineline.xs.mw --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=500,left = 100,top = 100');"); } // End --> </script> In the link:- <a href="javascript:popUp('linkedfilename.html')">Your link text</a> which will set the new window size 600*500px 100px from the top left corner of your screen, with scrollbars if necessary. It's code I got from the url shown and I have used it (I'm not sure why the date and time are in there). However, I can see that you haven't got the width to place the calculators in the middle column.
Create an account or sign in to comment