Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Hidding a Div using VBscript

Reply
 
Old 09-01-2009   #1 (permalink)
vqthomf


 
 

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 SpecsSystem Spec
Old 09-01-2009   #2 (permalink)
vqthomf


 
 

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 SpecsSystem Spec
Old 09-01-2009   #3 (permalink)
mayayana


 
 

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.
?? How does that work? Visibility is a style
property. For me it only works if I use:

MarqueeContainer.style.visibility = "hidden"



My System SpecsSystem Spec
Old 09-02-2009   #4 (permalink)
Swapnadeep


 
 

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"
one can also use for any HTML tag :

To Hide:
MarqueeContainer.style.display='none'

or

To Show:
MarqueeContainer.style.display=' '
My System SpecsSystem Spec
Old 09-02-2009   #5 (permalink)
mayayana


 
 

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:

>
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.


My System SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46