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.

CSS Forum


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



Reply
open new window with set width and height
Old 10-15-2007, 06:55 PM open new window with set width and height
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
Trying to open a new window on hyperlink to open to a set width and height browser window.

can I do this with pseudo classes in css?
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
 
Register now for full access!
Old 10-15-2007, 08:53 PM Re: open new window with set width and height
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
No, that would be done with Javascript. You can't edit the size of a browser with CSS.

Ask in the Javascript forum for how to do this.
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 10-15-2007, 10:30 PM Re: open new window with set width and height
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
Well, is there a way to do it WITHOUT javascript?
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
Old 10-15-2007, 10:46 PM Re: open new window with set width and height
l3lueMage's Avatar
Skilled Talker

Posts: 73
Location: San Jose, California
Trades: 0
Nope don't think so, heres how to do it though

Code:
<head>
<script type="text/javascript">
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
</script>
</head>

<body>
<a href="http://www.google.com" onclick="MM_openBrWindow('http://www.google.com','Window Title','width=500,height=500')">dfgdfgdfg</a>
</body>
</html>
Doesn't seem to work in Internet explorer 7..
l3lueMage is offline
Reply With Quote
View Public Profile
 
Old 11-07-2007, 04:22 PM Re: open new window with set width and height
Novice Talker

Posts: 6
Name: Michael Smith
Trades: 0
Yes, I agree. You need to use Java script in order to set the width and height of a pop up window. You can't do it with CSS.
michael221 is offline
Reply With Quote
View Public Profile
 
Old 11-07-2007, 07:03 PM Re: open new window with set width and height
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
Um...delayed post?
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 11-08-2007, 03:29 AM Re: open new window with set width and height
Average Talker

Posts: 18
Name: Chris
Trades: 0
You could use a CSS div instead of a popup to create the same effect. Obviously it wouldnt appear as a window on the taskbar and so long as you had a close button it could be done. It would still require some javascript though (Close button and whatnot)
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
cmjphp is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to open new window with set width and height
 

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.38413 seconds with 12 queries