Jay Leavitt

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromJay Leavitt
ToMe
Subjectinitial visibility
Date22 April 2006 22:36
I was reading your javascript tutorial containing functions |showDiv and 
hidediv. Initially, the message '|This positioned element was hidden. Hide it 
again <javascript:doNuhn();>.' is hidden. I looked through the source code and 
could not find where it was initially hidded. How is this done?

       Thank you.      Jay
FromMe
ToJay Leavitt
SubjectRe: initial visibility
Date23 April 2006 10:29
Jay,

> I looked through the source code and could not find where it was initially
> hidded. How is this done?

http://www.howtocreate.co.uk/styles/demostyles.css

This CSS file sets the initial visibility using visibility: hidden;
You can also use a style attribute on the element itself if that makes
things easier, but generally it is best to have CSS in a dedicated
stylesheet. For more details, see my CSS tutorial:

http://www.howtocreate.co.uk/tutorials/css/incorporate
http://www.howtocreate.co.uk/tutorials/css/inline


Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.