Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Popup window that would stay on top (problem/question)

    Hi and thanks for taking the time to help me. Just to say in short, I'm a musician and not a programmer, the only thing I have learned is html many years ago, however JS and Java I have never done at all. About 6 month ago I asked a colleague of mine to make me a new website. All went very nicely apart from one little detail as the title says. The popup window with the music player (me playing), keeps on going in the background as soon as a person continues to browse through the page. Unfortunately, my colleague hasn't answered any of my emails asking him to fix it, and therefore I found this forum through google with hope that perhaps you'd be able to help me out.
    I have found the part of the code that shows the function to open a new window (in the <head></head> part of the page). Here it is:

    <code>
    <SCRIPT LANGUAGE="javascript">
    <!--
    function otworz(adres) {
    noweOkno = window.open(adres, 'okienko', 'menubar=no, toolbar=no, location=no, scrollbars=auto, resizable=yes, status=no, width=270, height=260, left=30, top=30')
    noweOkno.focus()
    }
    -->
    </script>

    </code>

    Here is the part which is already in the <body> of the page

    <code>

    <a href="javascript:otworz('muzyka.htm')"><img src="muzyka.png"></a>

    <!-- <object type="application/x-shockwave-flash" id="player1" allowscriptaccess="always" allowfullscreen="false" data="OriginalMusicPlayer.swf" width="170" height="90"><param name="movie" value="OriginalMusicPlayer.swf" /><param name="FlashVars" value="playlistXmlPath=music/playlist.xml" /></object>

    -->

    </code>

    My colleague is Polish and hence the Polish language of the function and the htm file.
    If it would be more usefull for you to see the actual website, then I can of course give you the adress as well, but perhaps the code above would do.
    In any case, I thank you for any help or advice you can give me.
    Greetings
    Daniel

  • #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,900
    Thanks
    56
    Thanked 542 Times in 539 Posts
    I think (and I'm not sure because I've never used this method) that if you change the <BODY> tag in your html file to:

    <BODY onBlur="self.focus()">

    it may do what you're talking about

    give it a go, anyway - if it doesn't work, maybe someone who knows what they're talking about can help

  • #3
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the reply Xelawho,
    Unfortunately this didn't work. Still the same. But thanks for your idea.
    Greetings
    Daniel


  •  

    Posting Permissions

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