Forum Moderators: coopster

Message Too Old, No Replies

Expand/Collapse Content with PHP?

Looking for an expand/collapse script in PHP

         

clearpixel

5:51 pm on May 16, 2006 (gmt 0)

10+ Year Member



I would like to use an expand/collapse feature on some pages of a website on which I am working. I have never programmed something like this myself but have experienced this type of functionality as a user. I seem to recall this is predominantly a DHTML and/or maybe a Javascript trick, but can the same effect be achieved in PHP? Also, does anyone know if using expand/collapse will negatively impact SEO rankings?

dreamcatcher

6:26 pm on May 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi clearpixel,

Javascript is required to collapse menu`s. Check out Dynamic Drive, they have some collapsable menu code snippets.

[dynamicdrive.com...]

dc

Sarah Atkinson

2:30 am on May 17, 2006 (gmt 0)

10+ Year Member



You could also do this with CSS by having the menu as floats. and changing is position using the state functions like a:hover