[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.
Re: "Click to reveal more text"
I managed to sort it using a modified version of the above code and a lot of cursing.