Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Size Of New Window -- Help please!!
Old 09-13-2004, 09:02 PM Size Of New Window -- Help please!!
Novice Talker

Posts: 7
Trades: 0
Hi everyone,

i am in the process of creating a basic website. the first page is a basically a splash page with the websites logo on it and an enter button. When the buttons clicked the main site opens in a new window.

How can i make this new window a set size when it opens? ie 709x567 px (the size of the graphic).

If anyone knows how can to do this or knows of a site i can get the answer from, post a reply.

Thanks in advance

Marvelous

Heres a link so you can see what i mean http://newenglandwrestling.4t.com
Marvelous is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-13-2004, 09:48 PM
easdesign.com's Avatar
Extreme Talker

Posts: 154
Trades: 0
Code:
<script>
var windowW=709 // wide
var windowH=567 // high
var windowX = 0 // from left
var windowY = 0 // from top
var urlPop = "http://newenglandwrestling.4t.com/layout.html"
var title =  "New England Wrestling"
var autoclose = false

s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false

function openForum(){
  if (beIE){
    NFW = window.open("","popForum","resizable","+s")     
    NFW.blur()
    window.focus()       
    NFW.resizeTo(windowW,windowH)
    NFW.moveTo(windowX,windowY)
    var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=auto>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
    NFW.document.open();
    NFW.document.write(frameString)
    NFW.document.close()
  } else {
    NFW=window.open(urlPop,"popForum","scrollbars,"+s)
    NFW.blur()
    window.focus() 
    NFW.resizeTo(windowW,windowH)
    NFW.moveTo(windowX,windowY)
  }   
  NFW.focus()   
  if (autoclose){
    window.onunload = function(){NFW.close()}
  }
}

</script>
Put that in your Header then this is the code for the button

Code:
<a href="javascript:openForum()"><IMG SRC="images/splash_logo%20copy.jpg" ALT="Enter Site" WIDTH=488 HEIGHT=325 border="0"></a>
Cheers!
easdesign.com is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Size Of New Window -- Help please!!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28381 seconds with 12 queries