1.Comment the overlay() in the original script.
2. put the following function in place of overlay()
Code:
function overlay(curobj, subobjstr, left, top){
if (document.getElementById){
var subobj=document.getElementById(subobjstr)
subobj.style.display=(subobj.style.display!="block")? "block" : "none"
subobj.style.top = top
subobj.style.left = left
return false
}
else
return true
}
3. Change the existing overlay() function calls like the following
Code:
<b><a href="search.htm" onClick="return overlay(this, 'subcontent',5,50)">Search DD</a></b><br />
Code:
<p style="padding-left: 800px"><b><a href="search.htm" onClick="return overlay(this, 'subcontent2', 0, 80)">Show Content</a></b><br />
4. I've modified the code based on the original script.
Bookmarks