Forum Moderators: open
<div style="position: relative;" align="center"><img src="myHomepage.jpg" alt="" border="0" usemap="#Map" />
<div style="position: absolute; top: 237px; left: 547px;"> <object width="280" height="234""><param name="movie" value="urltovideo"></param><param name="wmode" value="transparent"></param><embed src="urltovideo" type="application/x-shockwave-flash" wmode="transparent" width="280" height="234"></embed></object>
</div></div>
and a warm welcome to these forums. ;)
Try it like this...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
#img_and_obj_holder {
position:relative;
width:#*$!px; /* this width is equal to the image map width */
height:#*$!px; /* this height is equal to the image map height */
margin:auto;
}
#img_and_obj_holder img {
position:absolute;
width:100%;
height:100%;
border:0 solid;
}
#img_and_obj_holder object {
position:absolute;
width:280px;
height:234px;
left:547px;
top:237px;
}
</style></head>
<body><div id="container">
<div id="img_and_obj_holder">
<img src="myHomepage.jpg" usemap="#Map" alt="">
<object type="application/x-shockwave-flash" data="your_flash.swf">
<param name="movie" value="your_flash.swf"/>
<param name="wmode" value="transparent"/>
</object></div>
</div>
</body>
</html>
birdbrain
[edited by: tedster at 4:56 pm (utc) on Dec. 17, 2007]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"> <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<style type="text/css">
<!--
body {
margin-top: 0px;
background-color: #000000;
margin-bottom: 0px;
}
#img_and_obj_holder {
position:relative;
width:900px; /* this width is equal to the image map width */
height:1112px; /* this height is equal to the image map height */
margin:auto;
}
#img_and_obj_holder img {
position:absolute;
width:100%;
height:100%;
border:0 solid;
}
#img_and_obj_holder object {
position:absolute;
width:280px;
height:234px;
left:547px;
top:237px;
}
-->
</style>
</head><body>
<div id="container">
<div id="img_and_obj_holder">
<img src="myHomepage.jpg" alt="" usemap="#Map" />
<object><param name="movie" value="http://www.youtube.com..."/><param name="wmode" value="transparent"/><embed src="http://www.youtube.com..." type="application/x-shockwave-flash" wmode="transparent" width="280" height="234"/></object>
</div>
</div>
<map name="Map" id="Map">
<area shape="rect" coords="604,497,879,533" href="features.html" />
<area shape="rect" coords="604,537,879,571" href="camping.html" />
<area shape="rect" coords="602,579,879,612" href="info.html" />
<area shape="rect" coords="606,619,877,650" href="registration.html" />
<area shape="rect" coords="604,656,879,692" href="/forum" />
<area shape="rect" coords="606,697,877,730" href="links.html" />
<area shape="rect" coords="604,733,880,774" href="index.html" />
<area shape="rect" coords="453,307,531,344" href="hgfdhg.mp3" />
</map>
</body>
</html>
To get it to work for IE change this...
#img_and_obj_holder object {
position:absolute;
width:280px;
height:234px;
left:547px;
top:237px;
}
...to this...
#img_and_obj_holder object,#img_and_obj_holder embed {
position:absolute;
width:280px;
height:234px;
left:547px;
top:237px;
}
birdbrain
in that case you will need to use this variation...
<style type="text/css">
<!--
body {
margin-top: 0px;
background-color: #000000;
margin-bottom: 0px;
}
#img_and_obj_holder {
position:relative;
width:900px; /* this width is equal to the image map width */
height:1112px; /* this height is equal to the image map height */
margin:auto;
}
#img_and_obj_holder img {
position:absolute;
width:100%;
height:100%;
border:0 solid;
}
#img_and_obj_holder object{
position:absolute;
width:280px;
height:234px;
left:547px;
top:237px;
}
-->
</style><!--[if IE]>
<style type="text/css">
<!--
#img_and_obj_holder embed {
position:absolute;
width:280px;
height:234px;
left:547px;
top:237px;
}
-->
</style>
<![endif]-->
Note:-
I did not have this problem as I used the Satay Method for embedding flash.
Do a google search for Satay Method or the later Bye Bye Embed
birdbrain
No problem, you're very welcome. ;)