Hi,
I'm not a jquery developer but on http://1install.co.uk I have used collapsiblock on the 'Twitter - Click here' part. What I'd like to achieve is have it expand on rollover and then contract when you roll off that entire area that opens rather than just the H2 the code is on.

I've changed .click to .hover - is there a way to have the entire expanded div as the active area (so you can click on the twitter links etc whilst it's open?

Not sure if I've explained this very well, please ask if you need me to clarify!

Cheers
Dan

Comments

SophieG’s picture

Hi, have you achieved to make it work ?

Regards

superdorx’s picture

Any word on this?

gagarine’s picture

Priority: Normal » Minor

You can just bind the over event on the clic event...

darvanen’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Issue summary: View changes

Possible feature for v2.

darvanen’s picture

Status: Active » Closed (won't fix)

You would need to write some custom JS or jQuery that did this:

  • On page load discover if there are any anchors related to the hash in the URL
  • If there is a match, find the anchor
  • Bubble up from the anchor to find any parent element which is a collapsiblock
  • Expand that element if you find one
  • Scroll or jump to the anchor