Sitemap

Amicuk Programming Answers

Spry Collapsable Panel Question

-0001-11-30   Views:0

Advertisement

I just started using Spry and was wondering if there is an way to have a plus sign display next the the title when the panel is contracted but then when somebody clicks to open the content area it would change to a minus symbol? Thanks for your help

I just started using Spry and was wondering if there is an
way to have a plus sign display next the the title when the panel
is contracted but then when somebody clicks to open the content
area it would change to a minus symbol?
Thanks for your help in this matter.

The replay answer
Advertisement
Thanks... This mostly worked. The problem is that those
panel's which are preset to be open show the plus sign when the
should show the minus. As you can see here
http://www.ourbombers.com.
The minus only shows when you actually click to open a panel.
here is my css code.
.CollapsiblePanel {
margin-bottom: 2px;
padding: 0px;
border-left: solid 1px #CCC;
border-right: solid 1px #999;
border-top: solid 1px #999;
border-bottom: solid 1px #CCC;
/* This is the selector for the CollapsiblePanelTab. This
container houses
* the title for the panel. This is also the container that
the user clicks
* on to open or close the panel.
* The name of the class ("CollapsiblePanelTab") used in this
selector is not necessary
* to make the widget function. You can use any class name
you want to style an
* CollapsiblePanel panel tab container.
.CollapsiblePanelTab {
font: bold 0.7em sans-serif;
background-color: #DDD;
border-bottom: solid 1px #CCC;
margin: 0px;
padding: 2px;
cursor: pointer;
-moz-user-select: none;
-khtml-user-select: none;
background-image: url(images/plus.gif);
background-position: right;
background-repeat: no-repeat;
/* This is the selector for a CollapsiblePanel's Content
area. It's important to note that
* you should never put any padding on the content area
element if you plan to
* use the CollapsiblePanel's open/close animations. Placing
a non-zero padding on the content
* element can cause the CollapsiblePanel to abruptly grow in
height while the panels animate.
* The name of the class ("CollapsiblePanelContent") used in
this selector is not necessary
* to make the widget function. You can use any class name
you want to style a
* CollapsiblePanel content container.
.CollapsiblePanelContent {
margin: 0px;
padding: 0px;
font-size: 12px;
/* An anchor tag can be used inside of a CollapsiblePanelTab
so that the
* keyboard focus ring appears *inside* the tab instead of
around the tab.
* This is an example of how to make the text within the
anchor tag look
* like non-anchor (normal) text.
.CollapsiblePanelTab a {
color: black;
text-decoration: none;
/* This is an example of how to change the appearance of the
panel tab that is
* currently open. The class "CollapsiblePanelOpen" is
programatically added and removed
* from panels as the user clicks on the tabs within the
CollapsiblePanel.
.CollapsiblePanelOpen .CollapsiblePanelTab {
background-color: #EEE;
background-image: url(images/minus.gif);
background-position: right;
background-repeat: no-repeat;
/* This is an example of how to change the appearance of the
panel tab as the
* mouse hovers over it. The class "CollapsiblePanelTabHover"
is programatically added
* and removed from panel tab containers as the mouse enters
and exits the tab container.
.CollapsiblePanelTabHover, .CollapsiblePanelOpen
.CollapsiblePanelTabHover {
background-color: #CCC;
/* This is an example of how to change the appearance of all
the panel tabs when the
* CollapsiblePanel has focus. The "CollapsiblePanelFocused"
class is programatically added and removed
* whenever the CollapsiblePanel gains or loses keyboard
focus.
.CollapsiblePanelFocused .CollapsiblePanelTab {
background-color: #3399FF;

Go to See the other 3 answers

Hot
when i open adobe photoshop CS3 and flash CS3 a box appears saying " licensing for this product has expired. please reinstall or contact help" i have tried all the soutions and are at to "reinstalling" i dont have the disc or the code. [More]
I am trying to update the contacts on my iPhone, through iTunes, from my iMac.  iTunes is not showing many of the groups that I have in my contacts and when I default to just syncing all of my contacts, it doens't actually synce them all.  How do I f [More]
Hi Experts, i am running always into the same problem I want to create an Odata Channel with "SEGW" and Datamodel with an RFC import. RFC si GET_CPU_ALL but I am running always into the same problem when I want to generate the runtime. I don´t k [More]
I'm trying to set up AAA on a new ASA running 8.2(1) and I can't get the ACS (4.2(0) Build 124 Patch 6) and ASA keys to agree for TACACS+. I've done this before on a bunch of systems and it's always been a typo, but I've set both ends to a key of 'a' [More]
Hi, I have installed 9.0.3.1 and created the project from scratch. Previously I was using 903 which was very fast in bringing up my application in normail.debug mode. Now it is behaving very slow. the only difference is I am using CVS for my source c [More]
Version R12.1.3 I have created a new Event based alert, the Alert is not firing the action set. The SQL is working perfectly fine. But action set is not firing when I check from History. Could somebody provide me, if any Patches need to be installed. [More]
When I went to process my order I got a pop up window saying "default text has been found that has not been edited-printed books will not include this text. Question: How can I find out where it is detecting this problem? I have reviewed all the text [More]
I start a procedure when pressing a button in my Application Express form. This procedure take a while to run (about 10 min.) How can I avoid the browser to timeout with Error Code 1460: Timeout ? Is it possible to return to a page and let the proced [More]
I'm kind of confused about how WebTools is synching with Business One.  I deleted a 14 items in B1 and then ran a successful sync, which showed those 14 records as coming in with a Delete request.  What I don't understand is that those items are not [More]
Hi I had an interview , which the DBA team leader was asking me about my performance tuning expereince i was answering about my expereince in tuning the sqls and get a good statistics so the CBO choose the best plan, or even hint my sqls so i force t [More]