From: vqthomf on
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
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
> 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
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
>
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.