Hello, and thanks.
Anything works with your basic example.
BUT not using it the way I use it:
that is, my DIV contains a movie .swf:
all the code to show it is written by javascript
:
http://www.bobbyvandersluis.com/ufo/
(I use it mainly to avoid Microsoft/EOLAS/active-content issues)
So I have this external JS that creates the Flash code, and (when
preloader has finished and body onload is fired) another JS should
exactly center the DIV.
The code is this:
<html>
<head>
<script type="text/javascript" src="center.js"></script>
<script type="text/javascript" src="ufo.js"></script>
<script type="text/javascript">
var myUfoObject = {movie:"login.swf", width:"300", height:"400",
majorversion:"7", build:"0"};
UFO.create(myUfoObject, "container");
</script>
<title>Login page</title>
<style type="text/css">
body
{margin: 0px;
background-image: url(pattern_3.gif);
background-color: #000000;
}
..bordered {
border-style: solid;
border-width: 15px 15px 15px 15px;
background-color: #fff;
border-color: #fff;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" href="prefs.ico" />
</head>
<body onload="centerDiv('container')">
<div class="bordered" id="container"
style="position:absolute;height:400;width:300;">
<p>...replacement...</p>
</div>
</body>
</html>
IE 6 fires a "permission denied" error on line 6.
No problem with FF.
Thanks