Code:
(function($){
$('head').append('<style type="text/css">#d2 {visibility: hidden;}</style>');
$(function(){
$('#d1').css({opacity: 0, visibility: 'visible'}).animate({opacity: 1}, 1200, 'linear', function(){
if(typeof fleXenv === 'object' && typeof fleXenv.globalInit === 'function'){
fleXenv.globalInit();
}
if(this.style.getAttribute){
this.style.removeAttribute('filter');
}
});
});
(function(re){
$(document).click(function(e){
var t = e.target;
while (t.tagName && !re[0].test(t.tagName)){
t = t.parentNode || null;
}
if(t && t.tagName && (!t.target || re[1].test(t.target)) && !re[2].test(t.href)){
if(re[3].test(t.href)){
$('#d1').animate({opacity: 1}, 1200, function(){
if(this.style.getAttribute){
this.style.removeAttribute('filter');
}
});
return true;
}
e.preventDefault();
$('#d1').animate({opacity: 0}, 600, function(){
location = t.href;
setTimeout(function(){$('#d1').css({opacity: 1});}, 100);
});
}
});
})([/^(a|area)$/i, /^_(top|self|parent)$/, /#/, /^\s*javascript\s*:/]);
})(jQuery);
Only the highlighted line, near the end has been added. Ah, but I see in our previous thread on this I warned you about this very problem and you chose to go without that line because you said it caused problems. I never saw those. But if they occur again we can try to be more specific, changing that added line to:
Code:
!/safari|msie/i.test(navigator.userAgent) && setTimeout(function(){$('#d1').css({opacity: 1});}, 100);
where it will only target browsers other than IE, Safari, and Chrome, which don't need it.
The browser cache may need to be cleared and/or the page refreshed to see changes.
In some unrelated matters, I also have noticed that there are some errors on the pages, missing scripts and images, and that the ring tone Flash feature would work better in non-IE if rewritten like so:
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="258" height="100" id="replaceme">
<param name="movie" value="/flash/ring-wall-bj.swf">
<param name="quality" value="high">
<param name="allowScriptAccess" value="always">
<param name="wmode" value="transparent">
<param name="bgcolor" value="#000000">
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="/flash/ring-wall-bj.swf" width="258" height="100">
<param name="quality" value="high">
<param name="allowScriptAccess" value="always">
<param name="wmode" value="transparent">
<param name="bgcolor" value="#000000">
<!--<![endif]-->
<a href="http://www.billyjoeconor.com/freebies/freebies.php" target="_self"><img src="/images/ring-wall-bj-alt.gif" style="border:none;"></a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
Bookmarks