Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How to hide and show ?

netgertnetgert Member Posts: 331
Hi,

How? I used this:

[code]

Blah


[/code]

and this:

[code]

document.x.style.visible = 'none';

[/code]

How's right?

[hr][red][italic][b]N[/b][/red][blue]et[/blue][red][b]G[/b][/red][blue]ert[/italic][/blue][hr]

Comments

  • ixzixz Member Posts: 29



    function F_Obj(n, d) {
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i for(i=0;!x&&d.layers&&i}

    function Switch() {
    var i,p,v,obj,args=Switch.arguments;
    for (i=0; i<(args.length-2); i+=3) if ((obj=F_Obj(args[i]))!=null) { v=args[i+2];<br /> if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
    }





    hi


    bye









    it uses the script from macromedia dreamweaver (i think)
    [blue][b]I[/b]xz[/blue]

Sign In or Register to comment.