Posted by jojo on 06/19/06 20:10
Darin McGrew schrieb:
> jojo <jojo.hafner@gmx.de> wrote:
>> What about using CSS to hide the parts of the right page which should
>> not be visible and using JavaScript to make them visible?
>
> If you use JavaScript to make something visible, then you should use
> JavaScript to hide it in the first place. Using CSS to hide it makes it
> inaccessible to those with CSS enabled, but JavaScript
> disabled/unavailable.
OK, you're right. Than replace the head-section in my last posting with
this:
<head>
<title>SomeTitle</title>
<script type="text/javascript" language="javascript">
function showContent(n){
for (i=1; i<=3; i++){
document.getElementById("Content"+1).style.display="none"
}
if (n) document.getElementById("Content"+n).style.display="block"
}
showContent()
</script>
</head>
[Back to original message]
|