Thanks for the help.
I have sorted it now with a much simpler method.
Although it is not as extensive with its browser checking etc. it will do for me.
The mistake I was making was putting the link to close the layer in the page called by the iFrame.
see the solution , hope it helps someone:
This in the head
function hidelayer(lay) {
document.all[lay].style.visibili ty...
User Profile
Collapse
-
I have a hotspot
<area shape="rect" coords="644,15, 747,33" href="#" onClick="MM_sho wHideLayers('la test','','show' )">
with the above function generated by dreamweaver mx
function MM_showHideLaye rs() { //v6.0
var i,p,v,obj,args= MM_showHideLaye rs.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findOb j(args[i]))!=null) { v=args[i+2];...Leave a comment:
-
Thanks for the reply.
I have been trying to set it all out with the close iFrame outside the actual iFrame but it is not as good as the "close this window" being inside the iframe.
The code to close the iFrame is :
[
function closeiframe(){
parent.document .getElementById ("iframe1").sty le.display="non e";
}
]
the square brackets are requested by...Leave a comment:
-
I should also add that when the linkis clicked it opens a new layer and in that layer the iframe is opened.
The iframe shows ok and the link inside close the iframe but the link will not open the layer again.
ThanksLeave a comment:
-
iFrame will not open second time around
Hello,
I am having a problem with an iFrame.
I have it so the iframe is not visible when the page ids loaded.
I have a link (null) that when clicked opens the iframe.
On the iframe I have a link to some javascript that closes the iFrame.
All is fine, but if I click on the original link to open the iFrame a second time
nothing happens.
Any ideas anyone ?
...
No activity results to display
Show More
Leave a comment: