<ole>
object-elementet er i HTML et windowed element, der har sit eget indhold - afsondret fra resten af dokumentet - ligesom f.eks. en iframe. Eksempel:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>TITLE</title>
<style type="text/css">
body, html {
height: 100%;
margin: 0px;
padding: 0px;
}
select {
position: absolute;
left: 50px;
top: 140px;
z-index: 1;
}
.obj {
position: absolute;
left: 100px;
top: 100px;
width: 200px;
height: 150px;
z-index: 2;
}
</style>
</head>
<body>
<select>
<option>Just a dummy</option>
</select>
<object class="obj" data="bla.html"></object>
</body>
</html>
- og 'bla.html':
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>TITLE</title>
<style type="text/css">
body, html {
height: 100%;
margin: 0px;
padding: 0px;
border: 0px none;
overflow: hidden;
}
body {
background-color: yellow;
}
</style>
</head>
<body>
<b>En fed tekst</b><br>
... og noget andet
</body>
</html>
Du kan ikke bare skrive HTML eller tekst inde i object-tag'et. Eller rettere: Det kan du godt ... så bliver det vist, hvis object'et ikke loader, men det kan jo være ligemeget :)
/mvh
</bole>