Click to See Complete Forum and Search --> : popdown?
Big_Rob
09-14-2003, 06:12 AM
Hi!
Here is an example of an popdown menu: http://hem.passagen.se/granforsrobert/rob/popdown.htm
I want it to popup instead of popdown!
Please help me with that!
David Harrison
09-14-2003, 07:35 AM
In the pop-up/down window source, put this in the body tag:
onload="window.focus();"
Big_Rob
09-14-2003, 07:58 AM
Originally posted by lavalamp
In the pop-up/down window source, put this in the body tag:
onload="window.focus();"
Exactly where should I put it?
Donīt understand :(
David Harrison
09-14-2003, 07:59 AM
Like this:
<body onload="window.focus();">
Or you probably create the pop-up window like this:
document.write('<body onload="window.focus();">');
Big_Rob
09-14-2003, 08:18 AM
Originally posted by lavalamp
Like this:
<body onload="window.focus();">
Or you probably create the pop-up window like this:
document.write('<body onload="window.focus();">');
Sory, that doesnīt work.
What I mean is that the links should go up instead of going down.
David Harrison
09-14-2003, 08:35 AM
Oh sorry, I think I mis-read your post. What your menu does is create the menu but then only shows bits of it at a time. Your question is not a JavaScript one, but a positioning one.
You will have to create the sub-menus before you create the menu. This could prove very complicated so I would suggest one of the following options:
* Wade through it and try to fix it.
* Search around for a menu that already goes up.
* Let me make a simpler non-JavaScript, but CSS version of the menu.
I think that option three would probably be best. In fact as soon as I've finished this post I'll already be working on one.
Big_Rob
09-14-2003, 08:46 AM
Originally posted by lavalamp
* Let me make a simpler non-JavaScript, but CSS version of the menu.
That sounds great! I will wait... ;)
David Harrison
09-14-2003, 11:00 AM
Let me make a simpler non-JavaScript, but CSS version of the menu.OK so I lied, it does use JavaScript, maybe I could have gotten round it if it was a drop down menu, but I don't know. It can still be used by those without JavaScript though.
While this menu is a lot simpler, it is still quite complicated so if you intend on modifying it in the future ask me how it works and I'll try to explain.
Anyway, here's the script:
Big_Rob
09-14-2003, 11:26 AM
THANKS A LOT!!!
You are my new god!! ;)
David Harrison
09-14-2003, 03:54 PM
Happy to help. :)