![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Hidding a Div using VBscript 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 |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Hidding a Div using VBscript It's okay I have found what the problem was and has now fixed it I didn't place quotation marks. "vqthomf" wrote: Quote: > 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 |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Hidding a Div using VBscript > MarqueeContainer.visibility=Hidden Quote: > It's okay I have found what the problem was and has now fixed it I didn't > place quotation marks. property. For me it only works if I use: MarqueeContainer.style.visibility = "hidden" |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Hidding a Div using VBscript On Sep 1, 7:23*pm, "mayayana" <mayaXXy...@xxxxxx> wrote: Quote: Quote: > > 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" To Hide: MarqueeContainer.style.display='none' or To Show: MarqueeContainer.style.display=' ' |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Hidding a Div using VBscript > one can also use for any HTML tag : To Hide: MarqueeContainer.style.display='none' or To Show: MarqueeContainer.style.display=' ' Quote: > 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. |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| CSS and VBscript | VB Script | |||
| How to do No hang up VBScript (nohup for VBScript) | VB Script | |||
| WORMS ISASS NETWORK HIDDING CONECTIONS | Vista security | |||
| mouse hidding behind text in text box | Vista hardware & devices | |||
| Hidding XP from Vista | Vista General | |||