|
-
Jul 18th, 2006, 08:59 AM
#1
[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.
Last edited by bushmobile; Jul 18th, 2006 at 09:05 AM.
-
Jul 18th, 2006, 04:58 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|