| | |||||
| ||||||||
| Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms. |
![]() | NamePros Design Contests | Forum Sponsorship |
| Join in on the FUN! You can start an affordable design contest and pick from entries talented members submit or you can enter a design contest for a chance to win CASH PRIZES! What are you waiting for? Get started in the fun TODAY! - Banners, Logos, Mascots, and MORE! (Please READ the design Contest section rules Prior to starting or entering a contest) | ||
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: Aug 2003
Posts: 6
![]() | New window size? I have a hyperlink to a Swish animation (it's like Flash) that I want to open up in a new window. I want the new window to be the size of the animation. Is there a way of specifying the size of the new window in FrontPage, or does anyone know the html coding? Thanks!!!!
__________________ --Kristen |
| |
| | #2 (permalink) |
| NamePros Member Join Date: Jul 2003
Posts: 118
![]() | You would have to use javaScript to do this. Put the following function anywhere on your page, I'd suggest the top. Code:
<script>
function win(){
<!--
thWin = window.open('filename.html','newWindow','width=400,height=400,resizable=no,scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no');
//-->
}
</script> ????: NamePros.com http://www.namepros.com/web-design-discussion/15242-new-window-size.html Then use this code for your link, Code: <a href="javascript:win()">**Link goes here**</a>
__________________ Paulicon Web design - Your one stop shop |
| |
| | THREAD STARTER #3 (permalink) |
| New Member Join Date: Aug 2003
Posts: 6
![]() | Thanks for the help!!! But I should have been more specific. There are actually going to be three links to three different swish animations on this page....how can I specify the size of each new (and differently sized) window?
__________________ --Kristen |
| |
| | #4 (permalink) |
| NamePros Member Join Date: Jul 2003
Posts: 118
![]() | I think I understand you, if I do you can use the same code with a few changes to it. Code:
<script>
function win(w, h, name){
<!--
thWin = window.open([name]+'.html','newWindow','width='+[w]+',height='+[h]+',resizable= no,scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no');
//-->
}
</script> Code: <a href="javascript:win(200, 20, 'swishOne.html')">**Link one goes here**</a> <a href="javascript:win(20, 300, 'swishTwo.html')">**Link two goes here**</a> <a href="javascript:win(200, 200, 'swishThree.html')">**Link three goes here**</a> ????: NamePros.com http://www.namepros.com/showthread.php?t=15242 This will work as long as I have understood you right this time.
__________________ Paulicon Web design - Your one stop shop |
| |
| | THREAD STARTER #5 (permalink) |
| New Member Join Date: Aug 2003
Posts: 6
![]() | Hmmm...I'm pretty sure you did understand me right, but it didn't work. It gave me an error message every time I clicked on the page, and the links themselves didn't work right.I may have done something wrong in incorporating the code into my page, but I'm 99% sure i did it right. Also, I forgot to mention (but it shouldn't make a difference) that the links are images. I just put them where you said "Link-whatever goes here".
__________________ --Kristen |
| |
| | #6 (permalink) |
| NamePros Member Join Date: Jul 2003
Posts: 118
![]() | Ok I thin I know what the problem is. I think when you are copying and pasting the code into your page there are extra spaces being added. Right do this, cop this code into your page anywhere. <script> function win(w, h, name){ <!-- thWin = window.open([name]+'.html','newWindow','width='+[w]+',height='+[h]+',resizable= no,scrollbars=no,menubar=no,toolbar=no,directories =no,location=no,status=no'); ????: NamePros.com http://www.namepros.com/showthread.php?t=15242 //--> } </script> The following part of the functions code must contain no spaces and all be on one line. thWin = window.open([name]+'.html','newWindow','width='+[w]+',height='+[h]+',resizable= no,scrollbars=no,menubar=no,toolbar=no,directories =no,location=no,status=no'); Then the link just stays the same except your using an image but that wont make any difference. Let me know if you have any problems.
__________________ Paulicon Web design - Your one stop shop |
| |
| | #8 (permalink) |
| NamePros Member Join Date: Jul 2003
Posts: 118
![]() | Na it dosent matter, I have tried the script out in between the <body> tags and it works fine.
__________________ Paulicon Web design - Your one stop shop |
| |
| | #10 (permalink) |
| NamePros Member Join Date: Jul 2003
Posts: 118
![]() | Its ok I will forgive you this time
__________________ Paulicon Web design - Your one stop shop |
| |