rossmiester
01-07-2012, 10:08 PM
Hi everyone, I have successfully added Flash to my page but I want the flash animation to be inside the <div id="main">. For some reason when I put the <div id="flashcontent"></div> inside the main div it doesn't show up on the page. Please help. My code is below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MikeJamesDesigns</title>
<link rel="stylesheet" type="text/css" href="cssEdit.css" />
<script type="text/javascript" src="js/flashobject.js"></script>
<script type="text/javascript">
var fo = new FlashObject("bannerISRAEL.swf", "animationName", "450", "60", "8", "#FFFFFF");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("loop", "true");
fo.write("flashcontent");
</script>
</head>
<body>
<!--<div class="tikiImage">
<img src="/Users/MikeJamesRossi/Desktop/cssEdit/images/tiki.png" alt="tikiTorch" height="1040px" width="1100px"/>
</div>-->
<div id="wrapper">
<div id="sitebranding">
</div><!--end of sitebranding div-->
<div id="navigation">
<a href="home">Home</a> | <a href="about">About</a> | <a href="news">News</a> | <a href="images">Images</a> | <a href="home">Faq</a> | <a href="contact">Contact</a>
</div><!--end of navigation div-->
<div id="main">
<div id="flashcontent"></div>
</div><!--end of main div-->
</div><!--end of wrapper div-->
</body>
</html>
My css file looks like this:
#flashcontent {
position: relative;
top: 500px;
left: 365px;
width: 60px;
height:px;
background-color:red;
z-index: ;
}
Any help would be greatly aprreciated!! Thanks Mike! :)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MikeJamesDesigns</title>
<link rel="stylesheet" type="text/css" href="cssEdit.css" />
<script type="text/javascript" src="js/flashobject.js"></script>
<script type="text/javascript">
var fo = new FlashObject("bannerISRAEL.swf", "animationName", "450", "60", "8", "#FFFFFF");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("loop", "true");
fo.write("flashcontent");
</script>
</head>
<body>
<!--<div class="tikiImage">
<img src="/Users/MikeJamesRossi/Desktop/cssEdit/images/tiki.png" alt="tikiTorch" height="1040px" width="1100px"/>
</div>-->
<div id="wrapper">
<div id="sitebranding">
</div><!--end of sitebranding div-->
<div id="navigation">
<a href="home">Home</a> | <a href="about">About</a> | <a href="news">News</a> | <a href="images">Images</a> | <a href="home">Faq</a> | <a href="contact">Contact</a>
</div><!--end of navigation div-->
<div id="main">
<div id="flashcontent"></div>
</div><!--end of main div-->
</div><!--end of wrapper div-->
</body>
</html>
My css file looks like this:
#flashcontent {
position: relative;
top: 500px;
left: 365px;
width: 60px;
height:px;
background-color:red;
z-index: ;
}
Any help would be greatly aprreciated!! Thanks Mike! :)