Posted by harry on 05/26/05 12:50
Following on from my "bug in IE 5.5" posting yesterday.
Using IE 5.5 (sp2) - intranet app & no other browser required.
Using the HTML code (you don't need an image1.gif to see these bizzare
effects), shown below, why the hell does the image disappear when the
browser window is widened/ narrowed but stays there if you reduce/increase
the height? - this does not happen in Firefox!
This is doing my head in!
thanks
harry
<%@ page contentType="text/html; charset=iso-8859-1" language="java"
import="java.sql.*" errorPage="" %>
<!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>Untitled Document</title>
</head>
<script type="text/javascript">
<!--
function getElement(id)
{
var ctrl=null;
if(document.all)
{
ctrl = document.all[id];
if(ctrl==null)
ctrl = document.getElementById(id);
}
else
ctrl = document.getElementById(id);
return ctrl
}
function showObject(id)
{
getElement(id).style.display = '';
}
function hideObject(id)
{
getElement(id).style.display = 'none';
}
function onload()
{
hideObject('text1');
hideObject('text2');
hideObject('text3');
hideObject('image1');
showObject('text1');
showObject('text2');
showObject('text3');
showObject('image1');
}
-->
</script>
<body onLoad="onload();">
<p id="text1">Text 2</p>
<p id="text2">Text 2</p>
<p id="text3">Text 2</p>
<input type="image" id="image1" src="image1.gif" style="cursor:hand;">
</body>
</html>
Navigation:
[Reply to this message]
|