JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

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 Dev Shed Forums Sponsor:
  #1  
Old October 31st, 2001, 12:10 PM
owen owen is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 6 owen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy javascript popup window positions

Hi,

I've been looking through these forums for a way to position a popup a little bit OFF the page.

Here is the script I have now:
function openit()
{
newWindow = window.open('buy10.html', 'myWindow','width=720,height=300,top=-20,left=0');
}

I was attempting to position a popup window so that the very top part of the window would be out of reach of the cursor. If that couldn't work, I was thinking to position the the right side close button/vertical scroll bar section to the right of the screen.

Can anyone help?
Most appreciated.

Owen

Oh yeah, additionally, after my popup comes up (it turns on when someon either refreshes, moves to a new url, or closes the main window), I want it to show up on the bottom side if the main window is still open. How do I manage to do that? Add a refresh script after the popup script in the page? Can someone show me the code for doing this? More or less, I'm trying to create a "pop under".

Last edited by owen : October 31st, 2001 at 12:39 PM.

Reply With Quote
  #2  
Old October 31st, 2001, 03:51 PM
JanMulder JanMulder is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 70 JanMulder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
You could use the window.moveBy(x,y) method to move it where you want.

Place it in the onLoad handler.

<BODY onload="javascript:window.moveBy(5, 5);">
__________________
Jan.

N24 - ALL the newspapers on ONE site.
JMailbox - Free Web Based Email Client.

Reply With Quote
  #3  
Old November 1st, 2001, 09:24 AM
owen owen is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 6 owen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks

Thanks for your time. I appreciate your help. I had gotten it to work, however my boss found the code to make it pop under so that was the preferred event.

Oh well. In case anyone's interested, here is the code that was sent to me:

<!-- POPUNDER BEGINS -->
<script language="JavaScript">
<!--
function popunder()
{
pu = window.open("xxx.html", ´myWindow´,´width=720,height=300,left=150,top=150´);
pu.blur();
window.focus();
}
//-->
</script>

</head>

<body bgcolor="#FFFFFF" onLoad="javascriptopunder()">

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > javascript popup window positions

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap