creating a link when clicked displays the information below the li

G

Guest

i would like to place a link on my site, which when clicked displays the
information below the link rather than taking the user to another page or a
bookmarked paragraph at the base of the page; the information being a
paragraph of text.
any help would be appreciated
 
M

Murray

How many of these do you want on a single page? I ask because the answer
would be different if it's just one than if it were more than one.
 
M

MD Websunlimited

Hi Sath,

Place the following function into your head:

<script language="javascript" type="text/javascript" >
function displayDiv(id) {
debugger;
obj = document.getElementById(id);
if (obj.style.display == 'none') {
obj.style.display = '';
} else {
obj.style.display = 'none';
}
}

</script>

Then for any div that you wish to display or hidden

Use something like this:

<span style="cursor: hand;" onclick="displayDiv('myDiv');">My Div</span>

<div id="myDiv" style="display: none; " >

This is my div content

</div>
 
B

Bob

Tabbed Page?

This is a sample I did for a form but it sounds like what you want....
http://www.xmas-i-am.com/form.htm
(Done with FrontPage 2003 behaviors)

Bob
|i would like to place a link on my site, which when clicked displays the
| information below the link rather than taking the user to another page or
a
| bookmarked paragraph at the base of the page; the information being a
| paragraph of text.
| any help would be appreciated
 
B

Bob Lehmann

Yes, really.

If there is only one div, then you don't have deal with the possible
requirement of closing a visible div when a different div is selected.

Bob Lehmann
 
B

Bob

Tnx Murray...

Looking at the post more closely I think that he wants the "show hide" type
of list like Microsoft uses.

I think you might have a CSS sample of that somewhere OR he could use the
method Mike gave him.

--
Scientists see the world as it is,
Engineers create a world that has never been

bob

|I think he was suggesting that as an alternative.
|
| --
| Murray
| --------------
| MVP FrontPage
|
|
| | > No sorry it isn't a tabbed page
| >
| > "Bob" wrote:
| >
| >> Tabbed Page?
| >>
| >> This is a sample I did for a form but it sounds like what you want....
| >> http://www.xmas-i-am.com/form.htm
| >> (Done with FrontPage 2003 behaviors)
| >>
| >> Bob
| >
|
|
 
M

Murray

I do, but mine stays open until you click on another one, or it stays open
until you refresh the page....

Here's a quick and easy way to
get expandible lists. This method solves the problem with FP's collapsible
list code that is NOT FF/NN compatible, and will therefore work in all
browsers.

http://www.murraytestsite.com/collapsiblelist.htm

It uses some CSS, and the FP Change Property behavior.
 
G

Guest

thanks alot this helps its exactly what i am looking for
thanks to everyone for their help
 
G

Guest

Murray:
Below is the response you gave to Sath about a callapsible list.
I am having a similar issue and went to the link you provided.
List 1 is exactly what I am trying to do but do not understand the html
language.
I work in mostly in the page view of FrontPage.
I did not even know about FrontPage until a year or so ago when I began to
work on our companies intranet site.
So If you could relay that information to me in an amateur's language I
would truly appreciate it.
Thanks,
 
M

Murray

How can I help you with this, Gabriella?

What is it you cannot grasp frpm looking at the page's code? It's pretty
simple....

I'm not trying to belittle your abilities here, I'm trying to target
specifically what to do to help you.
 
G

Guest

Basically it's this - I don't speak computer languange - I work in the
applications pages such as the page view - I took a class in computer
language in High school about 15 years ago and all but failed it.
So I guess I need you to show me in page view how to set up the collapsible
list to make it work the way it's supposed to. Or offer a suggestion of
something that would work as well as, or better than, the collapsible list.
PS - Just so you know - I didn't think you were talking down to me or
anything. I understand that your IQ with regards to computers is much higher
than mine.
I am mostly self taught.
Thanks for any help you can give me.
Thanks and God bless you and yours,
Gabriella777_2
 
G

Guest

Murray -My apologies - I reread my e-mail to you and realized I didnt give
you enough information.
Here is the message I posted before I found your response to Sath.

"I am creating a web page that will include an extensive list of documents.
Each document name will be hyperlinked to the document.
According to Help - I can make the list collapse.
However, I have done everything it said to do and it doesn't work.
How do I fix that?
Is there a better solution?"

Again, thank you for your help, time and effort. It is truly appreciated.
 
M

Murray

However, I have done everything it said to do and it doesn't work.

That's correct. It doesn't work.

Here is a demonstration of a quick and easy way to
get expandible lists. This method solves the problem with FP's collapsible
list code that is NOT FF/NN compatible, and will therefore work in all
browsers.

http://www.murraytestsite.com/collapsiblelist.htm

It uses some CSS, and the FP Change Property behavior. Unfortunately, it's
just a demonstration - not a tutorial.
 

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