Topic: Problem Embedding SimpleViewer in Dreamweaver

Hi there,
I'm having trouble embedding my simpleviewer gallery into my local dreamweaver site. After creating a new gallery and pasting the embed code, my html looks like this:

<!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>
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
    font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
    background: 0;
    margin: 0;
    padding: 0;
    color: #000;
}

/* ~~ Element/tag selectors ~~ */
ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
    padding: 0;
    margin: 0;
}
h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;     /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
    padding-right: 0px;
    padding-left: 0px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
    font-size: 14px;
}
#SidebarTitle {
    font-size: 18px;
    text-align: right;
    color: #007CAE;
}
#category {
}
maincategory {
}
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;
}

/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
a:link {
    color: #007CAE;
    text-decoration: none; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
}
a:visited {
    color: #007CAE;
    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: none;
}

/* ~~this fixed width container surrounds the other divs~~ */
.container {
    width: 960px;
    background: #FFF;
    margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
}

/* ~~ the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo ~~ */
.header {
    background: 0;
    color: #007CAE;
    text-align: right;
    font-size: 14px;
}

/* ~~ 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 left instead of the right, simply float these columns the opposite direction (all left instead of all right) and they'll render in reverse order. There's no need to move the divs around in the HTML source.

*/
.sidebar1 {
    float: right;
    width: 180px;
    background: 0;
    padding-bottom: 10px;
}
.content {

    padding: 0px 0;
    width: 780px;
    float: left;
}

/* ~~ This grouped selector gives the lists in the .content area space ~~ */
.content ul, .content ol {
    padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
}

/* ~~ The navigation list styles (can be removed if you choose to use a premade flyout menu like Spry) ~~ */
ul.nav {
    list-style: none; /* this removes the list marker */
    border-top: 1px solid #666; /* this creates the top border for the links - all others are placed using a bottom border on the LI */
    margin-bottom: 15px; /* this creates the space between the navigation on the content below */
}
ul.nav li {
    border-bottom: 1px solid #666; /* this creates the button separation */
}
ul.nav a, ul.nav a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */
    padding: 5px 5px 5px 15px;
    display: block; /* this gives the link block properties causing it to fill the whole LI containing it. This causes the entire area to react to a mouse click. */
    width: 160px;  /*this width makes the entire button clickable for IE6. If you don't need to support IE6, it can be removed. Calculate the proper width by subtracting the padding on this link from the width of your sidebar container. */
    text-decoration: none;
    background: #C6D580;
}
ul.nav a:hover, ul.nav a:active, ul.nav a:focus { /* this changes the background and text color for both mouse and keyboard navigators */
    background: #ADB96E;
    color: #FFF;
}

/* ~~ The footer ~~ */
.footer {
    padding: 10px 0;
    background: 0;
    position: relative;/* this gives IE6 hasLayout to properly clear */
    clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
    font-size: x-small;
    text-align: center;
    color: #0A80AA;
}

/* ~~ 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: 0px;
}
.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: 0px;
}
.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 #footer is removed or taken out of the #container */
    clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
}

}
#toplinks {
    font-size: small;
    color: #007EAD;
}
toplinks {
}
maincategory {
    font-family: Arial, Helvetica, sans-serif;
    font-size: x-large;
    font-weight: lighter;
}
.container .header .header {
    font-size: 36px;
    font-weight: 100;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: underline;
}
.container .header .nav {
    font-size: medium;
}
#category {
    font-size: 36px;
    color: #007CAE;
}
#links {
    color: #007CAE;
    font-size: 12px;
    text-align: right;
    text-decoration: overline;
}
-->
</style>
</head>

<p>&nbsp;</p>
<div class="container">
  <div class="header"> <toplinks>
    <a href="aboutus_overview.html">about us</a>             <a href="learning_overview.html">learning</a>             <a href="admissions_overview.html">admissions</a>            <a href="giving_overview.html">giving</a>
    <p><a href="index.html"><img src="../Logos/weblogo.jpg" alt="logo" width="450" height="139" align="left" longdesc="../Logos/weblogo.jpg" /></a></p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
<span class="large">                <span id="category">                    <span id="category"><a href="learning_overview.html">learning</a></span></span></span>
    </p>
   
    <p class="links" id="links"><a href="learning_overview.html">overview</a>       <a href="learning_programs.html">programs</a>       <a href="learning_pedagogy.html">pedagogy</a>       <a href="learning_philosophy.html">philosophy</a>       <a href="learning_studentwork.html"><strong>student work</strong></a>       <a href="learning_faq.html">faq</a></p>
    <p class="nav">&nbsp;</p>
  </div>

  <div class="sidebar1">
   <p align="center" style="text-align: left;-moz-border-radius-topleft: 20px; -webkit-border-top-left-radius: 20px; -moz-border-radius-topright: 20px; -webkit-border-top-right-radius: 20px; -moz-border-radius-bottomleft: 15px; -webkit-border-bottom-left-radius: 15px;-moz-border-radius-bottomright: 15px; -webkit-border-bottom-right-radius: 15px; padding: 5px 10px; border: solid 1px #006D97; font-size: 14px;">      <span id="SidebarTitle">Why Peregrine?</span><br />
   <!-- end .sidebar1 -->
   <br />
   The Peregrine Falcon is an amazing animal. It is the world's fastest bird, reaching up to 200 miles per hour when diving. <br />
   The Peregrine is also incredibly adaptive, migrating to and inhabiting almost every place on Earth. <br />
   <br />
   Children are like the Peregrine, capable of amazing adaptation and resourcefulness. At the Peregrine School, we nurture children so they can become lifelong learners and explorers.</div>
 


<div class="content">
<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
$(document).ready(function () {
SV.simpleviewer.load("sv-container", "100%", "100%", "222222", true);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

<h1>&nbsp; </h1>
<h3>&nbsp;</h3>
  <!-- end .content --></div>
  <div class="footer">The Peregrine Project          2907 Portage Bay West, Davis, California, 95616     (530) 758-8845     info@theperegrineproject.net</div>
  <!-- end .container --></div>
</body>
</html>


However, I cannot see the slideshow in dreamweaver or when I preview the site in safari. The entire site is on my local drive, so I don't have a link yet.

Can someone help me?

Thanks!
mischa

Re: Problem Embedding SimpleViewer in Dreamweaver

Make sure that your 'svcore' folder is in the same directory as your HTML page.

Steven Speirs
SimpleViewer Support Team.