Page 1 of 1

floating phplayers

Posted: Tue Jun 28, 2005 9:24 pm
by TNTH
I just don't get this:

http://friendsofalfalah.nl/nl/index.php?page=Al-Falah

Scroll down and then try the menu. You'll see that the subframe is at the bottom of the iframe. I have the same problem at http://plastic-halo.nl/cms/ but there it always is at the half of the page. I just do'nt understand this. I tried to change some css but that didn't work out. Can anyone help me?

Oh, and the design sucks in Firefox, I know (working on it).

Re: floating phplayers

Posted: Tue Jun 28, 2005 10:37 pm
by kishman155
floating phplayers
I think your problem is that the menu takes the space from top of the page and not from the window.

kris

Re: floating phplayers

Posted: Wed Jun 29, 2005 7:11 pm
by mbvdk
Hi,
I took a look at the html-output on your page, and noticed that you have the menu in a set of div-tags

Code: Select all

<div id="divStayTopLeft">
What is the "position" value of #divStayTopLeft? this must be absolute, and then you should put the content inside another set of div-tags.

Now comes the fun part: ;)
You will most likely have to edit "function getOffsetTop(layer)" in "layersmenu-library.js"
This function is used to calculate the possitions of all submenu-frames.
My guess is that you have to add the following line right befor the "return" statement

Code: Select all

value -= document.getElementById('divStayTopLeft').offsetTop;

Re: floating phplayers

Posted: Mon Jul 04, 2005 4:38 pm
by TNTH
mbvdk you're great! It works!!! Many thanks on this!!!