Adobe Dreamweaver Forums



Last 10 THreads :         OnRequest with CFC (Last Post : BKBK - Replies : 11 - Views : 12 )           »          CS4 crashes (Last Post : kadavila - Replies : 11 - Views : 12 )           »          add number to global variable? (Last Post : twistedpancreas - Replies : 0 - Views : 1 )           »          Accessing events from externally loaded swf file (Last Post : LuigiL - Replies : 2 - Views : 69 )           »          Re: Unloading SWFLoader... BUG??! (Last Post : LuigiL - Replies : 1 - Views : 2 )           »          Problem with navigateToURL to a certain frame (Last Post : Ibsie - Replies : 0 - Views : 1 )           »          html view - how to wrap the text (Last Post : lmckh - Replies : 1 - Views : 2 )           »          Help! Prob with CSS display (Last Post : hnajskmei - Replies : 0 - Views : 1 )           »          DW help urgently needed, lost my connection to site (Last Post : Ronnie MacGregor - Replies : 11 - Views : 12 )           »          Connecting to a Database (Last Post : Ronnie MacGregor - Replies : 11 - Views : 12 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver Extensions
 
Tags: ,



Reply
  #1 (permalink)  
Old 04-13-2008, 02:54 AM
Yael_K
 
Posts: n/a
Diggs:
Default spry accordion

Hi
I can't understand how to get the accordion to open a tab on mouse over. It
just opens now when it's clicked.
I found a lot of information on how to change the color of the text in css,
though! I wish there was more information about the java script.
-Thanks!!



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-13-2008, 02:54 AM
FreightGuy
 
Posts: n/a
Diggs:
Default Re: spry accordion

I'm also looking for this same answer. I've tried a few different things, but to no avail.
Reply With Quote
  #3 (permalink)  
Old 04-13-2008, 02:54 AM
FreightGuy
 
Posts: n/a
Diggs:
Default Re: spry accordion

After i posted, i decided to go back and check out a few more things, and
solved the mystery. In your SpryAccordion.js file, fine the section that says:

Spry.Widget.Accordion.prototype.onPanelClick = function(panel)
{
// if (this.enableKeyboardNavigation)
// this.element.focus();
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();
};

This is the code to open the accordion panel when you click on it. What we're
going to do is copy this part of the code:
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();

And then find the section for mouseover, which is up towards the top, and
paste it after the current code...it should look like this after we get done:
Spry.Widget.Accordion.prototype.onPanelTabMouseOve r = function(panel)
{
if (panel)
this.addClassName(this.getPanelTab(panel), this.hoverClass);
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();
};

And there you have it. Save your file and go have some fun!!!

Reply With Quote


  #4 (permalink)  
Old 04-13-2008, 02:55 AM
philway14
 
Posts: n/a
Diggs:
Default Re: spry accordion

You can actually accomplish this by finding these three lines in the javascript
and changing them as shown:

Spry.Widget.Accordion.addEventListener(tab, "mouseover", function(e) { return
self.onPanelTabClick(e, panel); }, false);

Spry.Widget.Accordion.addEventListener(tab, "click", function(e) { return
self.onPanelTabMouseOver(e, panel); }, false);

Spry.Widget.Accordion.addEventListener(tab, "mouseout", function(e) { return
self.onPanelTabMouseOut(e, panel); }, false);
}


Reply With Quote
  #5 (permalink)  
Old 05-06-2008, 10:05 PM
Garvin Lawrence
 
Posts: n/a
Diggs:
Default Re: spry accordion

Thanks FreightGuy, it worked perfectly, tried the other though it just stuck.

been looking for this for a while now, am happy now!

blessed
Reply With Quote
  #6 (permalink)  
Old 05-13-2008, 11:47 PM
christian231
 
Posts: n/a
Diggs:
Default Re: spry accordion

[q]Originally posted by: FreightGuy
After i posted, i decided to go back and check out a few more things, and
solved the mystery. In your SpryAccordion.js file, fine the section that says:

Spry.Widget.Accordion.prototype.onPanelClick = function(panel)
{
// if (this.enableKeyboardNavigation)
// this.element.focus();
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();
};

This is the code to open the accordion panel when you click on it. What we're
going to do is copy this part of the code:
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();

And then find the section for mouseover, which is up towards the top, and
paste it after the current code...it should look like this after we get done:
Spry.Widget.Accordion.prototype.onPanelTabMouseOve r = function(panel)
{
if (panel)
this.addClassName(this.getPanelTab(panel), this.hoverClass);
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();
};

And there you have it. Save your file and go have some fun!!![/q]

I know this is an old topic, but i've been trying to get this to work as was
Yael_K. Thanks Freight for that source because I just couldn't find the
settings for the accordian panel. Once I knew where to look I was able to
paste the code and it works like a dream now. Cheers.

Reply With Quote


  #7 (permalink)  
Old 05-18-2008, 08:28 PM
indy rob
 
Posts: n/a
Diggs:
Default Re: spry accordion

Very useful information. Thanks man! I was having a similar problem on a site I'm building for somebody right now. thanks.

http://www.indyonline.com
Reply With Quote
  #8 (permalink)  
Old 05-20-2008, 11:27 AM
wuhusihai
 
Posts: n/a
Diggs:
Default Re: spry accordion

[q]Originally posted by: FreightGuy
After i posted, i decided to go back and check out a few more things, and
solved the mystery. In your SpryAccordion.js file, fine the section that says:

Spry.Widget.Accordion.prototype.onPanelClick = function(panel)
{
// if (this.enableKeyboardNavigation)
// this.element.focus();
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();
};

This is the code to open the accordion panel when you click on it. What we're
going to do is copy this part of the code:
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();

And then find the section for mouseover, which is up towards the top, and
paste it after the current code...it should look like this after we get done:
Spry.Widget.Accordion.prototype.onPanelTabMouseOve r = function(panel)
{
if (panel)
this.addClassName(this.getPanelTab(panel), this.hoverClass);
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();
};

And there you have it. Save your file and go have some fun!!![/q]

I also have the same problem, but now has solved,. Thank you for your reply


________________________________________

http://www.dogbreedss.org | http://www.dogbreedss.org/puppy-names.htm |
http://dogforadoption.googlepages.com/puppys.htm

Reply With Quote
  #9 (permalink)  
Old 05-20-2008, 11:27 AM
puffymac01
 
Posts: n/a
Diggs:
Default Re: spry accordion

Thanks dude, you are freakin awesome. I've been looking for about a week trying to find how to do this.
Reply With Quote


  #10 (permalink)  
Old 05-23-2008, 07:59 PM
TareeInternet
 
Posts: n/a
Diggs:
Default Re: spry accordion

Hmm i couldn't seem to get it to work.
Reply With Quote
Reply


Thread Tools
Display Modes

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

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



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 01:04 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk