Try putting this script in the head of the 'top' page (levelupworkouts.heliohost.org/todd/) after the external script tags for jQuery and fancybox:
Code:
<script type="text/javascript">
jQuery(function($){
$(document).click(function(e){
if(e.target.className === 'magnify'){return;}
$('.magnify').each(function(){
if(this.style.zIndex){$(this).click();}
});
});
});
</script>
Worked here in Firefox and IE on the demo page and on your page when I added the above code in IE 9's script console before opening the fancybox, so should work out well.
This will also cause the magnified image to close if the user clicks anywhere outside the magnified image. Probably something that should have been included in the original script.
However, if that's overkill for you, we could do it as part of fancybox's onCleanup:
Code:
$(document).ready(function() {
$("a.popup").fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'onCleanup': function(){
$('.magnify').each(function(){
if(this.style.zIndex){$(this).click();}
});
}
});
});
I have related information. Are you aware that since jquery.magnifier.js is on the imported page, it might not function in IE less than 9? Perhaps other browsers? It works in IE 9's IE 8 mode, but that's no guarantee. And I notice that checking in IE 9's IE 7 mode, clicking 'Yes' for the first select does nothing. No guarantee it won't work in the real IE 7, but much more likely that it won't then with the comment about IE 8 above working.
Bookmarks