PC Review


Reply
Thread Tools Rate Thread

Collapsible windows

 
 
=?Utf-8?B?YWNmcm9nZw==?=
Guest
Posts: n/a
 
      24th May 2006
Is there a way for me to add a collapsible window in my web page? What I want
is to have a link open a small window within a current window and give them
the option to close it. I have seen this on sites before, but I could not
find one for an example. Thank you!
 
Reply With Quote
 
 
 
 
Trevor L.
Guest
Posts: n/a
 
      24th May 2006
acfrogg wrote:
> Is there a way for me to add a collapsible window in my web page?
> What I want is to have a link open a small window within a current
> window and give them the option to close it. I have seen this on
> sites before, but I could not find one for an example. Thank you!


You could either open a new window with a close button attached, or use an
Iframe (opened and closed by a button)

To see an example of a new window, go to my site and click on one of the
photos on the top of the page.
For an Iframe click on Open/Close News of this Site. (Close by clicking
again)

The code is on the site, but if you need further info, I can post it

--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au


 
Reply With Quote
 
Rob Giordano \(Crash\)
Guest
Posts: n/a
 
      24th May 2006
Do you mean pop-ups?

There's a simple/free add-in for FP called Spawn...
http://www.jimcosoftware.com/addins.aspx

If that's what you mean.



"acfrogg" <(E-Mail Removed)> wrote in message
news:CC82CD44-E78D-43BE-B6EB-(E-Mail Removed)...
| Is there a way for me to add a collapsible window in my web page? What I
want
| is to have a link open a small window within a current window and give
them
| the option to close it. I have seen this on sites before, but I could not
| find one for an example. Thank you!


 
Reply With Quote
 
=?Utf-8?B?YWNmcm9nZw==?=
Guest
Posts: n/a
 
      24th May 2006
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

"Rob Giordano (Crash)" wrote:

> Do you mean pop-ups?
>
> There's a simple/free add-in for FP called Spawn...
> http://www.jimcosoftware.com/addins.aspx
>
> If that's what you mean.
>
>
>
> "acfrogg" <(E-Mail Removed)> wrote in message
> news:CC82CD44-E78D-43BE-B6EB-(E-Mail Removed)...
> | Is there a way for me to add a collapsible window in my web page? What I
> want
> | is to have a link open a small window within a current window and give
> them
> | the option to close it. I have seen this on sites before, but I could not
> | find one for an example. Thank you!
>
>
>

 
Reply With Quote
 
Trevor L.
Guest
Posts: n/a
 
      24th May 2006
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


 
Reply With Quote
 
Rob Giordano \(Crash\)
Guest
Posts: n/a
 
      24th May 2006
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.


"Trevor L." <Trevor_L.@Canberra> wrote in message
news:(E-Mail Removed)...
| 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
|
|


 
Reply With Quote
 
=?Utf-8?B?YWNmcm9nZw==?=
Guest
Posts: n/a
 
      24th May 2006
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.
>
>
> "Trevor L." <Trevor_L.@Canberra> wrote in message
> news:(E-Mail Removed)...
> | 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
> |
> |
>
>
>

 
Reply With Quote
 
Rob Giordano \(Crash\)
Guest
Posts: n/a
 
      25th May 2006
You may want to try Behaviors in FP as well. They're fun to mess with.



"acfrogg" <(E-Mail Removed)> wrote in message
news:B4EC6809-3DDB-4100-80B4-(E-Mail Removed)...
| 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.
| >
| >
| > "Trevor L." <Trevor_L.@Canberra> wrote in message
| > news:(E-Mail Removed)...
| > | 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
| > |
| > |
| >
| >
| >


 
Reply With Quote
 
Trevor L.
Guest
Posts: n/a
 
      25th May 2006
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.


I know acfrogg has replied, but as a matter of interest

Yes, iframes are always open, but on my site I added a button which calls JS
to change the style to 'none'. This effectively closes the Iframe.

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'
}

As for collapsing paras, I am sure this could also be done. Unless acfrogg
has further questions though, I'll leave this for now.

--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Collapsible Lists eacordov Microsoft Word Document Management 1 24th Mar 2009 08:46 AM
Collapsible Paragraph =?Utf-8?B?Q29sbGVnZSBDb3Vuc2Vsb3I=?= Microsoft Frontpage 6 1st Feb 2005 01:27 PM
collapsible sections S P via AccessMonster.com Microsoft Access Forms 1 4th Dec 2004 02:16 PM
collapsible lists =?Utf-8?B?bHVja3lqc3c=?= Microsoft Frontpage 7 26th Oct 2004 08:45 PM
Collapsible Lists TPG Microsoft Frontpage 0 21st Oct 2004 09:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:45 PM.