2 posts by 1 authors in: Forums > Off Topic / Other
Last Post: March 25, 2009   (RSS)

By sariline - March 18, 2009

Hi
Please I’am in need of any help
I used this function to hide hide/show layers :
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}

But I have a problem with the iframe in IE
It doses not work with it

With all thanks
you can only go as far as you push.

Re: [sariline] please help ...iframe in IE

By sariline - March 25, 2009

hi

i think that i have found a solution
all we need to do is to add :
style="display:none"

and those funtions too :
function showFrame(){
fr = document.getElementById ("textFile");
if (fr.style.display!='none'){
fr.style.display="block";
}
else {
fr.style.display="block";
}
}
function HideFrame(){
fr = document.getElementById ("textFile");
if (fr.style.display!='block'){
fr.style.display="none";
}
else {
fr.style.display="none";
}
}

i wish it may help
with all thanks
you can only go as far as you push.