Click to See Complete Forum and Search --> : Dynamic Menus
AJBurnett34
03-31-2004, 08:57 PM
Ok i want this if possible.
I have a link. I want people to click on the link i have on my forums and make like a list come under it. A list of other links....
How can i do this?
Thanks
David Harrison
04-01-2004, 09:44 AM
This looks to be just what you need. It's also non-JavaScript enabled browser friendly.
AJBurnett34
04-01-2004, 04:31 PM
Hey thanks for the script!
It worked but there is too much spacing between schedule and the link on the bottom of schedule
here is my site:http://marlinsclubhouse.net/site/index.php
how can i make them close together like the rest?
Thanks
David Harrison
04-01-2004, 04:38 PM
There are two line breaks at the end of the code in the first script. get rid of one of them and that should sort your problem out:
document.write('<a href="#" onclick="document.getElementById(\\'hidden\\').style.display=(document.getElementById(\\'hidden\\').style.dis play==\\'inline\\')?\\'none\\':\\'inline\\';return false;"><font color="#FFFFFF" size="2">Schedule</font></a><br><br>');
Edited to correct your invalid code. :rolleyes:
jbscripter
04-03-2004, 06:33 AM
Hi,
i had the same problem as AJBurnett34, so your answers was
also perfect for me. But I have another question.
I want to show the links in the menu not below, i want to show them above the starting text ( in this case "click to show/hide some links).
How can I realize this?
Thanks for help
David Harrison
04-03-2004, 06:52 AM
What do you mean when you say that you want to "show them in the menu"?
You got a page that I could see? That could help with clarification.
jbscripter
04-03-2004, 07:00 AM
I want to have the links above the starting text like this:
link1
link2
link3
link4
Starting text
You can see what i mean on thispage (http://www.if-i-were-god.de/ff)
David Harrison
04-03-2004, 07:17 AM
In that case just move the link to after the other links like this:
<span id="hidden" style="display:inline;">
<a href="#">Link 1</a><br>
<a href="#">Link 2</a><br>
<a href="#">Link 3</a>
</span><br><br>
<script type="text/javascript"><!--
document.getElementById('hidden').style.display=(document.getElementById('hidden').style.display=='i nline')?'none':'inline';
document.write('<a href="#" onclick="document.getElementById(\'hidden\').style.display=(document.getElementById(\'hidden\').style.display ==\'inline\')?\'none\':\'inline\';return false;">Click to show/hide some links</a>');
//--></script>
jbscripter
04-03-2004, 07:32 AM
I don't know that its been so easy....
Great, thanx
David Harrison
04-03-2004, 07:34 AM
Happy to help. :)