PDA

View Full Version : accordian positioning



bilalzq
04-29-2008, 01:49 AM
sorry my first post...didnt know i had to put in link for accordion used: http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu.htm
i used on of the accoridan scripts from here
here is where i put them...
http://www.nliradiology.com/zqstudios/page2.html
i have 2 questions...
1. i want the web design one shown as default
2. since each menu takes up space...it has moved down the whole thing in the middle. i want to pull it up to the top part...i tried it but didnt work...any help here too!
thanks
bilal

Medyman
04-29-2008, 02:26 AM
1. The web design one is shown as default.
That's what this line does:

defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content

What you probably want to do is turn off the persiststate parameter.

persiststate: false, //persist state of opened contents within browser session?
Make the change at the highlighted part. You have it as true, make it false. The persiststate parameter means that if you go to the homepage, open logo design, go to another page, and come back to the homepage...the logo design will still be open. If you turn it off, the web design section will always be open when you refresh the page.


2. Your layout issues are probably because of those disgusting tables you're using. Use CSS! Check out these sample layouts (http://www.dynamicdrive.com/style/layouts/category/C9/).