Collapsible Spry Trouble

Hi everyone,
I've tried everything I can think of to fix this, to no
avail, so hopefully someone here can enlighten me.
The collapsible spry on my page is already expanded when the
page is opened, but I'd obviously rather have it collapsed for the
readers to decide whether to open it or not.
Here's the code, and if anyone can help, I'd really
appreciate any help.
Cheers!
Tom

From this page:
http://labs.adobe.com/technologies/spry/articles/collapse_panel/index.html
Set the default state of the panel
By default the Collapsible Panel widget is open when the web
page loads in a browser. You can, however, change the status of the
panel if you want the panel to be closed when the page loads.
Set the contentIsOpen option in the constructor as follows:
<script type="text/javascript">
var CollapsiblePanel1 = new
Spry.Widget.CollapsiblePanel("CollapsiblePanel1", { contentIsOpen:
false });
</script>
Ken Ford
Adobe Community Expert - Dreamweaver/ColdFusion
Fordwebs, LLC
http://www.fordwebs.com
"tomjamesgreen" <[email protected]> wrote in
message news:[email protected]...
> Hi everyone,
>
> I've tried everything I can think of to fix this, to no
avail, so hopefully
> someone here can enlighten me.
> The collapsible spry on my page is already expanded when
the page is opened,
> but I'd obviously rather have it collapsed for the
readers to decide whether to
> open it or not.
>
> Here's the code, and if anyone can help, I'd really
appreciate any help.
>
> Cheers!
> Tom
>
> @charset "UTF-8";
>
> /* SpryCollapsiblePanel.css - Revision: Spry Preview
Release 1.4 */
>
> /* Copyright (c) 2006. Adobe Systems Incorporated. All
rights reserved. */
>
> /* This is the selector for the main CollapsiblePanel
container. For our
> * default style, the CollapsiblePanel is responsible for
drawing the borders
> * around the widget.
> *
> * If you want to constrain the width of the
CollapsiblePanel widget, set a
> width on
> * the CollapsiblePanel container. By default, our
CollapsiblePanel expands
> horizontally to fill
> * up available space.
> *
> * The name of the class ("CollapsiblePanel") used in
this selector is not
> necessary
> * to make the widget function. You can use any class
name you want to style
> the
> * CollapsiblePanel container.
> */
> .CollapsiblePanel {
> margin: 0px;
> padding: 0px;
> border-left: solid 0px #CCC;
> border-right: solid 0px #999;
> border-top: solid 0px #999;
> border-bottom: solid 0px #CCC;
> width: 90px;
> }
>
> /* 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: #FFFFFF;
> border-bottom: solid 0px #CCC;
> margin: 0px;
> padding: 0px;
> cursor: pointer;
> -moz-user-select: none;
> -khtml-user-select: none;
> width: 90px;
> }
>
> /* 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;
> width: 90px;
> }
>
> /* 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;
> width: 90px;
> }
>
> /* 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: #FFF;
> width: 90px;
> }
>
> /* 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: #FFF;
> width: 90px;
> }
>
> /* 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: #FFF;
> width: 90px;
> }
>

Similar Messages

  • Creating Multiple Collapsible Spry Panels

    Hey all. I am quite happy with the Lawn and Bed Maintenance spry panel on the site that i'm creating.
    http://leaflandscaping.net/
    However when I create the other spry panels, the content is different from the first one. I don't quite understand since it's linked to the same css code. Is there a work around? Please help, Thanks.

    Your CSS applies only to your first panel as per
    #wrapper #bodycontent #paragraph #CollapsiblePanel2 .CollapsiblePanelContent p {
        font-size: 14px;
        color: #FFF;
        font-family: Calibri;
        margin-top: 1em;
        margin-right: 1em;
        margin-bottom: 2em;
        margin-left: 3em;
        padding-bottom: 4em;
    Just change the first line to
    .CollapsiblePanelContent p {
    Gramps

  • Expand collapsible tabbed spry to fill div..

    I currently have a div with width 700px and height 500px and i have inserted several collapsible sprys 1 above the other with the dimension of tab being 150x700px and the content 350x700px. When i click the tab of the first collapsible spry the content drops down to fill the div but with the second and so on the spys are half off the screen. Is there way so that when you click any of the collapsible spry they all expand centrally within the div?

    Hi thanks here is a link to my site you will notice a scrolling div with 2 collapsible spys in it.
    the first spry expands and fills the div
    the second spry is off the bottom you have to scroll down
    is there a way to make all sprys expand to fill the div??
    David
    From: altruistic gramps
    Sent: Tuesday, March 08, 2011 11:34 PM
    To: david phoenix
    Subject: expand collapsible tabbed spry to fill div..
    Please supply a link to your site/page
    Gramps

  • Spry and onTabMouseOver / onTabMouseOut functions

    I added to my page a Collapsible Spry Panel and i was looking for a solution to fix the javascript code using the commands onTabMouseOver and onTabMouseOut instead of onTabClick
    Just to explain better, i want to add an automatic opening when you put the mouse over the CollapsiblePanelTab ; then an automatic closing when you put the mouse out from the CollapsiblePanelContent
    The problem i found is that i was able to add a rule for the automatic opening, but there are some problems in the auto-closing.
    The original code is this (line 148):
    Spry.Widget.CollapsiblePanel.prototype.onTabClick = function(e)
    if (this.isOpen())
    this.close();
    else
    this.open();
    this.focus();
    return this.stopPropagation(e);
    and i susbstituted it with this code:
    Spry.Widget.CollapsiblePanel.prototype.onTabMouseOver = function(e)
    if (this.isOpen())
    this.close();
    else
    this.open();
    this.focus();
    return this.stopPropagation(e);
    Now the CollapsiblePanelContent can be opened when i put the mouse over the CollapsiblePanelTab.
    So i tried to add this code also:
    Spry.Widget.CollapsiblePanel.prototype.onTabMouseOut = function(e)
    if (this.isOpen())
    this.close();
    else
    this.open();
    this.focus();
    return this.stopPropagation(e);
    With this when i move the mouse outside the CollapsiblePanelTab, i can auto-close the CollapsiblePanelContent .. but it's not really what i was looking for; infact i need to put a Menù in the CollapsiblePanelContent and with that rule if i move the mouse on the CollapsiblePanelContent, the script consider the CollapsiblePanelContent oustside the CollapsiblePanelTab so the CollapsiblePanelContent disappears when i try to move the mouse on it.
    Is there a solution to apply the auto-closing function to the CollapsiblePanelContent and not to the CollapsiblePanelTab using onTabMouseOut?
    Sorry, completely a newbie with the javascript.. thanks in advance

    thanks Ben, i did it!
    this is the correct code (leaving the original SpryCollapsiblePanel.js unmodified)
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <div id="CollapsiblePanel1" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0" onMouseOver="CollapsiblePanel1.open();" >Tab</div>
    <div class="CollapsiblePanelContent" onMouseOut="CollapsiblePanel1.close();">Content</div>
    </div>
    <script type="text/javascript">
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", { contentIsOpen: false });
    </script>
    </body>
    </html>
    Now putting the mouse on the PanelTab, the PanelContent opens by itself ;
    and moving the mouse outside the PanelContent, the PanelContent closes by itself !
    Exactly what i was looking for
    Thanks Again

  • Why is Spry Tabs dropping below content out of view and back during page load.

    Hello everyone, I'm having some
    Spry Trouble. This is happening only in IE 7.
    When the page loads, you'll notice that the tabs will
    collapse before coming back to it's designated position.
    This ruins the visual appeal. Again I don't know why this
    happens but the tabs at the bottom of the content will quickly drop
    below out of view and then jump back under the content.
    Here is the URL
    http://www.patrickjudson.com/weddingIndex2.php
    Any ideas why this is happening?
    Thanks everyone - Patrick

    quote:
    Originally posted by:
    Newsgroup User
    Webethics wrote:
    > Hello everyone, I'm having some
    Spry Trouble. This is happening only in
    > IE 7.
    > When the page loads, you'll notice that the tabs will
    collapse before coming
    > back to it's designated position.
    > This ruins the visual appeal. Again I don't know why
    this happens but the tabs
    > at the bottom of the content will quickly drop below out
    of view and then jump
    > back under the content.
    >
    > Here is the URL
    http://www.patrickjudson.com/weddingIndex2.php
    I don't see the collapse issue on my end. About the only
    visual thing going on is that the background image of the tabs
    appears later than the text, but not sure that's an issue that's
    particular to the Spry code on the page.
    Perhaps it's related, or perhaps not, but in my IE7, I get an
    error on the page. It states:
    Line: 48
    Char: 3
    Error: Object required
    Code: 0
    URL:
    http://www.patrickjudson.com/weddingIndex2.php
    I only see HTML code at line 48 both in the source code, and
    even if I pull the generated content view source from Firefox. I
    checked line 48 of both of your attached JS files and neither
    seemed to be an obvious issue. I even saved a local copy of the
    page, and didn't get an error at all. The line of code in the HTML
    does seem to be the end of the div that contains your music player,
    maybe it's causing an issue in IE, not sure.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert
    So why is there an error in IE7 saying object required.
    What does this mean, and what are the side effects?
    Any idea?
    Patrick

  • 2 sprys on 1 page not working in ie8

    I have 2 sprys on this page http://www.amdf.org.au/mito-info.htm - it all works fine in all other browsers but the main menu won't work in ie8 when I add the second collapsible spry.
    If I delete the collapsible spry it works fine, I'm using Dreamweaver CS5.
    Any ideas?
    Thanks in advance.

    You are indeed a genius!!! Works great...thankyou
    Also thanks for spotting typo - I've heard Ustralia is a fine place though!!
    Guess I should use spell check...

  • Can this page be made all in Dreamweaver?

    http://www.mammothmountain.com/MyMammoth/?section=weather
    I like the collapsing panels, and especially the folder-like tabs under the "WEATHER" section. Are these tabbed folders ("Extended Forecast", "Resources", "Road Conditions") collapsible Spry panels or something else? Are they made with custom graphics or can DW make folder-like tabs like this?
    I'm not making any sense out of the source code, what is CSS, what is Spry.  I like the white-on-white with subtle dropshadows. Are these dropshadows CSS or custom graphics? Is this entire page creatable in Dreamweaver alone?
    tia

    If you have a good grasp of Photoshop or Fireworks for graphics, HTML, CSS and JavaScript or  jQuery script libraries, you can do it in DW or any other HTML editor.  The quality of websites you create depends on the skills you bring to the table.
    HTML = content
    CSS or Cascading Stylesheets = styles
    JavaScripts, Spry, Ajax, DHTML = functionality and interactivity
    I like the white-on-white with subtle dropshadows. Are these dropshadows CSS or custom graphics?
    Your example uses custom graphics, but box-shadows and text-shadows are possible with CSS3 code alone.
    http://alt-web.com/DEMOS/CSS-Shadows.shtml
    I like the collapsing panels, and especially the folder-like tabs under the "WEATHER" section.
    Those are Tabbed Panels.  You could use jQuery, or DW's built in Spry Tabbed Panels for this.
    Start here:
    HTML & CSS Tutorials - http://w3schools.com/
    Creating  your first website in DW CS4 -
    http://www.adobe.com/devnet/dreamweaver/articles/first_cs4_website_pt1.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Website shifting

    im sure there is some incredibly simple way to fix this, but since i dont know how to google this problem, figured i'd ask for help.
    anytime i make a website that goes past the monitor, the whole site shifts over to the left. its not much of a shift, just three to five pixels. always seems to happen regardless of how many sites i make. usually i let it be, but since im using a collapsible spry, when it opens, it goes below the moniter and shifts in an obvious way. rather unprofessional looking. so...is there some way to get this to stop happening?

    It actually shifts more pixels than that beacuse it moves over to make room for the scroll bar when the page is longer than the browser window.
    There are several different css fixes for this. Here is a couple (and there is more):
    html {
    min-height: 101%;
    or
    html {
    overflow-y: scroll;
    Either works fine. But as I mentione there is plenty of other css fixes for it if you google the right phrase ;-)
    Brad Lawryk
    Adobe Community Professional: Dreamweaver
    Northern British Columbia Adobe Usergroup: Manager

  • Spry Collapsible Panel Rotation

    I have been looking through many tools that have came with Dream Weaver and the spry collapsible panel would look great in my site but im having trouble putting it in the way I would like it to look.  Im trying to insert the spry so that the tabs are read verticaly and open horizantaly with all of its contents being able to be read normaly instead of verticaly. What would I have to edit to to do this?

    To convert the Spry Collapsible Panel would require a lot of changes in the JS. It is therefore better to find a ready-made solution such as here http://www.portalzine.de/Horizontal_Accordion_Plugin_2/index.html
    Gramps

  • Jqzoom widget inside spry collapsible panel

    I am attempting to place the jqzoom widget inside a spry collapsible panel. The wodget works fine in the html page created for it but will not work in the collapsible oanel page. I believe all documents are in the appropriate folder.
    Here is the code for the page:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="twoColFixLtHdr.css" rel="stylesheet" type="text/css" />
    <LINK rel=stylesheet type=text/css href="css/jquery.jqzoom.css">
    <style type="text/css">
    #leftbox {
    float: left;
    width: 70%;
    margin-left: 5px;
    #rightbox {
    float: right;
    width: 25%;
    </style>
    <script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
    <script src="js/jquery-1.3.2.js" type="text/javascript"></script>
    <script src="js/jquery.jqzoom1.0.1.js" type="text/javascript"></script>
    <style type="text/css">
    a:hover {
    color: #C36;
    a:active {
    color: #999;
    #wrapper #outsideedgewrapper #outsidebox .container .content #CollapsiblePanel1 .CollapsiblePanelTab strong {
    text-align: left;
    #wrapper #outsideedgewrapper #outsidebox .container .content p strong {
    color: #333;
    #wrapper #outsideedgewrapper #outsidebox .container .content p {
    color: #000;
    #topofpage {
    width: 100px;
    font-size: small;
    float: right;
    </style>
    <link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    function MM_goToURL() { //v3.0
      var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
      for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    </script>
    <style type="text/css">
    a:visited {
    color: #333;
    a:hover {
    color: #C36;
    a:active {
    color: #999;
    .outsidebox {
    width: 1120px;
    margin-right: auto;
    margin-left: auto;
    background-repeat: no-repeat;
    background-position: left 90px;
    </style>
    <script src="javascript/jquery-1.4.3.min.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryTooltip.js" type="text/javascript"></script>
    <style type="text/css">
    </style>
    <link href="SpryAssets/SpryTooltip.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    h2 {
    font-size: x-large;
    #wrapper #outsideedgewrapper #outsidebox .container .footer h5 a {
    text-align: center;
    #wrapper #outsideedgewrapper #outsidebox .container .footer h5 a {
    </style>
    <link href="2LinkColor.css" rel="stylesheet" type="text/css" />
    <link href="css/jqzoom.css" rel="stylesheet" type="text/css" />
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2148522" binding="#iridology2" />
    </oa:widgets>
    -->
    </script>
    </head>
    <body>
    <div id="wrapper">
      <div id="outsideedgewrapper">
        <div class="outsidebox" id="outsidebox">
          <div class="container">
            <div class="header"><!-- end .header -->
              <p><em><a name="topofpage" id="topofpage"></a></em></p>
    <p> </p>
              <p> </p>
              <p> </p>
              <p><br />
                <br />
              </p>
            </div>
             <div class="sidebar1">
              <p> </p>
              <ul class="nav">
                <li><a href="index.html"><strong>Home</strong></a></li>
                <li><a href="PDf/GAIL SMOLINSKIS EDUCATION - 2010.pdf" target="_new"><strong>Dr. Gail's Education &amp; Credentials(Pdf )</strong></a></li>
    <li><a href="philosophyofregeneration.html"><strong>Sunrider Philosophy of Regeneration&#8482;</strong></a></li>
                <li><a href="Homeopathy.html"><strong>Homeopathy</strong></a></li>
                <li><a href="LowIntensitylasertherapy.html" target="_new"><strong> Low Intensity Laser Therapy</strong></a></li>
              </ul>
    <strong>Dr. Gail Smolinski, DNM®</strong><br />
               Doctorate of Natural Medicine®<br />
               <br />
               Email<br />
               <a href="mailto:[email protected]" class="sidebarlinkcolor">[email protected]</a> <br />
               <br />
               <span class="white"><strong>PH:306-783-1261</strong></span><br />
               Fax:
               306-783-2450<br />
               Box 1625<br />
               Yorkton, SK<br />
               S3N 3L2<br />
      <br />
               <strong>Clinic Hours</strong><br />
               Monday - Friday<br />
               9am - 6pm
               <br />
               <br />
               <span id="sprytrigger1"><strong>Coming Events</strong></span><br/>
              </p>
            </div>
            <!-- end .sidebar1 --></p>
            <div class="content">
              <div>
                <h2>An Ounce of Prevention Natural Health Center</h2>
              </div>
              <div id="rightbox"><img src="images/gaigrey3.jpg" width="186" height="295" align="top" id="Image2" /></div>
              <p><em>&quot;The doctor of the future will give no medicine, but will interest her or his patients in the care of the human frame, in a proper diet, and in the cause and prevention of disease.&quot;<br />
              Thomas A. Edison  (1847 - 1931)</em></p>
              <p>Dr.  Gail Smolinski, a <span class="focusedtext">Doctor of Natural Medicine</span>, has a natural  health clinic at Yorkton, Saskatchewan.       
              </p>
              <p>Dr. Gail  Smolinski is a member in good standing of the <br />
              <span class="focusedtext">Examining Board of Natural Practitioners of Canada</span> (EBNMP) <a href="http://www.ebnmp.com" title="http://www.ebnmp.com/" target="_blank"><strong>www.ebnmp.com</strong></a>,  the <span class="focusedtext">Saskatchewan Association of Doctors  of Natural Medicine (SADNM) </span><a href="http://www.sadnm.com/" title="http://www.sadnm.com/" target="_blank"><strong>www.sadnm.com </strong></a>and the <span class="focusedtext">International Organization of Nutritional  Consultants</span> (IONC) <a href="http://www.ionc.org" title="http://www.ionc.org/" target="_blank"><strong>www.ionc.org</strong></a></p>
              <p>Doctors of  Natural Medicine utilize treatments and lifestyle changes that facilitate the  natural healing process, recognizing the inherent self-healing process in every  person.<em> <a href="http://www.sadnm.com/" target="_new"><strong>More information....</strong></a></em></p>
              <p>In her natural  health clinic, Dr. Gail offers individual health consultations, Low Intensity  Laser Therapy, detoxification foot baths and bio-energetic therapies, as well  as a wide variety of professional health products.</p>
              <p>Dr. Gail has her <span class="focusedtext">Doctor of  Naturopathy</span> degree and is <span class="focusedtext">B</span><strong><span class="focusedtext">oard Certified in both Traditional Naturopathy and  Nutritional Wellness</span>.</strong></p>
              <p>She is a <span class="focusedtext">certified Low  Intensity Laser Therapist</span>, offering patients safe and effective Low  Intensity Laser therapy for soft tissue and sports injuries, wound healing,  dermatological conditions and a variety of musculoskeletal problems. <a href="http://www.bioflexlaser.com/patients/" target="_new"><strong><em>More  information...</em></strong></a></p>
              <p>She is a <span class="focusedtext">Master Herbalist</span>, specializing in Sunrider  Chinese food grade herbs which promote regeneration of the body. Dr. Gail also  utilizes Gemmotherapy and Aromatherapy.       </p>
              <p>Dr. Gail is also a Registered Nutritional Consultant,  a professional <span class="focusedtext">Homeopath</span> and a <span class="focusedtext">Holistic  Iridologist</span>. </p>
              <p>Her bi-weekly column <span class="CollapsiblePanelClosed"><em>&ldquo;An Ounce of Prevention&rdquo;</em></span> can be  found in the <em>&ldquo;News Review Extra&rdquo; </em>and the <em>&quot;Northeast Chronicle&quot;</em>. </p>
              <p>Dr. Gail is also available  for <span class="focusedtext">public  speaking</span> engagements. She has been the keynote speaker for many  groups, specializing  in topics that address <span class="focusedtext">the body</span> (health and nutrition), <span class="focusedtext">the mind</span> (motivational speaking) and <span class="focusedtext">the  spirit</span> (sharing her Bible-based faith). </p>
              <p><strong>CLINIC SERVICES</strong></p>
              <p>Dr. Gail is  available for individual health consultations by appointment. She does  nutritional assessments, as well as iridology and homeopathy. Dr. Gail's professional supplements include herbal and homeopathic formulas, Gemmotherapy remedies and therapeutic grade essential oils. She also offers   detoxification footbaths to reduce the load of toxins in the body.</p>
              <p>Although an  in-clinic visit is the most effective, Dr. Gail can also help people who cannot  travel to see her, due to long distances or poor health. In these cases, she  offers telephone assessments to create an appropriate custom-made individual  health program, which is suited to the patient’s particular needs. The required  health supplements can be mailed or shipped by bus, if necessary. </p>
              <p>Gift Certificates are also available.</p>
              <p><strong>FREQUENTLY ASKED QUESTIONS</strong></p>
              <div id="CollapsiblePanel1" class="CollapsiblePanel">
                <div class="CollapsiblePanelTab" tabindex="0">
                  <p><strong><a name="panel1" id="panel1"></a><img src="images/arrow.gif" width="30" height="23" hspace="8" />Can you explain what Homeopathy is all about?</strong></p>
                </div>
                <div class="CollapsiblePanelContent">
                  <p><br />
                    <br />
                  </p>
                  <p>Homeopathy is a  wonderful system of natural medicine which is safe, non-toxic and effective. It  is so safe that expectant mothers and newborn babies can use it, except for a  few specific remedies. </p>
      <p>A homeopathic  remedy contains a very minutely diluted dose of the original medicinal  ingredient, and that is why it is so safe. The higher potencies of a remedy do  not even have any of the original substance in them, only the memory or energy  from it. The purpose of a homeopathic remedy is to give specific information to  the body. Then, the body can use this information to heal and repair.</p>
                  <p>A homeopathic  remedy can be selected <em>according to the  symptoms</em>. It can also be selected <em>according  to the patient’s constitution</em>, which considers many factors about an  individual. </p>
                  <p>Food preferences,  general features, personality and temperament, such as whether he wants to be  left alone or comforted when he does not feel well, what makes his symptoms  better and what makes them worse, even a person’s fears, are considered,  because they are all part of who that unique individual is. A person’s  constitutional remedy will help him with a lot of different symptoms, because  it was selected especially for him.</p>
                  <p>I would not want to be without homeopathic  remedies. You can take them as required, without  worrying about side effects. They can make your life so much more comfortable.  They can be used to stimulate your immune system, so that, eventually, you do  not require them as often, if at all. For example, during allergy season,  people can get a lot of relief from homeopathic formulas for allergies.<br clear="all" />
                  </p>
                  <p>Homeopathic  medicine can also help with mental and emotional symptoms, not only physical  problems. For example, homeopathic remedies can be helpful for those who are  anxious, depressed or even grieving.    <br />
                  <a href="#panel1" class="closepanelbutton" onclick="CollapsiblePanel1.close();MM_goToURL('parent','#panel1');return document.MM_returnValue">Close Panel</a></p>
                  <p> </p>
                </div> 
              </div>
              <div id="CollapsiblePanel2" class="CollapsiblePanel">
                <div class="CollapsiblePanelTab" tabindex="0">
                  <p><strong><img src="images/arrow.gif" alt="" width="30" height="23" hspace="8" />What is Gemmotherapy?</strong></p>
                </div>
                <div class="CollapsiblePanelContent">
                  <p> </p>
                  <p> </p>
                  <p>Gemmotherapy is a branch of phytotherapy (therapy from   plants) that uses freshly- picked buds and young shoots from organic trees and   shrubs to make natural remedies. They are carefully stabilized at harvest to   ensure that no vitamins, minerals, natural plant hormones or nucleic acids are   lost. These remedies are full of the energy and therapeutic properties of the   buds.  They are meticulously prepared in a solution of water, alcohol and   glycerine to extract all their beneficial attributes. </p>
                  <p><a href="#" class="closepanelbutton" onclick="CollapsiblePanel2.close();MM_goToURL('parent','#panel1');return document.MM_returnValue">Close Panel</a></p>
                </div>
              </div>
              <div id="CollapsiblePanel7" class="CollapsiblePanel">
                <div class="CollapsiblePanelTab" tabindex="0">
                  <p><strong><img src="images/arrow.gif" alt="" width="30" height="23" hspace="8" />Why is Gemmotherapy so effective?</strong></p>
                </div>
                <div class="CollapsiblePanelContent">
                  <p> </p>
                  <p>Gemmotherapy is highly effective because the buds and young   shoots contain all the genetic information of the future plant. Since they are   extracts of developing tissues, gemmotherapy remedies combine the properties of   the whole plant, including the flowers, the leaves, the fruits, the sapwood and   the rootlets. Extensive research and clinical studies have been carried out to   identify the properties of different buds and to determine the conditions for   which each one is best used.</p>
                  <p>This explains the wide range of applications and   effectiveness of Gemmotherapy remedies for all ages.</p>
                  <p><a href="#panel1" class="closepanelbutton" onclick="CollapsiblePanel7.close();MM_goToURL('parent','#panel1');return document.MM_returnValue">Close Panel</a></p>
                </div>
              </div>
      <div id="CollapsiblePanel3" class="CollapsiblePanel">
        <div class="CollapsiblePanelTab" tabindex="0">
          <p><strong><img src="images/arrow.gif" alt="" width="30" height="23" hspace="8" id="Image1" />What is Iridology and how does it work?</strong></p>
          </div>
        <div class="CollapsiblePanelContent">
          <p><br />
            <br />
            Iridology is a  fascinating natural tool of health assessment. The more I do iridology, the  more accurate I see that it is!</p>
          <p>Iridology involves  looking into a person’s eyes with a light and magnifying lens. I can do a  health assessment by looking into the colored part of the eyes, which is called  the iris. </p>
          <p>In iridology,  there is a map of the iris, which corresponds to the different organs and      </p>
          <p>structures of the body. Iridology Chart <span class="jqZoomWindow"><a href="jquery-ui-1.7.2/images/BIG_IMAGE.jpg"  title="Iridology" class="iridology2">
            <script type="text/javascript">
    // BeginOAWidget_Instance_2148522: #iridology2
    $(document).ready(function(){
          var options ={
          zoomType: 'standard',
          zoomWidth: 200, 
          zoomHeight: 200,
          xOffset: 10,
          yOffset: 0,
          position: "left" ,
          lens:true,
          lensReset : false,
          imageOpacity: 0.2,
          title : false,
          alwaysOn: false,
          showEffect: 'show',
          hideEffect: 'hide',
          fadeinSpeed: 'medium',
          fadeoutSpeed: 'medium',
          preloadImages :true,
          showPreload: true,
          preloadText : 'Loading zoom',
          preloadPosition : 'center'
          $(".iridology2").jqzoom(options);
    // EndOAWidget_Instance_2148522
            </script>
            <img src="jquery-ui-1.7.2/images/SMALL_IMAGE.jpg" align="left" title="Iridology" /> </a></span>
            <script type="text/javascript">
    // BeginOAWidget_Instance_2148522: #iridology2
    $(document).ready(function(){
          var options ={
          zoomType: 'standard',
          zoomWidth: 200, 
          zoomHeight: 200,
          xOffset: 10,
          yOffset: 0,
          position: "left" ,
          lens:true,
          lensReset : false,
          imageOpacity: 0.2,
          title : true,
          alwaysOn: false,
          showEffect: 'show',
          hideEffect: 'hide',
          fadeinSpeed: 'medium',
          fadeoutSpeed: 'medium',
          preloadImages :true,
          showPreload: true,
          preloadText : 'Loading zoom',
          preloadPosition : 'center'
          $(".iridology2").jqzoom(options);    
    // EndOAWidget_Instance_2148522
            </script>
            </a></p>
    <p><br />
      <br />
      </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p><br />
      <br />
      <br />
      It can be used to  help determine problem areas in the body, which may have been acquired  genetically. It can also be used to identify areas of congestion and  environmental toxins that have accumulated in the body since birth, such as  liver or kidney toxins. </p>
          <p>For instance, one  of my clients was having continual problems with a sluggish bowel, which was  not improving in spite of my health recommendations for her colon. When I did  an iridology assessment for her, though, I discovered that the problem was  originating in the small intestine. I adjusted her health program accordingly,  and she did much better after that!<br />
            <br />
            <a href="#panel1" class="closepanelbutton" onclick="CollapsiblePanel3.close();MM_goToURL('parent','#panel1');return document.MM_returnValue">Close Panel</a></p>
          </p>
          </div>
      </div>
              <div id="CollapsiblePanel4" class="CollapsiblePanel">
                <div class="CollapsiblePanelTab" tabindex="0">
                  <p><strong><img src="images/arrow.gif" alt="" width="30" height="23" hspace="8" />Can Iridology be used preventatively?</strong></p>
                </div>
                <div class="CollapsiblePanelContent">
                  <p><br />
                    <br />
                  Absolutely! It can  be very valuable for prevention! Let’s say that you are in a canoe, enjoying a  relaxing, peaceful ride down a calm, scenic river on a beautiful summer day.  Meanwhile, I am riding in an airplane, just above the same river, and I can  spot you in your canoe. </p>
                  <p>However, I can  also see that, around the next bend, there is a set of swirling rapids and a  very steep, dangerous waterfall. </p>
                  <p>You have no idea of what you are headed for, but  I can warn you. Fortunately, since we both have cell phones, I can call you  immediately, to warn you of the imminent danger.  You can decide then to pull onto the shore, and check out the rapids before  deciding whether or not to proceed. Or you can decide to turn the canoe around,  and head back the other way. You can also choose to ignore me, of course, but,  no matter what you choose, you will have been warned!</p>
      <p>In Iridology, for  instance, if I see that a person has a congested or toxic bowel, I can advise  him to do a colon cleanse. <a href="PDf/EYE SPY.pdf" target="_new">More information</a><br />
        <a href="#panel1" class="closepanelbutton" onclick="CollapsiblePanel4.close();MM_goToURL('parent','#panel1');return document.MM_returnValue">Close Panel</a></p>
      <p> </p>
                </div>
              </div>
              <div id="CollapsiblePanel5" class="CollapsiblePanel">
                <div class="CollapsiblePanelTab" tabindex="0">
                  <p><strong><img src="images/arrow.gif" alt="" width="30" height="23" hspace="8" />How do you combine the different therapies to help patients?</strong></p>
                </div>
                <div class="CollapsiblePanelContent">
                  <p><br />
                    <br />
                    <br />
                  That’s certainly part  of what makes my approach so effective! I can use Iridology to help pinpoint  the specific problems. Homeopathy and nutrition can be used as assessment tools  as well. It’s like having more than one tool in your tool kit. The more  professional tools one has, the better. </p>
                  <p>This allows me to  create an individualized health plan that incorporates different resources,  including nutritional supplements, essential oils, gemmotherapy formulas and homeopathic  remedies, as required. It is ideal to support the body on 3 different levels -  at the nutritional level, at the cellular level, and at the energetic level.</p>
                  <blockquote>
                    <p><a href="#panel1" class="closepanelbutton" onclick="CollapsiblePanel5.close();MM_goToURL('parent','#panel1');return document.MM_returnValue">Close Panel</a></p>
                    <p> </p>
                  </blockquote>
                </div>
              </div>
              <div id="CollapsiblePanel6" class="CollapsiblePanel">
                <div class="CollapsiblePanelTab" tabindex="0">
                  <p><strong><img src="images/arrow.gif" alt="" width="30" height="23" hspace="8" />Can you give me an analogy to compare our health to?</strong></p>
                </div>
                <div class="CollapsiblePanelContent">
                  <p><br />
                    <br />
                  Sure! Think of  your car. It won’t get you to your destination if you don’t have enough fuel to  get there. And it can’t be polluted fuel or watered down fuel, because that’s  just asking for trouble. Your fuel has to have the right octane rating. </p>
                  <p>Your body is like  a car; it’s your go-mobile! If you don’t supply it with the right fuel  (nutrition),you will lose your  get-up-and-go! When you nourish your body properly, you will naturally tend to  have more energy.  </p>
      <p>Even so, you can  fuel up your car with good quality fuel, but if the fuel pump needs repair,  then it’s still not going to work properly for you. If you have a body part  that needs repair, homeopathy can help. </p>
                  <p>We also give our  cars an oil change on a regular basis. Similarly, we can cleanse, regularly, to  clear out our organs, such as the liver, the kidneys, the skin and the  intestines, of toxins that accumulate over time.</p>
                  <p>We can also use  homeopathic formulas to clean out the receptors of the cells in our bodies,  which is where toxic residues can accumulate. Then, our go-mobiles can run more  efficiently! </p>
                  <p>There is one difference, though. We can trade in  our car, when it gets old and worn out. But, we cannot trade in our bodies! We  get one only, and it needs to last us a lifetime! So we  need to take care of it the best we can! <br />
                    <br />
                  <a href="#panel1" class="closepanelbutton" onclick="CollapsiblePanel6.close();MM_goToURL('parent','#panel1');return document.MM_returnValue">Close Panel</a></p>
                  <p> </p>
                </div>
                <strong><br />
              </strong></div>
      <p><strong>    PATIENT TESTIMONIALS</strong></p>
              <table width="90%" border="0" align="center" cellpadding="10">
                <tr>
                  <td><h5><em>...My acquaintance with Dr. Gail Smolinski happened in two ways. First, through her bi-weekly news column, &quot;An Ounce of Prevention&quot; in the News Review Extra: giving information on healthful living and explaining how our amazing bodies work. Dr. Gail's smiling photo also introduced her to me.
                    My by-mail purchase of a flu kit from Dr. Gail protected me from contracting any of the flu bugs making the rounds this winter. Thanks, Dr. Gail! <br />
                    My second acquaintance with Dr. Gail was a visit to her natural health clinic for treatments. Her smile is sunny and real! She introduced me to homeopathic remedies and the impressive Quantum Biofeedback machine. Dr. Gail is a very encouraging caregiver. I am very pleased to have much-improved  Health and I've also gained a new friend! </em></h5>
                    <h5><em>Sincerely, Shirley L. </em>              _______________________________________________________________</h5>
      <h5><em>...Hi! My name  is Carol. I have IBS (Irritable Bowel Syndrome). IBS controlled my life.</em></h5>
                    <h5><em>Before I  went to Dr. Gail Smolinski, I could not work, go shopping or do things with my  family. But I got mad and took control of the IBS!</em></h5>
                    <h5><em>I called Dr.  Gail Smolinski, DNM. We sat down and we talked about how I felt. She gave me  some natural medicine. I have been on this for about 5 months.</em></h5>
                    <h5><em>I feel so  good about the things I got. The natural medicine has helped me out a lot. I  can go to work without looking for the bathrooms. I can do the things I was  afraid to do! I feel like I’m alive!</em></h5>
                  <h5><em>I went to my  doctor, and it seems they couldn’t help. But Dr. Gail Smolinski helped me.  Thank you, Dr. Gail!  </em></h5></td>
                </tr>
              </table>
              <p> </p>
              <h5 class="fltrt"><a href="#topofpage">Top of Page</a><br />
              <!-- end .content -->        </h5>
            </div>
            <script type="text/javascript">
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:false, enableAnimation:false});
    var CollapsiblePanel3 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel3", {contentIsOpen:false});
    var CollapsiblePanel4 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel4", {contentIsOpen:false});
    var CollapsiblePanel5 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel5", {contentIsOpen:false});
    var CollapsiblePanel6 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel6", {contentIsOpen:false, enableAnimation:false});
    var CollapsiblePanel2 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel2", {contentIsOpen:false, enableAnimation:false});
    var CollapsiblePanel7 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel7", {contentIsOpen:false});
            </script>
            <div class="footer">
              <h5 class="footer">Web Design by<a href="http://www.pixelsandpaper.com"> Pixels &amp; Paper Web Design </a><br />
    Copyright © 2011 An Ounce of Prevention Natural Health Center - All rights reserved <!-- end #footer -->
              </h5>
              <!-- end .footer --></div>
            <!-- end .container --></div>
        </div>
      </div>
    </div>
    <div class="tooltipContent" id="sprytooltip1">Meet Dr. Gail for a mini Iridology Session at the Grain Miller's Harvest Showdown in Yorkton, SK - Gallagher Centre- Flexihall - Nov. 2 (4pm to 7:30 pm), Nov. 3,4,5 (1pm to 7:30 pm) </div>
    <script type="text/javascript">
    var sprytooltip1 = new Spry.Widget.Tooltip("sprytooltip1", "#sprytrigger1");
    </script>
    </body>
    </html>

    With the exeption of images, to add external content to a document you will need to make use of either serverside or clientside code.
    Have a look at the SpryHTMLPanel here http://labs.adobe.com/technologies/spry/samples/htmlpanel/html_panel_sample.html
    Otherwise, please supply a link to your site so that we can come up with alternatives.
    Gramps

  • Spry Collapsible panel - open and closed default question...

    I am using a Spry Collapsible panel in a vertical nav menu (DW CS4) and it's in a template for my site. I want it to be closed as default on the Home page, but when a visitor clicks to open it and selects their option, I would like it to remain open on the selected page - Is there a way to do this?
    Thank you all!
    Aza

    Check out the examples on this page: http://www.spry-it.com/examples/spry-widget-cookie-history/#collapsiblepanel

  • How can I add more than one same spry menu (eg. collapsible menu)  with in different styles (font size, color, background, etc) on current page?

    How can I add more than one same spry menu (eg. collapsible menu)  with in different styles (font size, color, background, etc) on current page?

    Hi Nancy,
    This screenshot was only for imagination. A part of the code (not all) is below.  In the code there are some background images but they are not seem in live mode.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="css/my_site.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css"/>
    <link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
    <style>
    #CollapsiblePanel1 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-color: #003366;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel1 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        line-height: 52px;
    #CollapsiblePanel1 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        line-height: 52px;
    #CollapsiblePanel2 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/international.jpg);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel2 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel2 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel2 .CollapsiblePanelContent {
        background-color: blue;
    #CollapsiblePanel3 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel3 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel3 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel4 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel4 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel4 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel5 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel5 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel5 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    </style>

  • Target Named Anchor in a Spry Collapsible Panel from a different page

    Let me start by saying I have combed this forum (and others) looking for a resolution to this.  I am familiar with David Powers solution on Foundationphp.com and am using that code in project to open the collapsible panel from a separate page and it works beautifullly.  The problem I have is that I want the browser to move down to a specific named anchor inside that opened collapsible panel when clicked from a different page.
    Snippets of my current code here.
    Below is the code that I have on an image that when clicked goes to the correct page and opens Panel1.  Works Perfectly!
    <a href="bamboo-species.php?col1=open#CollapsiblePanel1"><img src="images/Content/Photos/HomeScroll/blackTmbor.jpg" width="227" height="175" /></a>
    Below is the link to the .js file and the script in the head of the target page
    <script type="text/javascript" src="SpryAssets/SpryURLUtils.js"></script>
    <script type="text/javascript">
    // Grabs the values of the URL parameters for the current URL.
    var params = Spry.Utils.getLocationParamsAsObject();
    </script>
    Below is the code that I have on the target page for Panel1
    <script type="text/javascript">
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:params.col1 ? true : false},{duration: 1000});
    </script>
    If I have a named anchor say <a name="species1" id="species1"></a> down in the page, how do I target that named anchor from my link on the separate page.  I have tried adding the #species1 to the end of the link on the link page (see below) but with no luck. I believe those were the instructions on foundationphp.com site.
    <a href="bamboo-species.php?col1=open#CollapsiblePanel1#species1"><img  src="images/Content/Photos/HomeScroll/blackTmbor.jpg" width="227"  height="175" /></a>
    I hope (and suspect) that this is an easy fix, I just do not know what it is.  Any help or direction where to look is greatly appreciated.

    I once had the same issue can created a small function that allows me to "jump" to a element.
    function scrollTo( element ){
         var stylize = function( element){ return !+"\v1" ? element.currentStyle : document.defaultView.getComputedStyle( element , null ) },
              getPosition = function( element ){
                   // based on the SpryEffect's module:
                   var computedStyle, tryComputedStyle,
                        position = { x: 0, y: 0 };
                        if ( element.style.left  && /px/i.test(element.style.left) ){
                             position.x = parseInt(element.style.left, 10); // without padding
                        } else {
                             computedStyle = stylize( element );
                             var tryComputedStyle = computedStyle && computedStyle.left && /px/i.test( computedStyle.left );
                             if (tryComputedStyle)
                                  position.x = parseInt( computedStyle.left, 10 ); // without padding, includes css
                             if(!tryComputedStyle || position.x == 0) // otherwise we might run into problems on safari and opera (mac only)
                                  position.x = element.offsetLeft;   // includes padding
                        if ( element.style.top && /px/i.test(element.style.top) )
                             position.y = parseInt( element.style.top, 10); // without padding
                        else
                             if ( !computedStyle )
                                  computedStyle = stylize( element );
                        var tryComputedStyle = computedStyle && computedStyle.top && /px/i.test( computedStyle.top );
                             if ( tryComputedStyle )
                                  position.y = parseInt( computedStyle.top, 10 ); // without padding, includes css
                             if( !tryComputedStyle || position.y == 0 ) // otherwise we might run into problems on safari and opera (mac only)
                                  position.y = element.offsetTop;   // includes padding
                   return position;
              scroll( 0, getPosition( element ).y );
    So now we have a scrollTo function that accepts a pure HTML element as argument, all what is left to do is figure out if we have a hash, and if the anchor exits on the page.
    ( hopes this works, i wrote it without testing, but you get the general idea ):
    if( window.location.hash ){
         var hash = window.location.hash.substr(1), // remove the # from the hash
         element;
         // as anchors can also be used with id attributes, check that first,
         element = document.getElementById( hash );
         // maby we used name="" attribute
         if( !element && ( element = document.getElementsByName( hash )) ){
              element = element[0];
         // if we have a match:
         if( element ){
              // give the collapsible panel some time to init and update the DOM;
              setTimeout(function(){ scrollTo( element ) },0);
    \o/

  • Link to tabs in spry collapsible panel work in IE-8; not Firefox or Safari

    I have little experience with Spry. I've asked my question on the user forum in Dreamweaver several times with no response. I am hoping that someone somewhere in the Adobe community can help me resolve this issue.
    I created links from the top of a page to the tabs of a spry collapsible panel underneath.
    In IE-8, on one page, with a small collapsiable panel, clicking the link creates a rollover effect on the appropriate panel. This effect works wonderfully for my purposes.On another page, with a long collapsible panel, clicking the link jumps the user to the panel AND creates a rollover effect. Perfect.
    In Firefox and Safari, clicking the link does nothing. If I right-click the link in Firefox, I create a duplicate of the page.
    I am using Windows XP and Dreamweaver CS4
    http://www.judydiamondstone.net/Writing.html
    click any of the links in the first section of the page
    Thanks.

    Arnout, Thank you so much for the guidance!
    My code now looks like this:
    (Click the first tab
    below to open; click to close.)
    but it still doesn't work
    (I still like the error effect in IE!)
    Do I need to add to the CSS or JS script that comes with the spry widget?
    I am accessing all the tutorials I can find, including a very clear
    explanation of event handlers in a Safari online search but I'm obviously
    missing one or more basic concepts.
    Page with new code on the
    elements:
    http://www.judydiamondstone.net/Writing.html

  • Google map inside the spry collapsible panel

    So this time I've bumped into interesting 'bug'. I've placed the google map inside the spry collapsible panel. Panel is set to the closed mode on load of page. When I open the tab, map appears, but address marker is hidden behind the top left corner. If I place the same map outside the collapsiple panel it renders all well.
    So my  question is whether there is any way around this issue. When I know where the marker is hidden I can simply move the map and see it, but customer who's not aware of the problem will see only blank map with not marked address which is not acceptable.
    cheers,
    Simon

    Sure mate. Here you go:
    <div id="CollapsiblePanel1" class="CollapsiblePanel">
                  <div class="CollapsiblePanelTab" tabindex="0">SHOW MAP</div>
                  <div class="CollapsiblePanelContent">
                  <cfmap  width="242" height="200" zoomlevel="12" name="mainMap" markercolor="333444" showscale="false"
    typecontrol="none"  showcentermarker="true" centeraddress="#get_event.event_address1#, #get_event.event_address2#, #get_event.event_city#,#get_event.event_county#, #get_event.event_postcode#, #get_event.event_country#  "
    ></cfmap>
                  </div>
                </div>
    And this bit goes at the bottom of the code :
    <script type="text/javascript">
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:false});
      </script>
    And that would be the preview that I get once the panel is open:
    And that is the preview of how it should look:
    As you can see the map marker sticks to the top left corner. I was wondering whether there is any way to re-focus it once the panel is open.
    cheers,
    Simon

Maybe you are looking for