Link to home
Start Free TrialLog in
Avatar of pertrai1
pertrai1

asked on

print page problem with flash object

Hi, I am trying to use some css to define what is printed and what is not. For some reason my flash is still being printed. Please help if you can.
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Jeff Janson Online Show Proofs</title>
<!-- SWFObject embed by Geoff Stearns geoff@deconcept.com http://blog.deconcept.com/ -->
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
#flashcontent {
	height: 100%;
	font: 12px 'Trebuchet MS', arial, sans-serif;
	font-weight: bold;
	color: #999;
	text-align:center;
	line-height: 200px;
}
body {
	margin: 0;
	padding: 0;
	background-color: #303030;
	height:100%;
	width: 100%;
}
#flash {
	display: block;
}
html {
	margin:0;
	padding:0;
	height:100%;
	width: 100%;
}
 
@media print {
 
            .unprintable {
                  display: none;
            }
            .printable {
                  display: block;
            }
 
      }
@media screen{
            .printable {
                  display: none;
            }
      }
</style>
</head>
<body>
<div id="flashcontent"> You need to upgrade your Flash Player !</div>
<div class="unprintable">
<script type="text/javascript">
		// <![CDATA[
						
		var so = new SWFObject("Gallery.v.2.swf", "flash", "100%", "100%", "8", "#303030");
		so.addVariable("xml", "data.xml");
		so.write("flashcontent");
		
		// ]]>
	</script>
    </div>
<div class="printable">
I want this printed
</div>
</body>
</html>

Open in new window

Avatar of zemond
zemond

zYou seem to be writing the flash object into  the div 'flashcontent' which does not have the class
ASKER CERTIFIED SOLUTION
Avatar of pertrai1
pertrai1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial