Here's the javascript. In my case, it's embedded in the head section of the html source shown above.
This is the script messing with the visibility property.
<script type="text/javascript"><!-
function cLapse(name) {
if (name&&document.getElement
var elm = new Object();
elm = document.getElementById(na
if (elm) {
if (elm.style) {
if (elm.style.visibility) {
if (elm.style.visibility.toSt
elm.style.visibility="hidd
} else {
elm.style.visibility="visi
}
} else {
alert("Style of element '" + name + "' has no property 'visibility'.");
}
} else {
alert("Element '" + name + "' has no property 'style'.");
}
} else {
alert("Element '" + name + "' not found.");
}
} else {
alert("Collapse not supported.");
}
}
// -->
</script>
ie6 says, "Style of element 'Asp.dd' has no property 'visibility'". I'm sure it does.
This is the script messing with the display property.
<script type="text/javascript"><!-
function cLapse(name) {
if (name&&document.getElement
var elm = new Object();
elm = document.getElementById(na
if (elm) {
if (elm.style) {
if (elm.style.display) {
if (elm.style.display.toStrin
elm.style.display="collaps
} else {
elm.style.display="block";
}
} else {
alert("Style of element '" + name + "' has no property 'display'.");
}
} else {
alert("Element '" + name + "' has no property 'style'.");
}
} else {
alert("Element '" + name + "' not found.");
}
} else {
alert("Collapse not supported.");
}
}
// -->
</script>
Opera6 says, "Style of element 'Asp.dd' has no property 'display'". I'm sure it does.
ie6 says the same, but only the second time. The first time the caption is clicked, the link block will disappear. It won't reappear, however.
Main Topics
Browse All Topics





by: OmegaJuniorPosted on 2002-09-02 at 01:29:10ID: 7255878
Here's part of the html. As stated, the w3c html validator says it's ok.
">ASP</dt> rolla.com/ " title="4 Guys from Rolla">4 Guys from Rolla</a> uk/checkfr ee.asp" title="ASP World">ASP World</a> om/" title="ASPTurf">ASPTurf</a > fusion.com /" title="DeveloperFusion">De veloperFus ion</a>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="nl">
<head><title>Personal hyperlinks</title>
<meta http-equiv="content-type" content="text/html charset=utf-8">
<base target="_blank">
<link rel="stylesheet" type="text/css" href="portal.css">
</head><body>
<dl>
<dt onClick="cLapse('ASP.dd');
<dd id="ASP.dd">
<a type="text/html" href="http://www.4guysfrom
<a type="text/html" href="http://asp-world.co.
<a type="text/html" href="http://www.aspturf.c
<a type="text/html" href="http://www.developer
</dd></dl>
</body></html>