PDA

View Full Version : Accordian not collapsing/expanding



biblestamps
04-24-2009, 09:31 PM
1) Script Title: Glossy Accordion

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-glossy.htm

3) Describe problem:

The menu isn't collapsing/expanding. So far, all I have changed is the paths to the image and .js files. I also deleted the hyperlink on the tabs that should be collapsing/expanding because I kept being redirected in my preview. :rolleyes: I did something to the coding that I found in a search result of these forums and that made it collapse but then it suddenly wasn't collapsed anymore and I don't remember what I did to do it again :o...however even when it was collapsed it still wouldn't expand. Also- the plus and minus signs aren't showing up and I am pretty sure I have the paths correct to those images.

The nav bar is uploaded here: (this is a site I just took over and am completely revamping)
http://www.bethelbaptistmarquette.org/MYBethel/side_navbar.html

the .js files are here:
http://www.bethelbaptistmarquette.org/MYBethel/includes/ddaccordian.js
http://www.bethelbaptistmarquette.org/MYBethel/includes/jquery.js

and the images in question are here:
http://www.bethelbaptistmarquette.org/MYBethel/images/plus.gif
http://www.bethelbaptistmarquette.org/MYBethel/images/minus.gif

Nile
04-24-2009, 10:09 PM
You're problem is here:


<script type="text/javascript" src="sripts/ddaccordion.js">

/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

</script>

biblestamps
04-24-2009, 10:18 PM
Ah- forgot to upload the most current nav_bar file. :o That got everything to collapse again, but it still is not expanding and the images are still missing.

Nile
04-24-2009, 10:26 PM
In includes/jquery.js, change:


// JavaScript Document/*
* jQuery JavaScript Library v1.3.2
* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
* Revision: 6246
*/

To:


/* JavaScript Document
* jQuery JavaScript Library v1.3.2
* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
* Revision: 6246
*/

biblestamps
04-24-2009, 11:13 PM
It works perfectly. Thank you! :)

Nile
04-24-2009, 11:19 PM
Glad to help you! Your welcome!

It seems your topic is solved... Please set the status to resolved.. To do this:
Go to your first post ->
Edit your first post ->
Click "Go Advanced" ->
Then in the drop down next to the title, select "RESOLVED"

biblestamps
04-25-2009, 01:04 AM
I just realized that it isn't working 100% correctly. The "css examples" tab will expand but not re-collapse. And the "css drive" tab, while it does have the plus sign will not expand.

http://www.bethelbaptistmarquette.org/MYBethel/side_navbar.php
http://www.bethelbaptistmarquette.or...ddaccordian.js
http://www.bethelbaptistmarquette.or...udes/jquery.js

:confused:

Nile
05-04-2009, 04:28 PM
Sorry for the late response, try recording navbar.php, and download ddaccordian, and jquery.js from the original page (or use http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js), and upload it.