Results 1 to 4 of 4

Thread: Animated Collapsible DIV: Change link text based on DIV state

  1. #1
    Join Date
    Aug 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Animated Collapsible DIV: Change link text based on DIV state

    1) Script Title: Animated Collapsible DIV v2.4

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.htm

    3) Describe problem:
    Is there a way to change the text of the Toggle link based on the state of the DIV? Specifically, I want the Toggle link to say 'Show Menu' when the DIV is collapsed and 'Hide Menu' when it's open.

    Right now it looks like there's a feature to change the image of the button, but I would like to avoid that if possible. I only want to change the text of the link.

    Any help is duly appreciated.

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    2,038
    Thanks
    16
    Thanked 316 Times in 314 Posts
    Blog Entries
    13

    Default

    Right now it looks like there's a feature to change the image of the button, but I would like to avoid that if possible.
    Are you planning on using a static base image with overlaying text - the text being the part that changes while the button image behind it stays the same?

    If you dont mind me asking, is there any particular reason why you wouldnt want to use the existing image switch? (if its a visual thing, you could always make text-look images)
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

  3. #3
    Join Date
    Aug 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well, it will keep things simpler without extra images floating around my images folder. If you check out the Erudite Wordpress theme, you can see what I mean.

  4. #4
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,821
    Thanks
    2
    Thanked 425 Times in 419 Posts

    Default

    see attached
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

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
  •