![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 139
Rep Power: 4
![]() |
.style.visibility = 'visible';
Hello This will not work:
function help()
{
var xx;
xx = document.getElementById('xx');
xx.style.visibility = 'visible';
}but this will function help()
{
var xx;
xx = document.getElementById('xx');
xx.style.visibility = 'hidden';
}The label (xx) is set to visible=false in visual studio..could this by why |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Nov 2007
Posts: 6
Rep Power: 0
![]() |
Re: .style.visibility = 'visible';
javascript Syntax (Toggle Plain Text)
Created css styles with display.block: false / true; names visible/hidden. works with everything not just divs sorry if im completely off topic ![]() |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
![]() Join Date: Oct 2007
Location: New York
Posts: 161
Rep Power: 10
![]() |
Re: .style.visibility = 'visible';
There is no such thing as display:hidden. Your choices are display:block or display:none.
__________________
DaniWeb IT Discussion Community Everything Information Technology related all in one convenient interactive online publication and community |
|
|
|
|
|
#4 |
|
PFO Founder
![]() ![]() |
Re: .style.visibility = 'visible';
@dani: He isn't using the display attribute, he is using the visibility attribute of style which does contain hidden and visible.
@paulchwd: I am not sure what is wrong, but from the looks of it, it is exactly what I did below and it works for me. http://www.kylekonline.com/test/visible.html <= if you want to see it working. html Syntax (Toggle Plain Text)
__________________
BIG K aka Kyle Programming Forums Kyle K Online Please do not PM or email me programming questions. Post them in the forums instead. |
|
|
|
|
|
#5 | |
|
Newbie
Join Date: Nov 2007
Posts: 6
Rep Power: 0
![]() |
Re: .style.visibility = 'visible';
Quote:
though ill use hidden/visible for this css: css Syntax (Toggle Plain Text)
javascript Syntax (Toggle Plain Text)
html Syntax (Toggle Plain Text)
Also using display:block/display:none means that IE won't substitute a hidden div with space, instead it will render nothing until told to. Last edited by Farflungfish; Nov 8th, 2007 at 4:38 PM. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rectangle in EAST is partially visible | susam_pal | Java | 0 | Sep 30th, 2005 12:44 AM |