Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorrmhayler
    • CommentTimeJan 24th 2006 edited
     permalink
    I would like to use the effects as displayed on the MOO FX homepage (whereby the sections are smoothly collapsable via a toggle resize effect) in a design for a document library. Basically I have created a simple sub proceedure that looks like this:

    <% Sub Blade(sBladeTitle)
    sBladeID = Replace(Replace(Replace(sBladeTitle," ","_"),".",""),"!","")
    sBladeID = Replace(Replace(Replace(sBladeID,"*",""),"#",""),"@","")%>
    <h4><%=sBladeTitle%></h4>
    <div id="<%=sBladeID%>"></div>
    <% end Sub %>

    When i call the sub like this:

    <% Call Blade(Project Documents)%>

    it should format the html like this:

    <h4>Project Documents</h4>
    <div id="Project_Documents"></div>

    This way I generate a unique id from the title I am assigning to the sub.

    I would like to use this unique id to target the div with an onclick event but I have been unsuccessful. If anyone could please help me I would really appreciate it.
    • CommentAuthorrmhayler
    • CommentTimeJan 24th 2006
     permalink
    if i click on the h4 title i would like the <div below to expand and then collapse back to position on the second click. i.e toggle effect.
Add your comments
    Username Password
  • Format comments as (Help)