From: vqthomf on 1 Sep 2009 06:49 Hi I have been trying to hide a Div using vbscript and I can't get it to work, I have been trying with the code blow. if MarqueeContainer.visible then MarqueeContainer.visibility=Hidden else MarqueeContainer.visibility=visible end if <div class="MarqueeContainer"> I have a Marquee inside a div and I need to make visible and hidden, I have tried using ID and Class can someone please help. Regards
From: vqthomf on 1 Sep 2009 08:01 It's okay I have found what the problem was and has now fixed it I didn't place quotation marks. "vqthomf" wrote: > Hi I have been trying to hide a Div using vbscript and I can't get it to > work, I have been trying with the code blow. > > if MarqueeContainer.visible then > MarqueeContainer.visibility=Hidden > else > MarqueeContainer.visibility=visible > end if > <div class="MarqueeContainer"> > I have a Marquee inside a div and I need to make visible and hidden, I have > tried using ID and Class can someone please help. > Regards
From: mayayana on 1 Sep 2009 10:23 > MarqueeContainer.visibility=Hidden > It's okay I have found what the problem was and has now fixed it I didn't > place quotation marks. ?? How does that work? Visibility is a style property. For me it only works if I use: MarqueeContainer.style.visibility = "hidden"
From: Swapnadeep on 2 Sep 2009 06:36 On Sep 1, 7:23 pm, "mayayana" <mayaXXy...(a)rcXXn.com> wrote: > > MarqueeContainer.visibility=Hidden > > It's okay I have found what the problem was and has now fixed it I didn't > > place quotation marks. > > ?? How does that work? Visibility is a style > property. For me it only works if I use: > > MarqueeContainer.style.visibility = "hidden" one can also use for any HTML tag : To Hide: MarqueeContainer.style.display='none' or To Show: MarqueeContainer.style.display=' '
From: mayayana on 2 Sep 2009 09:15 > one can also use for any HTML tag : To Hide: MarqueeContainer.style.display='none' or To Show: MarqueeContainer.style.display=' ' > The possible display values are: block inline list-item none And for anyone reading, it's worth noting that Display="none" removes the item from the page, including the space it occupied, while visibility settings affect only whether the item is rendered. It occupies page space even when not visible. So they're really two different properties for different purposes.
|
Pages: 1 Prev: How to set Paper size in vbs Next: Script problem with Windows 7 |