Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 29th, 2007, 02:21 AM
Computer-bot Computer-bot is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 402 Computer-bot User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 7 h 25 m 42 sec
Reputation Power: 2
Set the size and placement of window

I am adding a link that will open a page in a new window. I want that window to be small (a small rectangle) and open right in the middle of the screen. How can I do it?

CB

Reply With Quote
  #2  
Old April 29th, 2007, 02:52 AM
Computer-bot Computer-bot is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 402 Computer-bot User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 7 h 25 m 42 sec
Reputation Power: 2
Quote:
Originally Posted by Computer-bot
I am adding a link that will open a page in a new window. I want that window to be small (a small rectangle) and open right in the middle of the screen. How can I do it?

CB


I also want only the title bar to appear. The address bar and the other buttons of the browser should not appear.
Please help.

CB

Reply With Quote
  #3  
Old May 13th, 2007, 09:46 AM
KiReSt KiReSt is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 116 KiReSt User rank is Sergeant (500 - 2000 Reputation Level)KiReSt User rank is Sergeant (500 - 2000 Reputation Level)KiReSt User rank is Sergeant (500 - 2000 Reputation Level)KiReSt User rank is Sergeant (500 - 2000 Reputation Level)KiReSt User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 9 h 3 m 45 sec
Reputation Power: 12
Try this:

Code:
<script>
function popup(strURL){
var winfeatures="width=800,height=510,scrollbars=1,resizable=1,tool  bar=1,location=1,menubar=1,status=1,directories=0"
win2=window.open(strURL,"",winfeatures)
}
</script>


<a href="#" onclick="popup('http://domain.com')">link</a>

Customize the winfeatures of how you want your window to look


for centering, see this tread:
http://forums.aspfree.com/html-java...dow-167410.html

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > Set the size and placement of window


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT