Ek sluit die iframe-element in my HTML-bladsy in:
<iframe src="applet.html" frameborder="0" style="width: 600px; height: 600px;"></iframe>
applet.html lyk soos volg:
<html>
<head>
</head>
<body>
<applet code="ClockApplet.class" width="100%" height="100%">
</applet>
</body>
</html>
Die probleem is: hoe om 'n div-element (met posisie: absoluut) oor 'n Java-applet te vertoon is binne iframe.
Ek het probeer om 'n ander iframe-element te gebruik:
<html>
<head>
</head>
<body>
<iframe src="applet.html" frameborder="0" style="width: 600px; height: 600px;"></iframe>
<iframe src="javascript:false;" frameborder="0" style="position: absolute; top: 10px; left: 10px; width: 150px; height: 150px; z-index: 99"></iframe>
<div style="position: absolute; top: 10px; left: 10px; background-color: gray; height: 150px; width: 150px; z-index: 100">Hello World</div>
</body>
</html>
Werk goed in IE, Firefox, maar nie in Chrome nie.