This is a discussion on "collapsible panel" within the JavaScript Forum section. This forum, and the thread "collapsible panel are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
collapsible panel
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
collapsible panel
I apologize if I have posted this in the wrong section wasn’t sure what it is. Anyway I was wondering if someone could help me out. I love the drop down panel at the top of this website http://www.toggle.uk.com/home/ could any one tell me how to achieve something like this. I know the spry assets are similar but the tab is on the top of them and I want the tab underneath so the content appears above the tab instead of below. Any way any ideas would be appreciated. Thanks in advanced.
|
|
|
|
|||
|
Re: collapsible panel
Hi Kela!
First of all, thanks for making your first "official" post on WebForumz! I have used this effect many times. It's very easy to use and is a snap to set up. You would want to read the documentation + study the demo before trying it. With the tab being underneath - in this case you make your tab with normal CSS and wherever you place your link on the page, once it's clicked it will appear. So if you have the link in your sidebar, clicking it would make the box come out of the top if that's where you placed it in your code. Have a look here. If you have any problems, feel free to post again. Thanks, Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
|
|
|||
|
Re: collapsible panel
hi Ed,
Cheers for the welcome and response. This is perfect just a lil problem as i dont have much of a clue when it comes to java script. Im fine with the HTML and css part but what do i do with the java script how do i link it to the code do i put it my html code or do i link it it as a seprate document if so how? |
|
||||
|
Re: collapsible panel
Kela, you can add the javascript in the <head> of your document:
Vivara, is this the code which produces the sliding effect on this page towards the top? http://mootools.net/
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: collapsible panel
Sorry Jack, I don't understand what you want to know?
------------------- Actually Kela, it is better to link to it externally. Your best bet is to name it something like slide.js, and link to it like this:
Ed.
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
|
|
||||
|
Re: collapsible panel
Yes sorry V I did not explain at all!
On the mootools home page, there is the panel with the sections 'Download' 'The Docs' 'The Blog' 'Keep Trac' and when you hover over one of them the rest slide away. How would I achieve a similar effect?
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: collapsible panel
tried both ways and it still doesnt want to work all looks the same just doesnt work
|
|
||||
|
Re: collapsible panel
You need to download the MooTools framework. However, I have never used this, so someone else can be of greater help here than me. Sorry.
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: collapsible panel
EDIT: You must download the Framework - sorry, I thought that would be obvious. http://mootools.net/download
Download everything - then link to it the same way as above. You must still use the script for fx.slide. ------- Are you using Domready? If not, you didn't take my advice and read the documentation! http://demos.mootools.net/ <- Read the main page. ------- Jack, that's a spiced up version of Fx.Elements. Ed.
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Last edited by Ed; Jan 24th, 2008 at 20:06. |
|
|||
|
Re: collapsible panel
no i read it all i have wrapped my js code with the dom ready but still not working. have i missed something else. sorry i suck at java dont use it very often.
window.addEvent('domready', function() { // HERE IS WHAT YOU READ IN JS CODE }); |
|
|||
|
Re: collapsible panel
So - you've downloaded the framework. Named it mootool.js (or whatever) and linked to it like above.
You've downloaded the script, named it slide.js (or whatever) and linked to it like above. You've added the domready to the top of your file and installed all CSS + used Correct HTML. Have you? We need a link, this can't be a "guessing" game. Thanks, Ed p.s: It's javascript, not java - two completely different things.
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
|
|
||||
|
Re: collapsible panel
I've worked with Mootools before (I say worked, I've used it
When I was trying to use their tooltips, it wasn't just a case of ticking tooltips on the download page. It also required a few extras to work (DomReady, Fx.Elements and a few others too). Now I've just tried what kela is trying to do and I can confirm this: If I link to the framework Mootools uses for it's demos (http://demos.mootools.net/demos/mootools.svn.js), everything works peachy. Now if I download my own copy of the framework and link to that, nothing. Not even if I ticked every box.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: collapsible panel
It works for me! Maybe you could just copy + paste what's there and upload it?
That would work. Ed.
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New Server New Control Panel :) | Ducky | Hosting & Domains | 2 | Apr 17th, 2008 00:55 |
| Logo in address panel | thriftyspider | Web Page Design | 4 | Aug 30th, 2007 15:19 |
| Shopping cart with with control panel | Lchad | E-Commerce and Business | 4 | Jun 5th, 2007 21:13 |
| Atlanta (May 17th): Need PHP Advocate for Panel Discussion | MikeSchinkel | PHP Forum | 9 | May 10th, 2007 23:19 |
| Flash MX (Actionscript panel differences) Need help | autumn_whispers2me | Flash & Multimedia Forum | 3 | Jun 11th, 2005 07:15 |