Results 1 to 2 of 2

Thread: [RESOLVED] "Click to reveal more text"

  1. #1

    Thread Starter
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Resolved [RESOLVED] "Click to reveal more text"

    What would be the best (and preferably easiest) way of implementing a "more info..." link that would cause supplementary paragraphs of text to be revealed.

    An exemplar: http://www.pandora.com/music/artist/36f340393cafe21c

    this is the js it uses - does it just hide one tag and show the other one?
    Code:
    function expandBio(expand) {
    	if (expand) {
    		getDiv("bio_end").style.display = "";
    		getDiv("see_all_link").style.display = "none";
    		getDiv("shorten_link").style.display = "";
    	} else {
    		getDiv("bio_end").style.display = "none";
    		getDiv("see_all_link").style.display = "";
    		getDiv("shorten_link").style.display = "none";
    	}
    }
    I'm using a table - would it just be same principle of hiding a row and showing another one?

    or should i just use the Div tags within a cell.

  2. #2

    Thread Starter
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: "Click to reveal more text"

    I managed to sort it using a modified version of the above code and a lot of cursing.

Posting Permissions

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



Click Here to Expand Forum to Full Width