Help - Search - Members - Calendar
Full Version: "view more" "see more"
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
goofipinay
I hope I can explain this right...
On some sites, I remember seeing (I guess fake?) links that if you click them (usually saying "more..." or something), more info pops up underneath, moving everything else down...
Then if you click a different one (on the same page) the info that popped up before disappears, everything moves up, and info on whatever you clicked on shows up.

Does that make sense?

I searched some things, but I didn't exactly know what to search for, ya know? mellow.gif
Mike
You can easily do that with Wordpress or other blogging tools, but you don't seem to be using any of those. Is this (examples 4, 5 and 6) something similar to what you're looking for?
theerinkal
Go here and you can get a menu like that.

**You don't have to keep the images that they use, btw.
goofipinay
ah, okay I see
yea it was 4,5,6


I think I found another one ?
I'm messing around with it before I mess around with those, to see which ones I like best =]
Thanks! (that was fast! haha)

CODE
<script type="text/javascript">
function toggleMe(a){
var e=document.getElementById(a);
if(!e)return true;
if (e.style.display == "true") {
    e.style.display = "block"
}
else {
    e.style.display = "none"
}
return true;
}
</script>

<a href ="#" class=menutoggle" onclick="return toggleMe('para1')">[see more]</a>
<p id="para1">
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
</p>


okay it doesn't quite seem to be what I want...
do you know how to get it to work all on one link/button ?

edit again:

okay, I got it :) thanks
Mike
Try the Accordion Content script too. It's like the one Erin linked but for content, not menus. You'd probably wanna use the onClick option.
goofipinay
oh ! that's much better :)
okay, thanks ! _smile.gif
mipadi
You should look into jQuery. It's a JavaScript library that makes it easy to do stuff like this. Specifically, you want to check out the "toggle" or "fadeIn" functions.

I seriously don't know why more people around here don't use jQuery. It's awesome and does probably 90% of what people around here ask to do on a regular basis.
tcunningham
QUOTE(mipadi @ Jul 22 2009, 09:50 AM) *
You should look into jQuery. It's a JavaScript library that makes it easy to do stuff like this. Specifically, you want to check out the "toggle" or "fadeIn" functions.

I seriously don't know why more people around here don't use jQuery. It's awesome and does probably 90% of what people around here ask to do on a regular basis.

I agree. I just started using jQuery with my web designs.
goofipinay
hm? okay, I'll put that on my bookmarks, thanks =]
Mike
This good for closing then?
goofipinay
yea, it's good
thanks a lot :)
Mike
Topic closed & moved.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.