SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Help with this jQuery example
-
May 14, 2007, 12:42 #1
- Join Date
- May 2007
- Posts
- 10
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Help with this jQuery example
I'm working on the slide down + slide up effect using jQuery. See example B http://docs.jquery.com/Tutorials:Liv...ples_of_jQuery. Getting it to work is easy, this is the code:
Code:$("div.contentToChange p.firstparagraph:hidden").slideDown("slow"); $("div.contentToChange p.firstparagraph:visible").slideUp("slow");
-
May 14, 2007, 14:33 #2
- Join Date
- Nov 2002
- Location
- Montréal, Canada
- Posts
- 375
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Use JavaScript to hide the block when your page loads.
Code:$("div.contentToChange p.firstparagraph").hide();
-
May 14, 2007, 14:50 #3
- Join Date
- May 2007
- Posts
- 10
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks Hamstu, worked great.
Bookmarks