1) Script Title: Accordion Content script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...daccordion.htm
3) Describe problem: How do i get accordion to anchor to h3 onclick
Hi there,
Very new to java but otherwise know my way around.
I am using accordion content script and generally it works great but i recently noticed due to some large content when a h3 class is expanded and the next h3 class below is clicked and the content disapears off the screen.
Normally i would just put in <a> tag and anchor with h3 both inside h3 but this doesn't seem to work maybe because of the java.
So what i did was changed it to a onclick command which worked great in regards to jump to expanding h3 class into screen view.(like a anchor).
2 problems:-
1) when doing this the onclick function changes the css on h3 title to a hyperlink i'm pretty sure. so need to seperate from css
2) it still has the same problem of when expanded content open the click on below h3 class content disapears of the screen even with onclick.
Is there a change i can make to the js. maybe the onopenclose or toggleclass or togglehtml that will make the clicked h3 anchor no matter wheather anything is open or closed but still perform its normal collapse string.
I hope this isn't to hard to understand.
here is my template page
http://www.singlesdirectory.com.au/t...mplate.dwt.php
i have set the first three(3) h3 classes to onclick so you can see what happens when you click the 2nd then the 3rd without closing 2nd.
Looking forward to your help.



Reply With Quote


Bookmarks