Posted by SocialNicheGuru on February 24, 2011 at 4:24pm
2 followers
Jump to:
| Project: | Form Block |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Can I make the block expand or collapsable on a page using formblock? Is there code that I could use? Any pointers?
Comments
#1
You might want to take a look at .slideToggle() in the JQuery library.
http://api.jquery.com/slideToggle/#entry-examples
If you want your block to be collapsed on initial viewing use:
$("document").ready(function() {$("#block-block-n").slideToggle("slow");
});
Don't forget to examine the markup of your theme to prevent all blocks from expanding/collapsing.
#2
I am not familiar with js.
where would I place this?