I want to implement a collapsing/expanding feature to all my webparts in a certain page and tried the code shown here: http://moblog.bradleyit.com/2009/08/sharepoint-expand-or-collapse-web-parts.html but for some reason it didn't work for me at all. other JS codes usually work as intended. I really don't know why this one isn't working.
I see a working example of a code bookmarklet the question is if I can place the code in a CEWP and define it somehow to work on page load rather then on click.
thanks