Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

IE and showing PDF inside Fancybox



2:32 pm on Jul 11, 2012 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member

I like to set Fancybox and working also inside IE8 or other versions.

How to change DIV into hidden element and show PDF document inside Fancybox also for IE?

<script type="text/javascript">
jQuery(document).ready(function() {
'frameWidth': 670,
'frameHeight': 500,
'centerOnScroll': false,
'hideOnContentClick': false
<a class="fancypdf" href="#mypdf" >open PDF file</a>

<div id="mypdf" style="display:none;">
<embed src="pdf/myPDF.pdf" type="application/pdf" width="640"
height="480" />

As I understand <embed> is HTML5 and how to support IE to work in all other browsers?
Currently it is style="display:none;"

Featured Threads

Hot Threads This Week

Hot Threads This Month