View Full Version : Popup window that would stay on top (problem/question)

08-21-2011, 11:59 PM
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:

<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')


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


<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>



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.

08-22-2011, 04:27 AM
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 :D

08-22-2011, 07:17 PM
Thanks for the reply Xelawho,
Unfortunately this didn't work. Still the same. But thanks for your idea.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum