Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 10 of 10
  1. #1
    Member az0000000's Avatar
    Join Date
    Feb 2005
    Location
    Moldova, Chisinau
    Posts
    57
    Member #
    9033
    Hello,
    I have a cross-browser on click pop-up window that i wont to have opened underneath the active window.
    Here is my code:
    Code:
    var popWin = "";
    function openwin(url, strWidth, strHeight) {
    if (popWin != "") {popWin.close()}
    leftStr = 5000;
    topStr = 5000;
    windowProperties = "toolbar=no,menubar=no,scrollbars=no,statusbar=no,height="+strHeight+",width="+strWidth+",left="+leftStr+",top="+topStr+"";
    popWin = window.open(url,'newWin',windowProperties);
    }
    Code:
    <a href=javascript:openwin('http://site.com',430,60)>
    What changes do i need to make to this code to achieve my goal.
    Thank you.
    Regards
    The beat never fades!

  2.  

  3. #2
    Member ungus's Avatar
    Join Date
    Aug 2009
    Location
    Iowa
    Posts
    72
    Member #
    19722
    Az,

    So the user has their browser up, it's the active window. And when they click the below link, the window is below the current active window? It's not possible, unless it is a secure script (then you can use alwaysLowered or z-lock). But what is the purpose of doing so? Why not have a div that is hidden/invisible and then display it when needed. (sorry if I'm not understanding why you want it to perform like this)

    Josh

    Quote Originally Posted by az0000000
    Hello,
    I have a cross-browser on click pop-up window that i wont to have opened underneath the active window.
    Here is my code:
    Code:
    var popWin = "";
    function openwin(url, strWidth, strHeight) {
    if (popWin != "") {popWin.close()}
    leftStr = 5000;
    topStr = 5000;
    windowProperties = "toolbar=no,menubar=no,scrollbars=no,statusbar=no,height="+strHeight+",width="+strWidth+",left="+leftStr+",top="+topStr+"";
    popWin = window.open(url,'newWin',windowProperties);
    }
    Code:
    <a href=javascript:openwin('http://site.com',430,60)>
    What changes do i need to make to this code to achieve my goal.
    Thank you.
    Regards
    Josh

  4. #3
    Member az0000000's Avatar
    Join Date
    Feb 2005
    Location
    Moldova, Chisinau
    Posts
    57
    Member #
    9033
    I am offering high quality bitrate radio to my visitors using a free service which will require every listener to visit a banner page first, and then their ip can get music stream.
    Well, i want to help listeners avoid steering at those banners all the time and let banners page load in background in a small popup window. For that i need that popup window to move under the first window which visitors accessed using radio link on my website.
    I hope you understood my goal.
    Thank you.
    The beat never fades!

  5. #4
    Member ungus's Avatar
    Join Date
    Aug 2009
    Location
    Iowa
    Posts
    72
    Member #
    19722
    Hi az0,

    Instead of using pop-up windows (window.open..) you could do it using DIVs. Have them hidden, then with Javascript you could make them appear and positioned anywhere you want. If you're not familiar with such a method I can put together an example for you.

    Josh

    Quote Originally Posted by az0000000
    I am offering high quality bitrate radio to my visitors using a free service which will require every listener to visit a banner page first, and then their ip can get music stream.
    Well, i want to help listeners avoid steering at those banners all the time and let banners page load in background in a small popup window. For that i need that popup window to move under the first window which visitors accessed using radio link on my website.
    I hope you understood my goal.
    Thank you.
    Josh

  6. #5
    Member az0000000's Avatar
    Join Date
    Feb 2005
    Location
    Moldova, Chisinau
    Posts
    57
    Member #
    9033
    Quote Originally Posted by ungus
    Hi az0,

    Instead of using pop-up windows (window.open..) you could do it using DIVs. Have them hidden, then with Javascript you could make them appear and positioned anywhere you want. If you're not familiar with such a method I can put together an example for you.

    Josh
    Oh yes, i am very exited to see that example (unfortunately u pointed it right, i am not really familiar with such a method).
    One thing though, i need to make sure that method is really cros-browser efficient.
    Thank you.
    The beat never fades!

  7. #6
    Member ungus's Avatar
    Join Date
    Aug 2009
    Location
    Iowa
    Posts
    72
    Member #
    19722
    This method is definitely cross-browser capable.

    Quote Originally Posted by az0000000
    Oh yes, i am very exited to see that example (unfortunately u pointed it right, i am not really familiar with such a method).
    One thing though, i need to make sure that method is really cros-browser efficient.
    Thank you.
    Josh

  8. #7
    Member az0000000's Avatar
    Join Date
    Feb 2005
    Location
    Moldova, Chisinau
    Posts
    57
    Member #
    9033
    OK, i am ready
    The beat never fades!

  9. #8
    Member ungus's Avatar
    Join Date
    Aug 2009
    Location
    Iowa
    Posts
    72
    Member #
    19722
    But I'm waiting on that $500 certified check? :-) <kidding> I'm putting it together now.

    Joshua

    Quote Originally Posted by az0000000
    OK, i am ready
    Josh

  10. #9
    Member az0000000's Avatar
    Join Date
    Feb 2005
    Location
    Moldova, Chisinau
    Posts
    57
    Member #
    9033
    Quote Originally Posted by ungus
    But I'm waiting on that $500 certified check? :-) <kidding> I'm putting it together now.

    Joshua
    Almost got a heart attack 8-)
    The beat never fades!

  11. #10
    Member az0000000's Avatar
    Join Date
    Feb 2005
    Location
    Moldova, Chisinau
    Posts
    57
    Member #
    9033
    Quote Originally Posted by ungus
    But I'm waiting on that $500 certified check? :-) <kidding> I'm putting it together now.

    Joshua
    So did you have it done?

    By the way, Could you help me pointing where exactly do i include any of these variables?
    Code:
    1) opener.focus()
    2) this.document.focus()
    I am trying to use it with this script:
    Code:
    var popWin = "";
    function openwin(url, strWidth, strHeight) {
    if (popWin != "") {popWin.close()}
    leftStr = 5000;
    topStr = 5000;
    windowProperties = "toolbar=no,menubar=no,scrollbars=no,statusbar=no,height="+strHeight+",width="+strWidth+",left="+leftStr+",top="+topStr+"";
    popWin = window.open(url,'newWin',windowProperties);
    }
    
    
    <a href=javascript:openwin('http://site.com',430,60)>
    Thank you.
    The beat never fades!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

gaming window pops up underneath

Click on a term to search for related topics.
All times are GMT -6. The time now is 05:08 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com