Mminnig
02-13-2007, 02:49 PM
1) Script Title:
Switch Content II
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm
3) Describe problem:
I used a text link for one of my expand/contract elements instead of the usual plus/minus.gif and now I am having trouble getting the new area to contract by default. All of the other areas on the page contract automatically except the table referenced by the text link.
I simply switched this code:
<img src="img/minus.gif" class="showstate_vertical" onClick="expandcontent(this, 'login');">
With this code:
<a class="showstate_login" onClick="expandcontent(this, 'login');">Sign In</a>
I did add a new style to my css to format the text link, but I didn't see anything in the old showstate_vertical style that would have seemingly effected the expand/contract features.
The full page can be viewed at: http://www.kydex.com/test It is the "Sign-In" area in the upper right.
Switch Content II
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm
3) Describe problem:
I used a text link for one of my expand/contract elements instead of the usual plus/minus.gif and now I am having trouble getting the new area to contract by default. All of the other areas on the page contract automatically except the table referenced by the text link.
I simply switched this code:
<img src="img/minus.gif" class="showstate_vertical" onClick="expandcontent(this, 'login');">
With this code:
<a class="showstate_login" onClick="expandcontent(this, 'login');">Sign In</a>
I did add a new style to my css to format the text link, but I didn't see anything in the old showstate_vertical style that would have seemingly effected the expand/contract features.
The full page can be viewed at: http://www.kydex.com/test It is the "Sign-In" area in the upper right.