HTML help!

Z

Zak

Hi,

Can anyone help me on HTML please?

I am looking for a code that will do the following:

The word ‘Structure’ will appear in a table on a webpage – when the user
clicks on the word Structure a paragraph of writing will appear below it but
then disappear when user clicks on the word Structure again.

I think it works a little like an anchor but only it makes the text appear
and disappear with a click on a button (the word Structure). Also would this
be possible in a table?

Finally, the size of the cell which contains the word Structure should
increase/decrease with the appearance and disappearance of the word Structure
(i.e. I don’t want the size of the cell to remain big when there isn’t any
text in there.)

Hope im making sense!

Many thanks for your help.
 
J

Jens Peter Karlsen

Put the text in a DIV container and use onclick to set its display
property to none when it shouldn't be seen and display: block when you
want to see it. You can write the code yourself or use behaviors (FP
2003) to create the script for you (you must give the DIV an ID for
this to work).

Regards Jens Peter Karlsen.
 
Z

Zak

Hi,

Thanks for reply however i am not using Frontpage. i posted the question
here because didnt know where else to post it. I am creating web pages on an
existing company intranet so its works slightly different to FP.

I need the actual HTML code if thats possible?

thanks a lot.
 
T

Tom [Pepper] Willett

You need to find a support page/forum for the particular web creation
program you are using.
--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
"You're a daisy if you do!"
---
FrontPage Support:
http://www.frontpagemvps.com/
===
: Hi,
:
: Thanks for reply however i am not using Frontpage. i posted the question
: here because didnt know where else to post it. I am creating web pages on
an
: existing company intranet so its works slightly different to FP.
:
: I need the actual HTML code if thats possible?
:
: thanks a lot.
:
: "Jens Peter Karlsen" wrote:
:
: > Put the text in a DIV container and use onclick to set its display
: > property to none when it shouldn't be seen and display: block when you
: > want to see it. You can write the code yourself or use behaviors (FP
: > 2003) to create the script for you (you must give the DIV an ID for
: > this to work).
: >
: > Regards Jens Peter Karlsen.
: >
: > On Thu, 24 Apr 2008 01:42:00 -0700, Zak
: >
: > >Hi,
: > >
: > >Can anyone help me on HTML please?
: > >
: > >I am looking for a code that will do the following:
: > >
: > >The word 'Structure' will appear in a table on a webpage - when the
user
: > >clicks on the word Structure a paragraph of writing will appear below
it but
: > >then disappear when user clicks on the word Structure again.
: > >
: > >I think it works a little like an anchor but only it makes the text
appear
: > >and disappear with a click on a button (the word Structure). Also would
this
: > >be possible in a table?
: > >
: > >Finally, the size of the cell which contains the word Structure should
: > >increase/decrease with the appearance and disappearance of the word
Structure
: > >(i.e. I don't want the size of the cell to remain big when there isn't
any
: > >text in there.)
: > >
: > >Hope im making sense!
: > >
: > >Many thanks for your help.
: >
 
M

Mike Mueller

Well, it is not just some HTML you can plop into notepad and have it work-
the HTML is the easy stuff, but then you need to figure out the javascripts
and css that is going to do the grunt work. Or you do it the easy way and
(find out how to) use (your) web designing software.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top