Whaweretheythinkin
New Member
I've a question about opening fancybox. If i insert link to div with jquery\[code\]<div id="fancyboxdiv" style="display: none;"></div><div id="linkdiv"></div><script type="text/javascript"> (function($) { $(document).ready(function() { //loading the opening link to a div with jquery $('#linkdiv').html('<a id="fbLink" href="http://stackoverflow.com/questions/15636655/#fancyboxdiv" title="fbox">see fancybox</a>'); //opening the fancybox $('#fbLink').fancybox({ 'afterLoad': function() { $('#fancyboxdiv').html('<h1>Fancybox</h1>'); }, 'afterClose': function() { $('#fancyboxdiv').empty(); } }); }); })(jQuery);</script>\[/code\]..and set a fancybox\[code\]<div id="fancyboxdiv" style="display: none;"></div>\[/code\]And also div with link\[code\]<div id="linkdiv"></div>\[/code\]What to do that it works also IE8 and lower version?In the Intenet explorer, it works if i use\[code\]<div id="linkdiv"><a id="fbLink" href="http://stackoverflow.com/questions/15636655/#fancyboxdiv" title="fbox">see fancybox</a></div>\[/code\]And comment out the code\[code\]//$('#linkdiv').html('<a id="fbLink" href="http://stackoverflow.com/questions/15636655/#fancyboxdiv" title="fbox">see fancybox</a>');\[/code\]But i want that in later loaded links the fancybox opens also in <=IE8.Thank you