tommyzDad
06-21-2012, 02:50 AM
Hello.
Here is a link to live version of the site:
http://louiswu.aisites.com/navban2/index_working.html
The main problem I'm experiencing is IE9 breaking my code. I code on a machine running IE8, and in IE8, Chrome, and Firefox the embedded Flash is centered---everything's fine, even the live version. But others, especially my client, report the site pushed over to the right in IE9.
Here's the code, with HTML first then, the CSS:
(The content div (pink background, blue dashed border) I'm using just for learning purposes, i.e. Can I put a Flash object on top of an HTML div.......)
You'll see in the <head></head> I've tried some (probably badly applied) code for trying to get IE to use a different stylesheet, to no avail--it's as if style2.css is being ignored completely:
xHTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>NavidNegahban.com</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="assets/navBanStyle_working.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link href="assets/style2.css" rel="stylesheet" type="text/css" />
<![endif]-->
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<body>
<div id="container"><!-- open "container" -->
<div id="content"><!-- open "content" -->
<div id="navBan_swf"><!-- open "navBan_swf" -->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="950" height="655" id="FlashID" title="Navid Negahban Flash interface">
<param name="movie" value="globalAssets fl_raw.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="11.0.0.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="globalAssets fl_raw.swf" width="950" height="655">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="11.0.0.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div><!-- close "navBans_swf" -->
<div id="bigPhotoGallery_swf"><!-- open "bigPhotoGallery_swf" -->
</div><!-- close "bigPhotoGallery_swf" -->
</div><!-- close "content" -->
<div id="footer"><!-- open "footer" -->
</div><!-- close "footer" -->
</div><!-- close "container" -->
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>
</body>
</html>
CSS
/* CSS Document */
/* for index_working.html */
/* 17 June 2012 */
* {
padding: 0;
border: 0;
margin: 0;
}
body {
font-family: Tahoma, Geneva, sans-serif;
font-size: 100%;
/*background-color: #FC0;*/
}
/*#container {
background-color: #000;
position: relative;
width: 100%;
height: 1600px;
}
*/
/* ******************************************* CONTENT ************************************* */
#content {
background-color: pink;
width: 950px;
height: 665px;
border: 3px dashed #06F;
position: relative;
top: 10px;
left: 22%;
}
#navBan_swf {
/*background-color: orange;*/
/*width: 955px;*/
/*height: 670px;*/
/*padding: 10px;*/
/*padding-top: 10px;*/
/*position: relative;*/
/*left: 20%*/;
/*top: 1%;*/
text-align: center;
z-index: 1;
}
#bigPhotoGallery_swf {
position: absolute;
top: 25px;
left: 250px;
/*text-align: center;*/
z-index: 6;
visibility: hidden;
}
/* ******************************************* END CONTENT ************************************* */
/* ******************************************* FOOTER ************************************* */
#footer {
}
/* ******************************************* END FOOTER ************************************* */
As you can see, a relatively small bit of code. But for this coding newb, it's enough to drive me to drinking. :D
Here is a link to live version of the site:
http://louiswu.aisites.com/navban2/index_working.html
The main problem I'm experiencing is IE9 breaking my code. I code on a machine running IE8, and in IE8, Chrome, and Firefox the embedded Flash is centered---everything's fine, even the live version. But others, especially my client, report the site pushed over to the right in IE9.
Here's the code, with HTML first then, the CSS:
(The content div (pink background, blue dashed border) I'm using just for learning purposes, i.e. Can I put a Flash object on top of an HTML div.......)
You'll see in the <head></head> I've tried some (probably badly applied) code for trying to get IE to use a different stylesheet, to no avail--it's as if style2.css is being ignored completely:
xHTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>NavidNegahban.com</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="assets/navBanStyle_working.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link href="assets/style2.css" rel="stylesheet" type="text/css" />
<![endif]-->
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<body>
<div id="container"><!-- open "container" -->
<div id="content"><!-- open "content" -->
<div id="navBan_swf"><!-- open "navBan_swf" -->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="950" height="655" id="FlashID" title="Navid Negahban Flash interface">
<param name="movie" value="globalAssets fl_raw.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="11.0.0.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="globalAssets fl_raw.swf" width="950" height="655">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="11.0.0.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div><!-- close "navBans_swf" -->
<div id="bigPhotoGallery_swf"><!-- open "bigPhotoGallery_swf" -->
</div><!-- close "bigPhotoGallery_swf" -->
</div><!-- close "content" -->
<div id="footer"><!-- open "footer" -->
</div><!-- close "footer" -->
</div><!-- close "container" -->
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>
</body>
</html>
CSS
/* CSS Document */
/* for index_working.html */
/* 17 June 2012 */
* {
padding: 0;
border: 0;
margin: 0;
}
body {
font-family: Tahoma, Geneva, sans-serif;
font-size: 100%;
/*background-color: #FC0;*/
}
/*#container {
background-color: #000;
position: relative;
width: 100%;
height: 1600px;
}
*/
/* ******************************************* CONTENT ************************************* */
#content {
background-color: pink;
width: 950px;
height: 665px;
border: 3px dashed #06F;
position: relative;
top: 10px;
left: 22%;
}
#navBan_swf {
/*background-color: orange;*/
/*width: 955px;*/
/*height: 670px;*/
/*padding: 10px;*/
/*padding-top: 10px;*/
/*position: relative;*/
/*left: 20%*/;
/*top: 1%;*/
text-align: center;
z-index: 1;
}
#bigPhotoGallery_swf {
position: absolute;
top: 25px;
left: 250px;
/*text-align: center;*/
z-index: 6;
visibility: hidden;
}
/* ******************************************* END CONTENT ************************************* */
/* ******************************************* FOOTER ************************************* */
#footer {
}
/* ******************************************* END FOOTER ************************************* */
As you can see, a relatively small bit of code. But for this coding newb, it's enough to drive me to drinking. :D