You may want to try Behaviors in FP as well. They're fun to mess with.
| That's what I mean, only with images instead of words. The Iframes will
| probably work though. Thanks to you both for your help, I'm going to try
that
| and see what I can do.
| You guys are great!
|
| "Rob Giordano (Crash)" wrote:
|
| > I wonder if acfrogg means collapsing paragraphs..sheesh I dunno what
they
| > are called...you know like in FAQs lists? Can't be Iframes since they
don't
| > "open"- since they're always opened.
| >
| >
| > | > | acfrogg wrote:
| > | > Thank you both, it's not quite what I mean. I want the box to open
| > | > within the same page. I know I'm not explaining it right, I'm trying
| > | > to find a site that has what I mean. Thanks for your help
| > |
| > | OK, I think I understand.
| > |
| > | An Iframe will open in the same window.
| > |
| > | See my site
| > | Open/Close News of this Site
| > |
| > | Does this do what you want?
| > |
| > | If so, the code is
| > | <button onclick="loadIframe('News','news.html')">Open/Close News of
this
| > | Site</button>
| > | <iframe class="c1" id="News" src=""></iframe>
| > |
| > | where loadIframe is a function which loads the file 'news.html' into
the
| > | Iframe 'News'. On the second click it hides the frame
| > | function loadIframe(id,sPath)
| > | {
| > | var x = document.getElementById(id)
| > | if (x.style.display != 'block')
| > | { x.src = sPath
| > | x.style.display = 'block'}
| > | else
| > | x.style.display = 'none'
| > | }
| > |
| > | c1 is a style for the Iframe
| > | .c1 {
| > | display: none;
| > | height: 200px;
| > | width: 400px;
| > | overflow: auto;
| > | }
| > |
| > | --
| > | Cheers,
| > | Trevor L.
| > | Website:
http://tandcl.homemail.com.au
| > |
| > |
| >
| >
| >