Hello Johm Michael
One way to do it is as follows:
1. Put this script in the head of your document:
Code:
<script type="text/javascript">
var d=document
function remove_from_dom(tag,className) {
var els = document.getElementsByTagName(tag)
for (i=0;i<els.length; i++) {
if (els.item(i).className == className){
/* This would add style to a TextNode
els.item(i).style.color="red";*/
while (els.item(i).firstChild)
els.item(i).removeChild(els.item(i).firstChild);
}
}
}
</script>
2. Put the following div at the very end of the body section:
<div id="SomeDiv" class="HideMe" ></div/>
3. Put this in the 'Gallery Contents':
Code:
<a href="#" onClick="remove_from_dom('div','HideMe');eIFR =
d.createElement('iframe');eIFR.setAttribute('src','document1.html'); d.getElementById('SomeDiv').appendChild(eIFR);eIFR.style.position='absolute'; eIFR.style.left='130px';eIFR.setAttribute('frameBorder','No');eIFR.style.width='70%'; eIFR.style.top='20%';eIFR.style.backgroundColor='#dedede'; "><img src="dynamicbook1.gif" border=1></a><br />
4.Create another document ('document1.html') with your content and a possibility to hide the document. Your could use this (in the new document):
<button onClick="top.remove_from_dom('div','HideMe')">Hide</button><br>
(This is all rather clumsy, but it works and will help you to get on your way. Try it).
Good luck,
Arie M.
Bookmarks