Accordion Spry Widget default loading behaviour

Am using the accordion spry widget to display some
spring/summer courses and
I need all panels closed when the page first loads. I've
tried to find the
relevant code, but have not been successful in changing it to
make this
work. If I change the behaviour of the 'this.defaultPanel'
the whole
accordion stops working. How can I change the accordion
behaviour to have
all panels closed at page load?
Thanks for any help.
Marianne

Hello! I have been reading up on this and playing around with
the code for a few hours now and I can't seem to make it work.
Basically I would like to have the accordion load collapsed, and
get rid of the fixed height. Any clue what I'm missing?
Thanks!
Hello! I have been reading up on this and playing around with
the code for a few hours now and I can't seem to make it work.
Basically I would like to have the accordion load collapsed, and
get rid of the fixed height. Any clue what I'm missing?
Thanks!
<!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>Lorem Ipsum : about us</title>
<style type="text/css">
<!--
-->
</style>
<script src="SpryAssets/SpryAccordion.js"
type="text/javascript"></script>
<script type="text/javascript">
<!--
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
.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a
)&&x.oSrc;i++) x.src=x.oSrc;
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for
(i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers
.document);
if(!x && d.getElementById) x=d.getElementById(n);
return x;
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
//-->
</script>
<link href="css/main.css" rel="stylesheet" type="text/css"
/>
<style type="text/css">
<!--
-->
</style>
<link href="SpryAssets/SpryAccordion.css" rel="stylesheet"
type="text/css" />
<style type="text/css">
<!--
a:link {
color: #036;
text-decoration: none;
a:visited {
text-decoration: none;
color: #036;
a:hover {
text-decoration: none;
color: #FFF;
a:active {
text-decoration: none;
color: #036;
-->
</style></head>
<body
onload="MM_preloadImages('images/menu_images/nav_a2_f2.jpg','images/menu_images/nav_a3_f2 .jpg','images/menu_images/nav_a4_f2.jpg','images/menu_images/nav_a5_f2.jpg','images/menu_i mages/nav_a6_f2.jpg')">
<div id="homebg">
<div id="spry1">
<div id="Accordion2" class="Accordion" tabindex="0">
<div class="AccordionPanel">
<div class="AccordionPanelTab"><img
src="images/spry_background/about_spry1.jpg" width="747"
height="35" alt="Vision / Purpose / Mission" /></div>
<div class="AccordionPanelContent">
<table width="744" height="179" border="0">
<tr>
<td width="95" height="175"> </td>
<td width="581" valign="top"
bgcolor="#C2CAD2"><p><strong>Vision:</strong>
Lorem Ipsum Dolor</p>
<p><strong>Purpose:</strong> Lorem ipsum
dolor.</p></td>
<td width="54"> </td>
</tr>
</table>
</div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab"><img
src="images/spry_background/about_spry2.jpg" width="746"
height="34" alt="Guiding Principles / Core Values"
/></div>
<div class="AccordionPanelContent">
<table width="744" height="388" border="0">
<tr>
<td width="95"> </td>
<td width="581" valign="top"
bgcolor="#C2CAD2"><p><strong>Integrity</strong><br
/>
Lorem Ipsum</p>
<p><strong>Understanding</strong><br
/>
Lorem Ipsum</p>
<p> <strong>Innovation</strong><br
/>
Lorem Ipsum</p>
<p><strong>Perseverance</strong><br
/>
Lorem Ipsum</p>
<p><strong>Simplicity</strong><br />
Lorem Ipsum</p>
<p> <strong>Lorem
Ipsum</strong></p></td>
<td width="54"> </td>
</tr>
</table>
</div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab"><img
src="images/spry_background/about_spry3.jpg" width="746"
height="34" alt="Lorem Ipsum" /></div>
<div class="AccordionPanelContent">
<table width="744" height="388" border="0">
<tr>
<td width="95"> </td>
<td width="581" valign="top"
bgcolor="#C2CAD2"><p><strong>Lorem
Ipsum</strong><br />
<br />
<br />
<a href="mailto:blahblah</a></p>
<p><strong>Lorem Ipsum</strong><br
/>
<br />
<br />
<a href="mailto:blahblah"</a></p>
<p><strong></strong><br />
Manager<br />
9<br />
<a href="mailto:blahblah</a></p></td>
<td width="54"> </td>
</tr>
</table>
</div>
</div>
</div>
<h6></h6>
</div>
<div id="text">
<h1>about us
<p>Lorem Ipsum </h1>
<p> </p>
</div>
<img src="images/bg_images/bg_interior.jpg" width="1374"
height="931" /></div>
<script type="text/javascript">
<!--
var Accordion2 = new Spry.Widget.Accordion("Accordion2", {
useFixedPanelHeights: false, defaultPanel: -1 });
//-->
</script>
</body>
</html>

Similar Messages

  • Accordion Spry is defaulting to all tabs open. What's wrong?

    Hi,
    I had my accordion spry working perfectly a week ago. Then, I tried to add another panel at the top, and all of a sudden all tabs default open. I'd like them to go back to all being closed on default. I've been over my coding again and again for a week and can't figure out what I did wrong. I can get the first panel to close on default by changing the default panel to -1, but that only makes the other panels look odd for being open. Here's my code shortened to the important parts:
    <div id="Accordion1" class="Accordion" tabindex="0">
          <div class="AccordionPanel">
           <div class="AccordionPanelTab">Create Your Own Art Course</div>
            <div class="AccordionPanelContent">
              <p>Wouldn't you love...
    (rest of content + 5 more tabs)
    </div><script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false, defaultPanel: -1});
    //-->
    </script>
    my url is: http://www.7elementsBR.com/courses
    Can anyone help me figure this puzzle out? Thank you.

    C F McBlob wrote:
    There are SEVERAL paragraph tags that are "unclosed". That can throw the whole Spry function off.
    No, it can't. The closing tag of a paragraph is optional. The reason it's triggering an error in the W3C validator is because an XHTML doctype is being used. Many of the other "errors" are caused by the JavaScript being read by the validator as though it were HTML.
    However, you're right about unclosed tags. The problem with the accordion is being cause by incorrectly nested divs.
    This is how the content div should look:
      <div class="content">
        <h1>Courses (Fall 2013) </h1>
        <div id="Accordion1" class="Accordion" tabindex="0">
          <div class="AccordionPanel">
           <div class="AccordionPanelTab">Create Your Own Art Course</div>
            <div class="AccordionPanelContent">
              <p>Wouldn't you love being in a class with your friends/family learning exactly what you like learning and on your schedule? You can customize what materials you use, how often you come, the time you come, studying only abstract or realism, maybe a little bit of everything? Price is determined by your selections.
              <p><a href="customcourse.html">Custom Course Form</a><br />        
            </div>
            </div> <!-- This closing tag is missing -->
            <div class="AccordionPanel">
            <div class="AccordionPanelTab">Basic Art (ages 6 - 12)</div>      
            <div class="AccordionPanelContent">
              <p>Mondays 4:30 - 6pm (No longer accepting Fall registrations.)     </p>
              <p>Students will get to sample these various mediums: pencil, charcoal, soft pastel, oil pastel, printmaking, watercolor, and acrylic painting. We will explore all 7 elements of art in order to create a good foundation for our young artists. Students are welcome to bring papers or canvas to create on, or feel free to visit the <a href="shop.html">shop</a>. All mediums are available for use and are included in the price. Course begins August 12.</p>
              <p>16 sessions, 4 free punch cards, $55/month<br />        
            </div>
          </div>
          <div class="AccordionPanel">
            <div class="AccordionPanelTab">Drawing (ages 6+)</div>
            <div class="AccordionPanelContent">
            <p>Thursdays 4:30 - 6pm (No longer accepting Fall registrations.)</p>
              <p>Students will learn the 7 elements of art through various drawing tools including: pencil, charcoal, soft pastel, and oil pastel. This is a class based on realism first, and finding your own style as an artist later. Students are welcome to bring papers to draw on, or feel free to visit the shop. All mediums are available for use and are included in the price.  Course begins August 15.</p>
              <p>16 sessions, 4 free punch cards, $55/month<br />
            </p></div>
          </div>
          <div class="AccordionPanel">
            <div class="AccordionPanelTab">Open Studio </div>
            <div class="AccordionPanelContent">
            <p>Monday - Friday, 12 - 4pm (Call ahead of time @ 225.366.7442)</p>
              <p>This course is all about the artist as an individual. Instruction is not provided, and artists may come and go as pleased. Weekly critiques are Fridays 3 - 4pm and are not mandatory, but allow for feedback from multiple artists and provide answers for you to grow as an artist. Artists may work with any medium, and may choose to rent media for $5/hour. The studio is not open on 1st Fridays, holidays, Easter week,  Halloween week, Thanksgiving week, or Christmas week. </p>
              <p>Pricing: $5/hour or FREE for current students</p></div>
          </div>
                </div> <!-- This closing tag is missing -->
                <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false, defaultPanel: 0});
    //-->
    </script>
        <!-- </div> This closing tag should be removed -->
        <p> </p>
        <p><a href="referafriend.html"><img src="images/refer.gif" alt="refer a friend" width="228" height="64" longdesc="images/refer.gif" align="right" /></a></p>
      </div>
    <!-- end .content -->
    The unclosed paragraph tags should also be fixed, but what's causing the problem with the accordion is incorrectly nested divs.

  • Spry Widget Wont Load JS to Browser?!?

    I have a Spry slide show widget on my website. I have it linked to the root folder and also in a folder for orginazaion reasons. When the page loads I get a lot of JS errors. If I open the file offline it works fine but when uploaded to the server it wont load the JS. I have checked all the links and they are okay. I can even follow the links and they open up the script. Dreamweaver added the JS files so im asuming that the JS codes are correct. The 2 links are http://tylerdickersondesign.com/classic/classic.html & http://tylerdickersondesign.com/classic.html. This is so frustrating!
    Here is the my HTML code:
    <!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>
    <link rel="icon" type="image/ico" href="http://www.tylerdickersondesign.com/images/favicon.ico">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Tyler Dickerson Design</title>
    <link href="classic.css" rel="stylesheet" type="text/css" />
    <link href="Spry-UI-1.7/css/ImageSlideShow/basicFS/basic_fs.css" rel="stylesheet" type="text/css" />
    <script src="Spry-UI-1.7/includes/SpryDOMUtils.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryDOMEffects.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryWidget.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryPanelSelector.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryPanelSet.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryFadingPanels.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SprySliderPanels.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryFilmStrip.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryImageLoader.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryImageSlideShow.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/plugins/ImageSlideShow/SpryThumbnailFilmStripPlugin.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/plugins/ImageSlideShow/SpryTitleSliderPlugin.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/plugins/ImageSlideShow/SpryPanAndZoomPlugin.js" type="text/javascript"></script>
    <style type="text/css">
    /* BeginOAWidget_Instance_2141543: #Tyler */
    #Tyler {
        width: 650px;
        margin: 24px 0px 0px 0px;
        border: solid 1px #000000;
        background-color: #717c96;
        padding-top: 10px;
    #Tyler .ISSName {
        top: -24px;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: normal;
        font-size: 18px;
        text-transform: none;
        color: #000000;
    #Tyler .ISSSlideTitle {
        top: -18px;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: bold;
        font-size: 12px;
        overflow: hidden;
        color: #000000;
        text-transform: none;
    #Tyler .ISSClip {
        height: 400px;
        margin: 0 10px 10px 10px;
        border: solid 1px #333333;
        background-color: #ffffff;
    #Tyler .ISSControls {
        top: 11px;
        height: 400px;
    #Tyler .FilmStrip {
        height: 80px;
        background-color: #2a3a5b;
    #Tyler .FilmStripPreviousButton, #Tyler .FilmStripNextButton {
        width: 25px;
        height: 80px;
    #Tyler .FilmStripTrack {
        height: 80px;
    #Tyler .FilmStripContainer {
        height: 80px;
    #Tyler .FilmStripPanel {
        height: 80px;
        padding-left: 10px;
        margin-right: 0px;
    #Tyler .FilmStripPanel .ISSSlideLink {
        margin-top: 10px;
        border: solid 1px #2a3a5b;
        background-color: #2a3a5b;
    #Tyler .FilmStripPanel .ISSSlideLinkRight {
        border: solid 1px #404f6b;
        width: 126px;
        height: 50px;
        margin: 4px 4px 4px 4px;
    #Tyler .FilmStripCurrentPanel .ISSSlideLink {
        background-color: #59647d;
        border-color: #59647d;
    #Tyler .FilmStripCurrentPanel .ISSSlideLinkRight {
        border-color: #404f6b;
    /* EndOAWidget_Instance_2141543 */
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2141543" binding="#Tyler" />
    </oa:widgets>
    -->
    </script>
    </head>
    <body>
    <div class="container">
      <div class="header"><a href="http://tylerdickersondesign.com"><img src="images2/l2.png" alt="logo" /></a>
        <!-- end .header --></div>
        <float>
        <a href="http://www.facebook.com/TylerDickersonDesign"><img src="images2/ft.png"/></a>
        </float>
      <div class="sidebar1">
        <ul class="nav">
          <li></li>
          <li></li>
          <li><a href="http://tylerdickersondesign.com/">Home</a></li>
          <li><a href="#">About</a></li>
          <li><a href="#">Services</a></li>
          <li><a href="http://tylerdickersondesign.com/contact.html">Contact</a></li>
        </ul>
      <!-- end .sidebar1 --></div>
      <div class="content">
        <table width="90%" border="1" cellspacing="0" cellpadding="5">
          <tr>
            <th scope="col"><center>
              <ul id="Tyler" title="">
                <li><a href="images2/1.jpg"><img src="images2/1t.jpg" alt="photos-1.jpg" /></a></li>
                <li><a href="images2/2.jpg"><img src="images2/2t.jpg" alt="photos-10.jpg" /></a></li>
                <li><a href="images2/3.jpg"><img src="images2/3t.jpg" alt="photos-11.jpg" /></a></li>
                <li><a href="images2/4.jpg"><img src="images2/4t.jpg" alt="photos-12.jpg" /></a>
              </ul>
              <script type="text/javascript">
    // BeginOAWidget_Instance_2141543: #Tyler
    var Tyler = new Spry.Widget.ImageSlideShow("#Tyler", {
        widgetID: "Tyler",
        widgetClass: "BasicSlideShowFS",
        injectionType: "replace",
        autoPlay: true,
        displayInterval: 3000,
        transitionDuration: 2000,
        componentOrder: ["name", "title", "view", "controls", "links"],
        sliceMap: { BasicSlideShowFS: "3slice", ISSSlideLink: "3slice" },
        plugIns: [ Spry.Widget.ImageSlideShow.ThumbnailFilmStripPlugin, Spry.Widget.ImageSlideShow.PanAndZoomPlugin ],
        TFSP: { pageIncrement: 4, wraparound: true }
    // EndOAWidget_Instance_2141543
              </script>
            </center>
    <p><br />
              </p>
              <h1>Graphic Design</h1>
              <p>Welcome to Tyler Dickerson Design. We take pride in our commitment to the highest degree of excellence in graphic design, web design, and photography. Our goal is to provide each and every client with more than they imagined in terms of design and more than they have experienced in regard to customer service, while at the same time staying within each individual budget we are working with. We offer the highest quality of design that will take your company and clients to the next level. We are committed to achieving excellence. When you hire us as your creative designer, you have taken the first important step to a new way of doing business. Tyler Dickerson Design is a proud, experienced artist of Graphic Design, Web Design, and Photography. Our expertise-based knowledge of marketing, advertising, promotion, logo development, print production processes, and photography are unmatched. Select Tyler Dickerson Design to receive the highest level of personal attention and dedication to detail. We are the creative designers that stand for quality, uniqueness and value. We are quick, flexible, and great listeners.</p>
              <h2>Web Design</h2>
              <p>As your web designer it is our goal to develop elegant and affordable web solutions that enable small to large businesses to establish visibility online, increase sales, and improve productivity. Tyler Dickerson Design provides high-quality, professional web design and online marketing services to small businesses and non-profits at prices that fit their budgets. We work extremely hard to keep prices affordable for our clients, while giving them access to the same web site and marketing services that have always been available to large companies with big budgets.</p>
              <h3>Photography</h3>
              <p>Tyler Dickerson Design explores the connection between the eye, the camera, and the soul by raising the growth of artistic vision and technical knowledge. We strive to capture and deliver the highest quality photographs for our clients, while focusing on the genuine moments of life that are often fleeting and quickly forgotten. We promise to give the maximum level of service to each client, while respecting individual needs. Our hope is to develop a personal connection that supports an ongoing and long-lasting working relationship. </p>
              <p> Be aware that if you use the Property inspector to navigate to your logo image using the SRC field (instead of removing and replacing the placeholder), you should remove the inline background and display properties. These inline styles are only used to make the logo placeholder show up in browsers for demonstration purposes. </p>
              <p>To remove the inline styles, make sure your CSS Styles panel is set to Current. Select the image, and in the Properties pane of the CSS Styles panel, right click and delete the display and background properties. (Of course, you can always go directly into the code and delete the inline styles from the image or placeholder there.)</p>
              <h4>Marketing Materials</h4>
              <p>Tyler Dickerson Design uses the highest quality materials. We take pride in our work and want our clients to be 100% satisfied with their experience with us. Give us a chance to astonish you. </p></th>
          </tr>
        </table>
        <h1> </h1>
      <!-- end .content --></div><br />
    </wrap>
      <div class="footer">
        <p><center><small>© 2013 Tyler Dickerson Design. All Rights Reserved.</center></p>
        <!-- end .footer --></div>
      <!-- end .container --></div>
    </body>
    </html>
    Thanks guys!

    It seems to function correctly here on my Windows 7 machine in...
    Firefox 16
    IE9
    Opera 12.11
    Chrome 24
    Safari 5.1.7
    There are a few errors in your HTML that could be causing an issue for you in an older browser. Make sure to clean them up after running the validator here:
    http://validator.w3.org/

  • Accordion Spry Widget resizes fonts in AccordionPanelContent when viewed on iPhone4

    Has anyone seen this probelm before? The open AccordionPanelContent area dispays the font correctly at first, but then resizes once an interaction is initiated. See http://www.johnstontrustlaw.com/kmj_mobile.html for code. Thanks in advance for any help!

    Has anyone seen this probelm before? The open AccordionPanelContent area dispays the font correctly at first, but then resizes once an interaction is initiated. See http://www.johnstontrustlaw.com/kmj_mobile.html for code. Thanks in advance for any help!

  • Can't add spry widget to page created from dreamweaver template

    Please help! I have created a template in Dreamweaver and
    from that template I have created an html page. I want to add
    different tabbed and/or accordion spry widgets to multiple pages
    however I keep getting an error when I try to add a widget to an
    editable region. I can add the widgets to the dwt file, but I do
    not want the same widget on all pages created from that template.
    Please advise!
    Thanks
    cycleguy

    If that's all that's on the child page you are in trouble.
    Anyhow, it appears to me that the template has not been
    properly created
    since I do not also see an editable region around the
    <title> tag in your
    code. Please read my previous post and follow the
    instructions.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "cycleguy" <[email protected]> wrote in
    message
    news:fu01pk$s7k$[email protected]..
    > Thank you for your reply.
    > I started with one of the built-in templates offered in
    Dreamweaver then
    > added
    > additional div's and formatting then saved it as a dwt
    file and created my
    > html
    > page from that template. I did not start the page from
    scratch. Below is
    > my
    > source code from the child 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"><!--
    InstanceBegin
    > template="/Templates/DankaConnectionPortalTemplate.dwt"
    > codeOutsideHTMLIsLocked="false" -->
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    > <title>Untitled Document</title>
    > <style type="text/css">
    > <!--
    > body {
    >

  • Accordion Spry default all panels closed

    How do I setup the Accordion Spry to have all panels closed
    when my page initially loads? I don't want any of the panels to be
    set as the default opened panel and for the browser to select the
    panel they want open first.

    I have installed Spry 1.6.1.
    Here is my code:
    var Accordion1 = new Spry.Widget.Accordion("Accordion1",{
    defaultpanel: -1 });
    Still opens the first panel upon loading my page with the
    Accordion spry. There must be something else to be
    configured?

  • How to make no panels on Spry accordion open by default?

    I have a Spry Accordion with several panels.  I want the default behavior for none of the panels to be opened until one is clicked.  Currently the default behavior is for the first panel to be automatically expanded when the page is first visited.  How do I correct this?

    It's here:
    http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample.html
    Under the sub heading "starting with all panels closed".
    <script type="text/javascript">
    var acc1 = new Spry.Widget.Accordion("Acc1", { useFixedPanelHeights: false, defaultPanel: -1 });
    </script>
    Martin

  • Accordian Spry Widget

    Hi,
    I have a page here:
    CLICK HERE
    That uses the Accordian Widget. My question is how can I
    change the default open panel? I want the bottom panel open when
    the page loads, with the 2 top panels closed.
    Any help would be most appreciated.

    I found the answer on the Lab forums:
    Put this :
    <script type="text/javascript">
    var acc1 = new Spry.Widget.Accordion("Accordion1", {
    defaultPanel: 2 });
    </script>
    Instead of this:
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    //-->
    </script>
    near the bottom of your page

  • How do I make my accordion spry not "jump" or "hiccup" in IE??

    Ok, sorry you guys, I'm a newbie.
    It seems that no matter what I do, I can't get the accordion to co-operate with Internet Explorer. It has always jumped when tabs are clicked and then settles down. It's rather irritating and I would like to fix it. I've run out of things to try. Can anyone help?
    In addition, with attempts to make keep the accordion and background centered I used a div with the position centered, which worked, but only in FF and Chrome. In IE it stays far left. When I had it in a table, I could set a left: px in the class, but never figured out how to center it with a table so it would change position based on the monitor resolution. If there's a better way to do this that IE and other browsers like, please help me. If it's just IE that has the problem is there any way to make it like my code?
    If you can help me change the height of the accordion, that would be great. It seems it doesn't want to stretch out, but maybe I'm writing it in the wrong section or the wrong way.
    Another minor issue is the IE not doing the transparency I set on the tabs. I heard that they took that feature out. Is that true or is there a way to set it for IE?
    Here's what I have so far:
    +<!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>Bonnie Praymayer</title>
    <link rel="stylesheet" type="text/css" href="css/main.css" />
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    p.MsoNormal {
    margin-top:0cm;
    margin-right:0cm;
    margin-bottom:10.0pt;
    margin-left:0cm;
    line-height:115%;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    -->
    </style>
    </head>
    <body>
    <table id="big">
        <tr>
         <td><table width="200" border="1" id="table" name="table">
           <tr>
             <td><div id="Accordion1" class="Accordion" tabindex="0">
               <div class="AccordionPanel">
                 <div class="AccordionPanelTab">
                 <span class="tabContent">Benefiting People Like You
                 </span>
                 </div>
                 <div class="AccordionPanelContent">
                       <div class="panelContent">
                     <p >I specialize in deep tissue massage. As you may know  already, massage therapy is the manipulation of soft tissue with the goal to  improve well-being and heal injuries. It can involve just about any part of the  body, but generally most people have stiffness and injuries in the back and  neck. I enjoy using this type of health maintenance to assist people like you.  Massage therapy can be used to improve many ailments such as:</p>
                     <p >Muscle Strains, Sprains, Headaches, Migraines, Fibromyalgia,  Edema, and High Blood Pressure</p>
                     <p >Beyond &quot;ailments&quot; massage is excellent for  treating sore muscles in pregnant women as well as reducing stress in everyone.</p>
                     <p > </p>
                   </div>
                 </div>
               </div>
               <div class="AccordionPanel">
                 <div class="AccordionPanelTab">
                     <span class="tabContent"> Reflexology - An Added Benefit
                     </span>
                 </div>
                 <div class="AccordionPanelContent">
                   <div class="panelContent"><p >In addition to massage therapy, I am certified to practice  Reflexology of the feet. This is a therapy wherein pressure is applied to the  feet to encourage the body to heal itself. It's as if the feet are a map to the  body with the spine being the edge of what is known as the arch. There are key  points such as the heart and lungs, sinuses, kidneys, and intestinal tract. </p>
                   <p> </p>Reflexology has been known to also be an indicator to hidden  health issues. Many reflexologists can attest to the fact that upon finding  sore areas in the feet, the corresponding organ(s) have later been discovered  by a physician to be injured or diseased. It is not a replacement for  healthcare, but for some, reflexology has proven to be an asset to gain  knowledge of the workings of their body.<p></p>
                   <p >One thing to note: if you do receive a reflexology treatment it is normal to feel a  little dizzy, fatigued, or flu-like if you don't hydrate yourself before and  after.</p>
                </div>
                 </div>
               </div>
               <div class="AccordionPanel">
                 <div class="AccordionPanelTab">
                         <span class="tabContent"> How to Choose a Therapist
                         </span>
                 </div>
                 <div class="AccordionPanelContent">
                   <div class="panelContent"><p >To be honest, everyone has preferences for what he or she  like in a massage, so there is no hard and fast rule. What I recommend is that  you decide what you need treated whether it be muscle strain, stiff muscles,  stress, poor circulation etc. You can decide what kind of massage you need  based on what you decide you want massage to do for you.</p>
                   <p >If you need to de-stress, relax and do not have many sore  stiff muscles then simple relaxation massage would be good for you. If you have  a constant sore shoulder or neck then you really need a therapist that is  capable of effectively loosening those fibres.</p>
                   <p >You may be able to determine if a therapist is right for you  by talking with someone who has had a massage from that person. Otherwise, you  can sometimes judge by the type of facility in which they are practicing.  Typically a spa is going to give you strictly relaxation, although many  therapists are capable of more if you request it. A chiropractor's clinic will  often focus on rehabilitation of injured patients; more often than not they  have massage therapists that are more than capable of working deep enough to  affect injured tissue.></p>
                   <p > Communication is the  key when it comes to during the treatment in order to customize and optimize  your massage experience. Don't be afraid to speak up if you need to adjust the technique or pressure. After all, the massage is all about you!</p></div><p></p>
                 </div>
               </div>
               <div class="AccordionPanel">
                 <div class="AccordionPanelTab"><span class="tabContent">My Practice</span></div>
                 <div class="AccordionPanelContent">
                     <div class="panelContent">
                   <p>My interest in massage therapy began at a very early age. Although I didn't know it was an actual profession, I started massaging at the age of 8 as I did my best to alievinate my mother's chronic pain from fibromyalgia. I, through time gained a natrual feel for detecting prolblem areas in the muscle and I learned what pressure is appropriate. </p>
                   <p>I took my training in 2006 at the Alberta Insitute of Massage for six months to earn a certificate for a 1100 hour program. Though short, it was intensive in the anatomy and physiology portion and very hands-on in the massage classes. It was my privilege to learn from three instructors who had more than 10 years experience as massage therapists and many years teaching it.</p>
                   <p>Since my training, I have had the opporutinty to work as a massage therapist for 3 years. I have treated people from all walks of life for countless ailments and injuries. It is my pleasure to do my utmost to see to it that each paitent recieves the treament they deserve and expect.</p>
                   </div>
                 </div>
               </div>
             </div></td>
           </tr>
         </table></td>
        </tr>
    </table>
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    //-->
    </script>
    </body>
    </html>
    @charset "utf-8";
    /* CSS Document */
    body {
        background-image:url(../Images/WaterLeaf_Exp.png);
        background-repeat: no-repeat;
        background-position:center;
        background-attachment:scroll;
        background-color:#222222;
    .panelContent {
        color: #dcd2d2;
        font-size: 14px;
        font-family: Verdana, Geneva, sans-serif;
        margin-left: 15px;
        margin-top: 20px;
    .tabContent {
        color: #333;
        font-family: Verdana, Geneva, sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: #000;
        padding: 15px;
    #big {
        /*background-image*/
        background-repeat:no-repeat;
        border: none;
        top: 0px;
        margin-left: 23.5%;
        position: static;
        height: 800px;
        width: 955px;
    #table {
        width: 700px;
        height: 290px;
        /*margin-top: 1%;
        margin-left: 125px;*/
        border: none;
        position: relative;
        z-index: 2;
    @charset "UTF-8";
    /* SpryAccordion.css - version 0.4 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    /* This is the selector for the main Accordion container. For our default style,
    * we draw borders on the left, right, and bottom. The top border of the Accordion
    * will be rendered by the first AccordionPanelTab which never moves.
    * If you want to constrain the width of the Accordion widget, set a width on
    * the Accordion container. By default, our accordion expands horizontally to fill
    * up available space.
    * The name of the class ("Accordion") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style the
    * Accordion container.
    .Accordion {
        border-left: solid 1px gray;
        border-right: solid 1px black;
        border-bottom: solid 1px gray;
        overflow: hidden;
    /* This is the selector for the AccordionPanel container which houses the
    * panel tab and a panel content area. It doesn't render visually, but we
    * make sure that it has zero margin and padding.
    * The name of the class ("AccordionPanel") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style an
    * accordion panel container.
    .AccordionPanel {
        margin: 0px;
        padding: 0px;
    /* This is the selector for the AccordionPanelTab. This container houses
    * the title for the panel. This is also the container that the user clicks
    * on to open a specific panel.
    * The name of the class ("AccordionPanelTab") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style an
    * accordion panel tab container.
    * NOTE:
    * This rule uses -moz-user-select and -khtml-user-select properties to prevent the
    * user from selecting the text in the AccordionPanelTab. These are proprietary browser
    * properties that only work in Mozilla based browsers (like FireFox) and KHTML based
    * browsers (like Safari), so they will not pass W3C validation. If you want your documents to
    * validate, and don't care if the user can select the text within an AccordionPanelTab,
    * you can safely remove those properties without affecting the functionality of the widget.
    .AccordionPanelTab {
        background-color: #FFF;
        /*border-top: solid 1px black;*/
        border-bottom: solid 1px gray;
        margin: 0px;
        padding: 2px;
        cursor: pointer;
        -moz-user-select: none;
        -khtml-user-select: none;
        filter:alpha(opacity= 30);
        opacity: 0.3;
        -moz-opacity:0.3;
    /* This is the selector for a Panel's Content area. It's important to note that
    * you should never put any padding on the panel's content area if you plan to
    * use the Accordions panel animations. Placing a non-zero padding on the content
    * area can cause the accordion to abruptly grow in height while the panels animate.
    * Anyone who styles an Accordion *MUST* specify a height on the Accordion Panel
    * Content container.
    * The name of the class ("AccordionPanelContent") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style an
    * accordion panel content container.
    .AccordionPanelContent {
        overflow: auto;
        margin: 0px;
        padding: 0px;
        height: 200px;
    /* This is an example of how to change the appearance of the panel tab that is
    * currently open. The class "AccordionPanelOpen" is programatically added and removed
    * from panels as the user clicks on the tabs within the Accordion.
    .AccordionPanelOpen .AccordionPanelTab {
        /*background-color: #cccccc;*/
    /* This is an example of how to change the appearance of the panel tab as the
    * mouse hovers over it. The class "AccordionPanelTabHover" is programatically added
    * and removed from panel tab containers as the mouse enters and exits the tab container.
    .AccordionPanelTabHover {
        color: #93C;
        filter:alpha(opacity= 50);
        opacity: 0.5;
        -moz-opacity:0.5;
    .AccordionPanelOpen .AccordionPanelTabHover {
        color: #cccccc;
        filter:alpha(opacity= 30);
        opacity: 0.3;
        -moz-opacity:0.3;
    /* This is an example of how to change the appearance of all the panel tabs when the
    * Accordion has focus. The "AccordionFocused" class is programatically added and removed
    * whenever the Accordion gains or loses keyboard focus.
    .AccordionFocused .AccordionPanelTab:hover {
        background-color: #FFF;
        filter:alpha(opacity= 20);
        opacity: 0.2;
        -moz-opacity:0.2;
    .AccorrdionPanelOpen:hover {
        filter:alpha(opacity= 90);
        opacity: 0.9;
        -moz-opacity:0.9;
        color:#F00
    .AccordionPanelOpen .AccordionPanelTab {
        background-color: #390;
        filter:alpha(opacity= 30);
        opacity: 0.3;
        -moz-opacity:0.3;

    You would make this a little easier if you posted a link to the page.
    Most of the jump seems to be some extra padding or margin between the tabs  when you rollover, but I am not able to find it.  Is there any other css that is governing this page? I did remove a couple of <p></p> set of tags you had  and it improved the jump, but it is still there.
    If the page is live, run it through the validator http://validator.w3.org/ , fix whatever errors it finds, if you still have the jump, post a link to the page and the issue might get found.
    Gary

  • Accordion Spry problem

    The issue is basically this:
    I have an accordion (Spry). Let's say I click an element on
    it, shifting it. Now if that element was also a link, it will load
    a new page. Unfortunately, it also resets the accordion to default
    state, totally nullifying any semblance of "flow" between the
    pages.
    How can I fix this?

    http://foundationphp.com/tutorials/spry_url_utils.php
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "scripting_challenged" <[email protected]>
    wrote in message
    news:fs007u$mmi$[email protected]..
    > The issue is basically this:
    >
    > I have an accordion (Spry). Let's say I click an element
    on it, shifting
    > it.
    > Now if that element was also a link, it will load a new
    page.
    > Unfortunately, it
    > also resets the accordion to default state, totally
    nullifying any
    > semblance of
    > "flow" between the pages.
    >
    > How can I fix this?
    >

  • Linking different Spry Widgets

    How do I go about linking different Spry Widgets?
    For instance:
    1. I want the Spry Accordion Widget to open to a certain panel based on a specific Spry Menu Widget tab being clicked.
    2. On clicking a specific Spry Accordion Widget panel, I want to load an iframe or html content in another container on the same page.
    Any pointers appreciated. Where to look also appreciated.

    This is very useful...thank you.
    As a followup...where do I find all the "object literals" for each  widget. Some are obvious.
    Lets say that I have a vertical menu on another page.
    When I open that page, I want the vertical menu to open to a certain menu item. But I cant find any documentation for specific object literals for the menu.
    Thanks for your help. Really helped.

  • Site search limitations when using Spry Widgets

    Currently evaluating search tools to work with Spry
    accordion, tabbed panels and so on. Apparently NONE of them do.
    This is a big problem. Our site uses mostly Dreamweaver spry
    widgets.
    I have tested the very highly rated zoom Search from WrenSoft
    and also expect problems with Google Search and Atomz (based on web
    research I have done).
    If one searches for a word residing in one of the spry tabbed
    panels,accordians (there could be many layers on a single page of
    course), site search engines correctly take you to the page but
    naturally does not open the correct tabbed panel (Zoom Search
    doesn't understand DW code of course). Just presents you with the
    default panel. User would have to dig through all panels on that
    page to find the text. Our users need these nice interfaces. This
    is reality. Also some of the Java script in Wrensoft that
    highlights search words conflicts with existing Java script within
    Dreamweaver. I've worked around some of it but the core issue is
    the landing on the page and opening the correct tab. The question
    is can anyone suggest a search engine tool that will work with
    Dreamweaver Spry widgets or suggest something else. This is a huge
    disincentive to use Spry. Perhaps build pages without Spry to
    specifically go to after search? Sound like a lot of work.
    Thanks
    Richard

    RickRoo wrote:
    > If one searches for a word residing in one of the spry
    tabbed
    > panels,accordians (there could be many layers on a
    single page of course), site
    > search engines correctly take you to the page but
    naturally does not open the
    > correct tabbed panel (Zoom Search doesn't understand DW
    code of course).
    This is not an issue specific to Spry, it's an issue with
    other JavaScript solutions that show and hide content, and it is
    also an issue if CSS is used show and hide content.
    If you have a way to obtain the search terms from the search
    engine page, then you might be able to handle this (based upon your
    description, the WrenSoft JavaScript finds that info out), but then
    you'd also have to have a search engine built within your page that
    will search through the page and figure out what tab the searched
    term(s) are on, and then show that tab, but then what happens when
    you have terms on multiple tabs in a tab group? You'll have to
    determine which search terms are more important than other terms.
    There is code available that will allow you to open specific
    tabs using the showPanel method. Check out the API for the Tabbed
    panel:
    http://labs.adobe.com/technologies/spry/articles/data_api/index.html
    And perhaps take a look at the code for this page (check in
    the linked JavaScript file):
    http://labs.adobe.com/technologies/spry/samples/tabbedpanels/tabbed_panel_unobtrusive.htm
    http://labs.adobe.com/technologies/spry/samples/tabbedpanels/tp_unobtrusive.js
    As the Spry code is namespaced to specifically prevent
    conflicts with other JavaScript code, it would be good to know what
    those conflicts are so that others can be aware of them to try to
    prevent them in their pages.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Editing CS3 Spry widget

    Hi,
    I have created a accordion menu using a spry widget built
    into Dreamweaver CS3. However I want to amend this so that the menu
    is collapsed until the user clicks on a category.
    Do I have to amend the CSS or the javascript to make it
    collapsed to begin with?
    Any help would be appericated.
    Thanks
    Gary

    When you hover your mouse over the spry collapsible panel you
    will get a blue tab, click it. The properties panel will give you
    the widget controls. There you can set the default state as
    closed.

  • My VerticalTabs Spry widget not working - help

    My HTML file:
    <!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>
    <style type="text/css">
    <!--
    body {
        font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
        background: #ffdcb2;
        margin: 0px;
        padding: 0px;
    a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
        border: none;
    a:link {
        color: #42413C;
        text-decoration: none;
    a:visited {
        color: #42413C;
        text-decoration: none;
    a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
        text-decoration: underline;
    /* ~~ this fixed width container surrounds all other divs~~ */
    .container {
        width: 1136px;
        background: #FFF; /* the auto value on the sides, coupled with the width, centers the layout */
        overflow: hidden; /* this declaration makes the .container understand where the floated columns within ends and contain them */
        padding: 0px;
        margin-top: 0;
        margin-right: auto;
        margin-bottom: 0;
        margin-left: auto;
    /* ~~ These are the columns for the layout. ~~
    1) Padding is only placed on the top and/or bottom of the divs. The elements within these divs have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
    2) No margin has been given to the columns since they are all floated. If you must add margin, avoid placing it on the side you're floating toward (for example: a right margin on a div set to float right). Many times, padding can be used instead. For divs where this rule must be broken, you should add a "display:inline" declaration to the div's rule to tame a bug where some versions of Internet Explorer double the margin.
    3) Since classes can be used multiple times in a document (and an element can also have multiple classes applied), the columns have been assigned class names instead of IDs. For example, two sidebar divs could be stacked if necessary. These can very easily be changed to IDs if that's your preference, as long as you'll only be using them once per document.
    4) If you prefer your nav on the right instead of the left, simply float these columns the opposite direction (all right instead of all left) and they'll render in reverse order. There's no need to move the divs around in the HTML source.
    .sidebar1 {
        float: left;
        width: 18px;
        top: 0px;
        background-color: #ffdcb2;
        background-image: url(images/01-Pocetna-strana_08.png);
        background-repeat: repeat-y;
        background-position: right top;
        height: 2026px;
    .content {
        width: 1100px;
        float: left;
        height: 145px;
        top: 0px;
        background-color: #FFF;
    .sidebar2 {
        float: left;
        width: 18px;
        top: 0px;
        background-color: #ffdcb2;
        background-image: url(images/images/01-Pocetna-strana_04.png);
        background-repeat: repeat-y;
        background-position: left top;
        height: 2026px;
        padding: 0px;
    /* ~~ miscellaneous float/clear classes ~~ */
    .fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
        float: right;
        margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
        float: left;
        margin-right: 8px;
    .clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the overflow:hidden on the .container is removed */
        clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    .apDiv7 {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 13px;
        color: #333333;
        padding-top: 6px;
        padding-right: 0px;
        padding-left: 26px;
        background-color: #FFF;
        height: 53px;
        width: 1100px;
        background-image: url(images/01-Pocetna-strana_12.png);
        background-repeat: repeat-x;
    -->
    </style>
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    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];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    </head>
    <body onload="MM_preloadImages('images/01-akcija-popust-seva-obelezavanje.png','images/01-Bezbe dnosno-obelezavanje.png')">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" top="0px">
      <tr>
        <td>
        <div class="container">
      <div class="sidebar1"><!-- end .sidebar1 --> </div>
      <div class="content">
      <div id="wrap">
      <div id="apDiv2" style="position: inherit; left: 151px; top: 0px; width: 1100px; height: 145px; z-index: auto"><img src="images/01-poslovno-obelezavanje-header.png" width="1100" height="145" alt="poslovno obelezavanje header"></div>
      <div class="apDiv7" id="apDiv7" style="position: inherit; left: 135px; top: 145px; width: 1100px; height: 53px; z-index: auto"><a href="SEVA-PORTAL.html">ŠEVA-PORTAL</a> |  <a href="#" target="_self">Početna strana</a> | <a href="O-nama.html">O nama</a> |  <a href="01-Reference.html">Reference</a> |  <a href="Kontakt.html">Kontakt</a> |  <a href="01-Kako-do-nas.html">Kako nas naći</a></div>
      <div id="TabbedPanels1" class="VTabbedPanels">
        <ul class="TabbedPanelsTabGroup">
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/01-Glavni-spoljni-natpis.png" name="Image2" width="240" height="163" border="0" id="Image2" /></li>
          <li class="TabbedPanelsTab" tabindex="10"><img src="images/01-Spoljni-putokazi.png" name="Image3" width="240" height="163" border="0" id="Image3" /></li>
          <li class="TabbedPanelsTab" tabindex="20"><img src="images/01-Centralna-INFO-tabla.png" width="240" height="163" /></li>
          <li class="TabbedPanelsTab" tabindex="30"><img src="images/01-Spratna-INFO-tabla.png" width="240" height="163" /></li>
          <li class="TabbedPanelsTab" tabindex="40"><img src="images/01-Unutrasnji-putokazi.png" width="240" height="163" /></li>
          <li class="TabbedPanelsTab" tabindex="50"><img src="images/01-Obelezja-prostorija.png" width="240" height="163" /></li>
          <li class="TabbedPanelsTab" tabindex="60"><img src="images/01-Oglasne-table-i-vitirine.png" width="240" height="163" /></li>
          <li class="TabbedPanelsTab" tabindex="70"><img src="images/01-Ostale-oznake.png" width="240" height="163" /></li>
          <li class="TabbedPanelsTab" tabindex="90"><img src="images/01-Bezbednosno-obelezavanje.png" width="240" height="188" /></li>
        </ul>
        <div class="TabbedPanelsContentGroup">
          <div class="TabbedPanelsContent">
            <div id="apDiv1" style="position: fixed; left: 661px; top: 209px; width: 361px; height: 51px; z-index: auto"><img src="images/02-Glavni-spoljni-natpis.png" width="361" height="51" alt="seva, novi sad, beograd, poslovno, obelezavanje, oznake, prostor, poslovni, opstina, hotel, centar, oznaka, oznake" /></div>
          </div>
          <div class="TabbedPanelsContent">
            <div id="apDiv1" style="position: fixed; left: 698px; top: 211px; width: 287px; height: 40px; z-index: 1"><img src="images/03-Spoljni-putokazi.png" width="287" height="40" alt="seva, novi sad, beograd, poslovno, obelezavanje, oznake, prostor, poslovni, opstina, hotel, centar, oznaka, oznake, srbija" /></div>
          </div>
          <div class="TabbedPanelsContent">Content 3</div>
          <div class="TabbedPanelsContent">Content 4</div>
          <div class="TabbedPanelsContent">Content 5</div>
          <div class="TabbedPanelsContent">Content 6</div>
          <div class="TabbedPanelsContent">Content 7</div>
          <div class="TabbedPanelsContent">Content 8</div>
          <div class="TabbedPanelsContent">Content 9</div>
        </div>
    </div>
      </div>
      </div>
      <div class="sidebar2">
      </div>
    <!-- end .container --></div>
        </td>
      </tr>
    </table>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    </body>
    </html>
    and my modified SpryTabs CSS file is:
    @charset "UTF-8";
    /* SpryTabbedPanels.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    /* Horizontal Tabbed Panels
    * The default style for a TabbedPanels widget places all tab buttons
    * (left aligned) above the content panel.
    /* This is the selector for the main TabbedPanels container. For our
    * default style, this container does not contribute anything visually,
    * but it is floated left to make sure that any floating or clearing done
    * with any of its child elements are contained completely within the
    * TabbedPanels container, to minimize any impact or undesireable
    * interaction with other floated elements on the page that may be used
    * for layout.
    * If you want to constrain the width of the TabbedPanels widget, set a
    * width on the TabbedPanels container. By default, the TabbedPanels widget
    * expands horizontally to fill up available space.
    * The name of the class ("TabbedPanels") used in this selector is not
    * necessary to make the widget function. You can use any class name you
    * want to style the TabbedPanels container.
    .TabbedPanels {
         overflow: hidden;
         margin: 0px;
         padding: 0px;
         clear: none;
         width: 100%; /* IE Hack to force proper layout when preceded by a paragraph. (hasLayout Bug)*/
    /* This is the selector for the TabGroup. The TabGroup container houses
    * all of the tab buttons for each tabbed panel in the widget. This container
    * does not contribute anything visually to the look of the widget for our
    * default style.
    * The name of the class ("TabbedPanelsTabGroup") used in this selector is not
    * necessary to make the widget function. You can use any class name you
    * want to style the TabGroup container.
    .TabbedPanelsTabGroup {
         margin: 0px;
         padding-left: 10px;
    /* This is the selector for the TabbedPanelsTab. This container houses
    * the title for the panel. This is also the tab "button" that the user clicks
    * on to activate the corresponding content panel so that it appears on top
    * of the other tabbed panels contained in the widget.
    * For our default style, each tab is positioned relatively 1 pixel down from
    * where it wold normally render. This allows each tab to overlap the content
    * panel that renders below it. Each tab is rendered with a 1 pixel bottom
    * border that has a color that matches the top border of the current content
    * panel. This gives the appearance that the tab is being drawn behind the
    * content panel.
    * The name of the class ("TabbedPanelsTab") used in this selector is not
    * necessary to make the widget function. You can use any class name you want
    * to style this tab container.
    .TabbedPanelsTab {
         position: relative;
         float: left;
         background-color: #FFF;
         list-style: none;
         -moz-user-select: none;
         -khtml-user-select: none;
         cursor: pointer;
         width: 240px;
         margin-bottom: 10px;
    /* This selector is an example of how to change the appearnce of a tab button
    * container as the mouse enters it. The class "TabbedPanelsTabHover" is
    * programatically added and removed from the tab element as the mouse enters
    * and exits the container.
    .TabbedPanelsTabHover {
         background-color: #CCC;
    /* This selector is an example of how to change the appearance of a tab button
    * container after the user has clicked on it to activate a content panel.
    * The class "TabbedPanelsTabSelected" is programatically added and removed
    * from the tab element as the user clicks on the tab button containers in
    * the widget.
    * As mentioned above, for our default style, tab buttons are positioned
    * 1 pixel down from where it would normally render. When the tab button is
    * selected, we change its bottom border to match the background color of the
    * content panel so that it looks like the tab is part of the content panel.
    .TabbedPanelsTabSelected {
         background-color: #EEE;
         border-bottom: 1px solid #EEE;
    /* This selector is an example of how to make a link inside of a tab button
    * look like normal text. Users may want to use links inside of a tab button
    * so that when it gets focus, the text *inside* the tab button gets a focus
    * ring around it, instead of the focus ring around the entire tab.
    .TabbedPanelsTab a {
         color: black;
         text-decoration: none;
    /* This is the selector for the ContentGroup. The ContentGroup container houses
    * all of the content panels for each tabbed panel in the widget. For our
    * default style, this container provides the background color and borders that
    * surround the content.
    * The name of the class ("TabbedPanelsContentGroup") used in this selector is
    * not necessary to make the widget function. You can use any class name you
    * want to style the ContentGroup container.
    .TabbedPanelsContentGroup {
         clear: both;
         border-bottom: solid 1px #CCC;
         border-top: solid 1px #999;
         border-right: solid 1px #999;
         background-color: #EEE;
         padding-left: 11px;
         height: auto;
         width: auto;
    /* This is the selector for the Content panel. The Content panel holds the
    * content for a single tabbed panel. For our default style, this container
    * provides some padding, so that the content is not pushed up against the
    * widget borders.
    * The name of the class ("TabbedPanelsContent") used in this selector is
    * not necessary to make the widget function. You can use any class name you
    * want to style the Content container.
    .TabbedPanelsContent {
         overflow: hidden;
         padding: 0px;
    /* This selector is an example of how to change the appearnce of the currently
    * active container panel. The class "TabbedPanelsContentVisible" is
    * programatically added and removed from the content element as the panel
    * is activated/deactivated.
    .TabbedPanelsContentVisible {
         background-image: url(../images/01-Pocetna-strana_23.png);
         background-repeat: repeat-y;
         background-position: left top;
         height: auto;
         width: auto;
         padding-left: 11px;
    /* Vertical Tabbed Panels
    * The following rules override some of the default rules above so that the
    * TabbedPanels widget renders with its tab buttons along the left side of
    * the currently active content panel.
    * With the rules defined below, the only change that will have to be made
    * to switch a horizontal tabbed panels widget to a vertical tabbed panels
    * widget, is to use the "VTabbedPanels" class on the top-level widget
    * container element, instead of "TabbedPanels".
    .VTabbedPanels {
         overflow: hidden;
         zoom: 1;
    /* This selector floats the TabGroup so that the tab buttons it contains
    * render to the left of the active content panel. A border is drawn around
    * the group container to make it look like a list container.
    .VTabbedPanels .TabbedPanelsTabGroup {
         float: left;
         width: 240px;
         height: auto;
         background-color: #FFF;
         position: relative;
    /* This selector disables the float property that is placed on each tab button
    * by the default TabbedPanelsTab selector rule above. It also draws a bottom
    * border for the tab. The tab button will get its left and right border from
    * the TabGroup, and its top border from the TabGroup or tab button above it.
    .VTabbedPanels .TabbedPanelsTab {
         float: none;
         /* [disabled]border-top: none; */
         /* [disabled]border-left: none; */
         /* [disabled]border-right: none; */
         height: auto;
         width: 240px;
    /* This selector disables the float property that is placed on each tab button
    * by the default TabbedPanelsTab selector rule above. It also draws a bottom
    * border for the tab. The tab button will get its left and right border from
    * the TabGroup, and its top border from the TabGroup or tab button above it.
    .VTabbedPanels .TabbedPanelsTabSelected {
         background-color: #FFF;
         width: 240px;
         height: auto;
    /* This selector floats the content panels for the widget so that they
    * render to the right of the tabbed buttons.
    .VTabbedPanels .TabbedPanelsContentGroup {
         clear: none;
         float: left;
         padding: 0px;
         width: auto;
         height: auto;
    /* Styles for Printing */
    @media print {
    .TabbedPanels {
         overflow: visible !important;
    .TabbedPanelsContentGroup {
         display: block !important;
         overflow: visible !important;
         height: auto !important;
    .TabbedPanelsContent {
         overflow: visible !important;
         display: block !important;
         clear:both !important;
    .TabbedPanelsTab {
          overflow: visible !important;
          display: block !important;
          clear:both !important;
    I got preview in any browser OK, like I wanted but clicking on tabs not working and they not switching content per each tab. I maked tabindexes: 0, 10, 20,30, 40, 50, 60, 70, 80, 90 and nothing works.
    Where is problem?

    But the tabs do work and the content does show!
    Clicking the first two tabs causes the content to fly over to the right, outside of the content panel, exactly as the style rules tell it to.
    Clicking the other 7 tabs causes the content to show aligned to the left within the content panel, again as per the style rules.
    The total height of the tabs is 882 px including the bottom margins.
    The height of the content panels varies with the content, in case of the first two tabs there is no content contained within the content panel thus the height is zero; of the remaining content panels the height is about 1.5x the height of one line.
    In other words there are no surprises except for the fact that it would have been better not to have used the SpryTabbedPanels widget for this.
    Of course I am supposing that you have changed the personality of the TabbedPanel widget on purpose.
    If this is not the case then a good start will be
    to get rid of the modified SpryTabbedPanels.css and re-instate the original.
    to get rid of the all of the apDiv's including those inside the content panel.
    to reduce the overall height of the tabs to a manageable height by reducing the height of the images.
    Gramps

  • Dreamweaver CS4 Errors, Spry widget not working. Please Help!

    I am redesigning a website and downloaded an html file from the present contact page. I opened it in Dreamweaver and I started to have this errors. The html file I opened has some JavaScripts in it and I believe, the the scripts got a conflict with Dreamweaver CS4. I already deleted these files I tried to open and still I'm encountering these errors.
    These are the errors I'm getting:
    1. When I open the Dreamweaver, this message pop-ups:
       "While executing onLoad in RecordsetFind.htm, the following JavaScript error(s) occured:
        In file "RecordsetFind"
        findRs is not defined."
    2. I click OK. Then I'm getting this message:
       "While executing onLoad in Design Notes_onOpen.htm, the following JavaScript error(s) occured:
        In file "Design Notes_onOpen"
        onOpen is not defined."
    3. I just click OK. Then, when I open an html file to edit or create a new one, this error pops up again:
       "While executing onLoad in Design Notes_onOpen.htm, the following JavaScript error(s) occured:
        In file "Design Notes_onOpen"
        onOpen is not defined."
    4. I will again just click OK, then this error appears:
       "The following translators were not loaded due to errors:
        Coldfusion.htm: has configuration information that is invalid.
        SpryWidget.htm: has configuration information that is invalid."
    5. Then, I will just click OK again. Then, when I'm working with the projects or creating a new project with Spry, it is not working properly anymore. I have to go the code and update the Spry list or content manually.
    6. When I close Dreamweaver, I'm always having this error:
       "While executing onLoad in TeamAdminTempDelete.html, the following JavaScript error(s) occured:
        In file "TeamAdminTempDelete"
        delTempFile is not defined"
    I tried uninstalling the Dreamweaver and installing it again, but it did not work.
    What should I do to make the spry working again and to remove all these annoying errors? By the way, all my Spry widgets are not working and these errors I'm encountering in all of the Sites I'm working on. How can I make it work again? I tried looking for troubleshoot in CS4, but I could not see one, only in CS3.
    Please help.

    See if the following helps (found in Dreamweaver FAQ)
    JavaScript and other unexpected errors
    Mark A. Boyd
    Keep-On-Learnin' :-)
    This message was processed and edited by Jive.
    It shall not be considered an accurate representation of my words.
    It might not even have been intended as a reply to your message.

Maybe you are looking for

  • Code  taking too much time to output

    Following  code is taking too much time to execute . (some time giving Time_out ) ind = sy-tabix.     SELECT SINGLE * FROM mseg INTO mseg        WHERE bwart = '102' AND              lfbnr = itab-mblnr AND              ebeln = itab-ebeln AND          

  • Blueprint

    Hi 1.Is there any material or website that provides information about the project implementation in the real business scenarios. I mean a sample project in work place. Does anybody have the blueprint material personally? 2. What is the difference bet

  • Reinstall from 2009 version on Mac OS X Mountain Lion

    Reinstalling Logic Pro 9 version of 2009 on Mac OS X Mountain Lion 10.8.3 stop the installation before installing Jam Pack Content 2. Logic Pro installation fail to install. What I need to do to make complete installation successfull of Logic? Thank

  • HT1414 When I cut my iPad on, it goes to a grey screen that say [iPad]. I can't do anything with it. Any suggestions?

    I got this from a friend. She said it worked when she first got it and then one day this appeared and I can't get it to work again. Can anyone else help

  • Migration from SQL Reports to Oracle Reports

    Hello everybody, We have a requirement where we need to convert various SQL reports in .SQL format to Oracle reports ie rdf format. Is there a quick solution for this? Is there a tool available? Or is the straight forward approach of starting an enti