Posted by scripts.contact on 04/09/07 04:20
On Apr 6, 7:00 pm, soni2...@yahoo.com wrote:
> Hi,
> Can someone explain how to do the "Hide Example" "Show Example" thats
> on this page:http://msdn.microsoft.com/library/default.asp?url=/workshop/author/pe...
it is CSS style attribute display. Example-
<body style="font:.8em arial">
<script>
function showHide(E){
var Elm=document.getElementById(E)||{style:{}}
Elm.style.display=Elm.style.display=='none'?'':'none'
}
</script>
<b onclick="showHide('example')" style="text-
decoration:underline">Show Example</b><br>
<span id=example >
some content ....
</span>
</body>
[Back to original message]
|