SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,207
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Open and Fold the sub-title without any URL change

    I like to make the following.

    Code:
    code in test.htm when sub titles are folded
    
    
    <a href='title.htm'>title</a>     open
    when a user open the test.htm, the result of the code above will be shown.

    If the user click the link open, the page will show the result of the following code without url change.

    Code:
    code in test.htm when the sub-titles are opened
    
    
    <a href='title.htm'>title</a>     fold
    
      <a href='title1.htm'>title1</a>
      <a href='title2.htm'>title2</a>



    If the user click the link fold,
    the page will hide title1, and title2 again without URL change.
    and
    the link fold will be changed to open


    If the user click the link open,
    the link title1 and title2 will be shown again.
    and
    the link open will be changed to fold.


    Can I make it like the above with your help?

  2. #2
    SitePoint Addict darkwater23's Avatar
    Join Date
    Nov 2005
    Location
    Omaha, NE
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You might want to look here:

    http://www.dynamicdrive.com/dynamicindex1/navigate1.htm

    Dynamic Drive has some cool scripts for link menus and such. It may be easier for you to modify the above to suit you than write one from scratch.

    Good luck!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •