4

How do I catch onclick events in sIFR? I know I'm meant to use onRelease, but can't figure out how. I've been looking high and low for a solution to use it in combination with jQuery ui tabs, which is triggered with this function:

$(function() {
  $("#tabs").tabs();
});

I've tried simply inserting it like this, obviously without any luck:

sIFR.replace(AkzidGroLight, {
  selector:  '#tabsNav h4.Berthold-light',
  onRelease: function(fi) { $('#tabs').tabs(); },
  css: [ 
    'a {text-align: center; display: block; text-decoration: none; letter-spacing: -0.5;}',
    'a:link { color: #333333; }' ,
    'a:hover { color: #999999; }' 
  ],
  offsetTop:   5,
  tuneHeight:  5,
  wmode: 'transparent'
});
Eystein
  • 696
  • 1
  • 8
  • 19
  • That looks fine actually. Could you be more specific? This is with r436? – Mark Wubben May 20 '09 at 21:38
  • Yes, this is with r436. It might be something else that is blocking it, although I'm not getting any errors in Firebug. I'll upload it to a server today for better viewing. And thank you for the work you're doing! – Eystein May 21 '09 at 03:40
  • Here's a demo of the page http://bit.ly/pkhzv The links in question are the 'Contributors' and 'Most read posts' tabs in the right-hand column. – Eystein May 23 '09 at 10:41

1 Answers1

0

wmode transparent is buggy buggy buggy. Start by removing that and see if the behavior changes. Just in case your callback has a problem, put an alert or console.log in there to make sure it's actually getting called.

shovemedia
  • 191
  • 4