[FX.php List] Collapsible list code?

Timothy Tait bottledspider at gmail.com
Tue Dec 26 23:11:57 MST 2006


here's a really simple version that uses text:

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function hideShow(menu, pointer) {
 thisMenu = document.getElementById(menu);
 show = (thisMenu.style.display == "none");
 document.getElementById(pointer).innerText = ( show ? "-" : "+" );
 thisMenu.style.display = ( show ? "block" : "none" );

}
//-->
</SCRIPT>
</HEAD>

<BODY>
<TABLE>
<TR>
 <TD>
  Menu 1 <A HREF="javascript:hideShow('drop_down_menu_1', 'menu_pointer_1')"
id="menu_pointer_1">+</A>
  <span id="drop_down_menu_1" style="display:none">
  <!-- this data will be hidden and shown -->
   <TABLE border=1 bgcolor="gray">
   <TR>
    <TD>data list</TD>
   </TR>
   </TABLE>
  </span>
 </TD>
</TR>
</TABLE>
</BODY>
</HTML>
by using the document.getElementById() function and the display tags, you
can create menus that appear and disappear.

-t


On 12/26/06, Bob Patin <bob at patin.com> wrote:
>
> I'm looking for some easy code to implement collapsible menu lists; I
> see that Apple has some on their site at this link:
>
> http://www.apple.com/server/support/ (on the right side, the grey links)
>
> Does anyone know of a bit of code (either Javascript or PHP, although
> I assume it might actually end up being in JS) that would do what the
> Apple page does?
>
> Thanks,
>
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
>
>   CONTACT US VIA INSTANT MESSAGING:
>      AIM or iChat: longterm1954
>      Yahoo: longterm_solutions
>      MSN: tech at longtermsolutions.com
>      ICQ: 159333060
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>



-- 
give a man a fire, and keep him warm for a day.
set a man on fire, and keep him warm for the rest of his life.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20061227/62f87559/attachment.html


More information about the FX.php_List mailing list