Solved

Fancybox icons gone in IE

Posted on 2010-09-18
2
714 Views
Last Modified: 2012-06-22
Dear experts,

I have a problem with the newest Fancybox 1.3.1, I am upgrading from 1.2.6.

The only problem is that the closing icon is not visible in Internet Explorer.
Everything works fine in Firefox, Safari and Google Chrome. No problems at all.

Anyone who knows what is wrong?

Every answers are appreciated!
DanishCoder
<html>
<head>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js'></script>
<script type='text/javascript' src='fancybox/jquery.easing-1.3.pack.js'></script>
<script type='text/javascript' src='fancybox/jquery.fancybox-1.3.1.js'></script>
<link rel='stylesheet' type='text/css' href='fancybox/jquery.fancybox-1.3.1.css' media='screen' />

<link rel="stylesheet" href="/styles.css"/>
<link rel="stylesheet" href="/stylesdrop.css"/>
<script type="text/javascript">
$(function(){
	/* Fancy-box */
	$("#fancybox").fancybox		({'width': 700,'autoScale':false,'transitionIn':'none','transitionOut':'none','type':'iframe'});
	$("a#admin").fancybox		({'width': 700,'height':500,'autoScale':false,'transitionIn':'none','transitionOut':'none','type':'iframe'});
	$("a#outlook").fancybox		({'width': 700,'height':400,'autoScale':false,'transitionIn':'none','transitionOut':'none','type':'iframe'});
	$("a#tipafriend").fancybox	({'width': 700,'height':500,'autoScale':false,'transitionIn':'none','transitionOut':'none','type':'iframe'});
	$("a#findvej").fancybox		({'width': 750,'height':500,'autoScale':false,'transitionIn':'none','transitionOut':'none','type':'iframe'});
	$("a#scripture").fancybox	({'width': 700,'height':300,'autoScale':false,'transitionIn':'none','transitionOut':'none','type':'iframe'});
});
</script>
</head>


<body>

<a href="http://fancybox.net" id="something">

</body>
</html>

Open in new window

0
Comment
Question by:DanishCoder
2 Comments
 
LVL 15

Accepted Solution

by:
JBond2010 earned 500 total points
ID: 33709736
The problem is in the end of the jquery.fancybox-1.3.1.css file after the /* IE */ comment where it runs every image through progid:DXImageTransform.Microsoft.AlphaImageLoader.

I commented out all the lines with progid:DXImageTransform.Microsoft.AlphaImageLoader (lines 341 and down) and now it works in ie8 & ie7, haven't been able to try it in ie6. If you don't need ie6 support this should do the trick.
0
 

Author Closing Comment

by:DanishCoder
ID: 33711007
Thank you, JBond2010

Yes it works very well!
Now my IE visitors know how to get to the site :)
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now