When I put my <object> tag out of <table> (and <div>), VBScript code
below works fine. When I put <object> tag into <table> (and put
<table> into <div> tag) it doesn't work. What I am doing wrong?
<html>
<script language=VBScript>
Function Toggle()
If toggleView.innerText = "Show Files" Then
toggleView.innerText = "Hide Files"
signatures.style.display = "none"
FileList.style.display = ""
MainTable.style.display = ""
Else
toggleView.innerText = "Show Files"
signatures.style.display = ""
FileList.style.display = "none"
MainTable.style.display = "none"
End If
End Function
</script>
<body>
<table width="100%">
<tr><td>
<b>%THISDIRNAME%</b>--------------
<a id=toggleView href=vbscript:Toggle>Show Files</a>
</td><td>
<a href="http://www.example.org" TARGET="_blank">EXAMPLE</a>
</td>
</table>
<hr>
<div id=MainTable style=display:none><table width="100%"><tr><td>
<image src="background1.jpg">
</td><td><object id=FileList border=0
width=100% height=50% tabindex=1
style=display:none
classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2">
</object>
</td></tr></table>
</div>
<div id=signatures>
Here goes the actual content of the folder...
</div>
</body>
</html>