![]() |
HTML Query
Hi,
Does someone here knows if there exists a tag that can fold/hide text... and when the user clicks it, the text will become visible. Thanks |
Re: HTML Query
On 03 Jan 2009, Ramon <ramif.47.invalid@gmail.com> wrote:
> Hi, > > Does someone here knows if there exists a tag that can fold/hide > text... and when the user clicks it, the text will become visible. > > Thanks How would the user be able to click it when it's invisible? -- Neredbojias http://www.neredbojias.org/ http://www.neredbojias.net/ The road to Heaven is paved with bad intentions. |
Re: HTML Query
Neredbojias wrote:
> On 03 Jan 2009, Ramon <ramif.47.invalid@gmail.com> wrote: > >> Does someone here knows if there exists a tag that can fold/hide >> text... and when the user clicks it, the text will become visible. > > How would the user be able to click it when it's invisible? nitpick! ;-) -- Els http://locusmeus.com/ |
Re: HTML Query
Neredbojias wrote:
> On 03 Jan 2009, Ramon <ramif.47.invalid@gmail.com> wrote: > >> Hi, >> >> Does someone here knows if there exists a tag that can fold/hide >> text... and when the user clicks it, the text will become visible. >> >> Thanks > > How would the user be able to click it when it's invisible? > What I meant is that you have something like this: [+] Click here to see more information. When the user clicks on the [+], he/she will see something like this: [+] Click here to see more information. Some text here that the user could not see before -- thus invisible :) Other text here ... Is is possible in HTML? |
Re: HTML Query
Ramon wrote:
>>> Does someone here knows if there exists a tag that can fold/hide >>> text... and when the user clicks it, the text will become visible. >>> >>> Thanks >> >> How would the user be able to click it when it's invisible? The answer to that question is obviously "by accident", though some people may include the possibility of "by miracle". > What I meant is that you have something like this: > [+] Click here to see more information. > > When the user clicks on the [+], he/she will see something like this: > [+] Click here to see more information. > Some text here that the user could not see > before -- thus invisible :) > Other text here ... It's generally useful to ask what you really want, instead of something quite different. It is also a good idea to write a Subject line that gives at least a subtle hint of a clue of an allusion to what the content is about. It's generally useful to present your content to users without hiding it in elaborate ways that generally exhibit poor accessibility, poor usability, and poor style. "Click here" is virtually always bad style. > Is is possible in HTML? No. You need to study an introduction to the basics of HTML if you had the idea that it could be. HTML is poor lonesome data format, not a programming language or even a style language. Well of course it _is_ possible in the sense that "[+]" could be a link pointing to a page that differs from the current one only so that there is the additional content there (and the content after it is pushed downwards of course). But that's hardly what you meant. What people normally use to do things like you describe is a combination of JavaScript and CSS; naturally there needs to be some marked-up data (i.e., HTML stuff) for them to play with. And sometimes people use just CSS (playing on HTML of course), though then the user just mouses over instead of clicking. It can be fun, to an author, but it's normally not useful. -- Yucca, http://www.cs.tut.fi/~jkorpela/ |
Re: HTML Query
Jukka K. Korpela wrote:
> Ramon wrote: > >>>> Does someone here knows if there exists a tag that can fold/hide >>>> text... and when the user clicks it, the text will become visible. >>>> >>>> Thanks >>> >>> How would the user be able to click it when it's invisible? > > The answer to that question is obviously "by accident", though some > people may include the possibility of "by miracle". > >> What I meant is that you have something like this: >> [+] Click here to see more information. >> >> When the user clicks on the [+], he/she will see something like this: >> [+] Click here to see more information. >> Some text here that the user could not see >> before -- thus invisible :) >> Other text here ... > > It's generally useful to ask what you really want, instead of something > quite different. It is also a good idea to write a Subject line that > gives at least a subtle hint of a clue of an allusion to what the > content is about. > > It's generally useful to present your content to users without hiding it > in elaborate ways that generally exhibit poor accessibility, poor > usability, and poor style. "Click here" is virtually always bad style. > >> Is is possible in HTML? > > No. You need to study an introduction to the basics of HTML if you had > the idea that it could be. HTML is poor lonesome data format, not a > programming language or even a style language. > > Well of course it _is_ possible in the sense that "[+]" could be a link > pointing to a page that differs from the current one only so that there > is the additional content there (and the content after it is pushed > downwards of course). But that's hardly what you meant. > > What people normally use to do things like you describe is a combination > of JavaScript and CSS; naturally there needs to be some marked-up data > (i.e., HTML stuff) for them to play with. And sometimes people use just > CSS (playing on HTML of course), though then the user just mouses over > instead of clicking. It can be fun, to an author, but it's normally not > useful. > Thanks. |
Re: HTML Query
Ed Mullen wrote: > Ramon wrote: >> >> Does someone here knows if there exists a tag that can fold/hide >> text... and when the user clicks it, the text will become visible. > > http://markehansen.07x.net/FAQ.htm if(document.layers)... icky-poo! -- Berg |
Re: HTML Query
Bergamot wrote:
> > Ed Mullen wrote: >> Ramon wrote: >>> >>> Does someone here knows if there exists a tag that can fold/hide >>> text... and when the user clicks it, the text will become visible. >> >> http://markehansen.07x.net/FAQ.htm > > if(document.layers)... > > icky-poo! > Not sue how many Netscape 4.x users are still out their, but at least they are using *object* detection of stupid user agent sniffing...I am getting awful tired if PayPal's warning dialogs in their tools that my browser is not supported "IE 5.5+ FF 1.0+ Safari 1.2+" while using SeaMonkey 1.1.14 -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com |
Re: HTML Query - addendum
Jonathan N. Little wrote:
> Bergamot wrote: >> >> if(document.layers)... >> >> icky-poo! >> > Not sue how many Netscape 4.x users are still out their, but at least *sure* > they are using *object* detection of stupid user agent sniffing... The site's real error is that they have the text hidden by default in the styling. It should be displayed and the via JavaScript upon loading set to hide so that if the user has JavaScript disabled the content is visible. The Rule is JavaScript is option and the page should be usable without it. -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com |
Re: HTML Query
Thanks Ed for your tips. It worked great!
Ed Mullen wrote: > Ramon wrote: >> Hi, >> >> Does someone here knows if there exists a tag that can fold/hide >> text... and when the user clicks it, the text will become visible. >> >> Thanks > > You need javascript but there are lots of existing examples: > > http://markehansen.07x.net/FAQ.htm > > http://www.tjkdesign.com/articles/toggle_elements.asp > > Google text toggle for more. > > |
| All times are GMT. The time now is 06:50 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.