"view more" "see more", clicking to see more info |
"view more" "see more", clicking to see more info |
Jul 22 2009, 07:43 AM
Post
#1
|
|
![]() can't believe I let people call me Lynne on here 5 yrs ago o ![]() ![]() ![]() ![]() Group: Member Posts: 243 Joined: Oct 2004 Member No: 54,591 |
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? |
|
|
|
![]() |
Jul 22 2009, 08:06 AM
Post
#2
|
|
|
Irrisistable Cabbages. ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 549 Joined: Nov 2007 Member No: 589,355 |
|
|
|
|
Jul 22 2009, 08:33 AM
Post
#3
|
|
![]() can't believe I let people call me Lynne on here 5 yrs ago o ![]() ![]() ![]() ![]() Group: Member Posts: 243 Joined: Oct 2004 Member No: 54,591 |
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
Reason for edit: Please use [code] tags instead of [quote] tags when posting codes. - Mike
|
|
|
|
Jul 22 2009, 08:48 AM
Post
#4
|
|
![]() can't believe I let people call me Lynne on here 5 yrs ago o ![]() ![]() ![]() ![]() Group: Member Posts: 243 Joined: Oct 2004 Member No: 54,591 |
oh ! that's much better :)
okay, thanks ! |
|
|
|
Jul 22 2009, 08:50 AM
Post
#5
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 2,648 Joined: Apr 2008 Member No: 639,265 |
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. |
|
|
|
Jul 22 2009, 08:53 AM
Post
#6
|
|
![]() Live long and prosper. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 10,142 Joined: Apr 2007 Member No: 514,926 |
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. |
|
|
|
Jul 22 2009, 09:13 AM
Post
#7
|
|
![]() can't believe I let people call me Lynne on here 5 yrs ago o ![]() ![]() ![]() ![]() Group: Member Posts: 243 Joined: Oct 2004 Member No: 54,591 |
hm? okay, I'll put that on my bookmarks, thanks =]
|
|
|
|
Jul 22 2009, 12:31 PM
Post
#8
|
|
![]() can't believe I let people call me Lynne on here 5 yrs ago o ![]() ![]() ![]() ![]() Group: Member Posts: 243 Joined: Oct 2004 Member No: 54,591 |
yea, it's good
thanks a lot :) |
|
|
|
Jul 22 2009, 01:59 PM
Post
#9
|
|
|
Treasure Pleasure ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Head Staff Posts: 11,193 Joined: Oct 2005 Member No: 281,127 |
Topic closed & moved.
|
|
|
|
![]() ![]() |