Topic: Can't embed new sv gallery code

I'm trying to make my sv gallery scale to 100% within the index.html page I have set up, but when I use the new embed code, it doesn't show the gallery at all in firefox. The code below is my index.html page.

Why can't I use the new embed code?

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>
<title>Rod Daniel: Photographer, Franklin, TN</title>

<meta name="description" content="Since his youth, Rod Daniel has been taking and printing black and white photographs. It wasnít until he began to travel the quiet back roads of America on a Harley-Davidson motorcycle that the combination of self-sufficiency and isolation that he felt was met in the landscape he found along the way.">
<meta name="keywords" content="Rod Daniel, Rod, Daniel, photographer, movies, advertising producer, TV commercial director, black and white, landscapes, artist, photo, photography, Franklin, TN, portrait, commercial, gallery, artist statement, about Rod Daniel">
<meta name="robots" content="index, follow">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">    
    /* hide from ie on mac \*/
    html {
        height: 100%;
        overflow: scroll; 
    }
    
    #flashcontent2 {
        height: 100%;
    }
    /* end hide */

    body {
        height: 100%;
        margin: 0;
        padding: 0;
        background-color: #222222;
        color: ffffff;
        font-family:sans-serif;
        font-size:20;
    }
    
    a {    
        color:#cccccc;
    }
    
</style>


<link href="rod_style.css" rel=stylesheet type="text/css">

</head>


<body bgcolor="#222222" topmargin="0">
<br>
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#222222" width="800" align="center">
    <tr>
        <td><a href="index.html"><img src="images/roddaniel_logo.gif" alt="Rod Daniel logo" width="245" height="53" hspace="0" vspace="0" border="0" align="left"></a>
        <td width="100%" align="right" valign="middle"><a href="index.html" class="nav">photography</a>&nbsp;&nbsp;||&nbsp;&nbsp;<a href="news.html" class="nav">news</a>&nbsp;&nbsp;||&nbsp;&nbsp;<a href="about.html" class="nav">about</a>&nbsp;&nbsp;||&nbsp;&nbsp;<a href="contact.html" class="nav">contact</a></td>
    </tr>
      <tr>
        <td valign="top" colspan=2>
            <div id="flashcontent2">SimpleViewer requires JavaScript and the Flash Player. 
            <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>    
            <script type="text/javascript">
        var fo = new SWFObject("simpleviewer.swf", "viewer", "800", "560", "4", "222222");    
        fo.addVariable("preloaderColor", "0xffffff");
        fo.addVariable("xmlDataPath", "gallery.xml");    
        fo.write("flashcontent2");    
            </script>
        </td>
    </tr>
    <tr>
        <td align="center" bgcolor="#222222" colspan=2><br>&copy;2010 Rod Daniel Photography. All rights reserved.<br><br></td>
     </tr>
</table>
</body>
</html>

Re: Can't embed new sv gallery code

A. Your table has a fixed width and your gallery is in the table... <table cellpadding="0" cellspacing="0" border="0" bgcolor="#222222" width="800" align="center">

B. here is your HTML code without errors. The W3C validator really helps getting your code to work in browsers.

<!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>Rod Daniel: Photographer, Franklin, TN</title>

<meta name="description" content="Since his youth, Rod Daniel has been taking and printing black and white photographs. It wasnít until he began to travel the quiet back roads of America on a Harley-Davidson motorcycle that the combination of self-sufficiency and isolation that he felt was met in the landscape he found along the way." />
<meta name="keywords" content="Rod Daniel, Rod, Daniel, photographer, movies, advertising producer, TV commercial director, black and white, landscapes, artist, photo, photography, Franklin, TN, portrait, commercial, gallery, artist statement, about Rod Daniel" />
<meta name="robots" content="index, follow" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">    
    /* hide from ie on mac \*/
    html {
        height: 100%;
        overflow: scroll; 
    }
    
    #flashcontent2 {
        height: 100%;
    }
    /* end hide */

    body {
        height: 100%;
        margin: 0;
        padding: 0;
        background-color: #222222;
        color: ffffff;
        font-family:sans-serif;
        font-size:20;
    }
    
    a {    
        color:#cccccc;
    }
    
</style>


<link href="rod_style.css" rel="stylesheet" type="text/css" />

</head>


<body bgcolor="#222222" style="margin-top:0;">
<br />
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#222222" width="800" align="center">
    <tr>
        <td><a href="index.html"><img src="images/roddaniel_logo.gif" alt="Rod Daniel logo" width="245" height="53" hspace="0" vspace="0" border="0" align="left" /></a></td>
        <td width="100%" align="right" valign="middle"><a href="index.html" class="nav">photography</a>&nbsp;&nbsp;||&nbsp;&nbsp;<a href="news.html" class="nav">news</a>&nbsp;&nbsp;||&nbsp;&nbsp;<a href="about.html" class="nav">about</a>&nbsp;&nbsp;||&nbsp;&nbsp;<a href="contact.html" class="nav">contact</a></td>
    </tr>
      <tr>
        <td valign="top" colspan="2">
            <div id="flashcontent2">SimpleViewer requires JavaScript and the Flash Player. 
            <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>    
            <script type="text/javascript">
        var fo = new SWFObject("simpleviewer.swf", "viewer", "800", "560", "4", "222222");    
        fo.addVariable("preloaderColor", "0xffffff");
        fo.addVariable("xmlDataPath", "gallery.xml");    
        fo.write("flashcontent2");    
            </script>
        </td>
    </tr>
    <tr>
        <td align="center" bgcolor="#222222" colspan="2"><br />&copy;2010 Rod Daniel Photography. All rights reserved.<br /><br /></td>
     </tr>
</table>
</body>
</html>
Mike Richards
SimpleViewer Support Team.

Re: Can't embed new sv gallery code

Thanks for the advice. My html skills are old and dusty the W3C validator will come in handy.

I'm still having the same problem with the svbuilder embed code. I removed it from being in the table and am using the code generated from SimpleViewer-Pro v2.0.1

Here is the code I can't get to work in Firefox:

<!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>Rod Daniel: Photographer, Franklin, TN</title>

<meta name="description" content="Since his youth, Rod Daniel has been taking and printing black and white photographs. It wasnít until he began to travel the quiet back roads of America on a Harley-Davidson motorcycle that the combination of self-sufficiency and isolation that he felt was met in the landscape he found along the way." />
<meta name="keywords" content="Rod Daniel, Rod, Daniel, photographer, movies, advertising producer, TV commercial director, black and white, landscapes, artist, photo, photography, Franklin, TN, portrait, commercial, gallery, artist statement, about Rod Daniel" />
<meta name="robots" content="index, follow" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "gallery.xml";
var params = {};
params.bgcolor = "222222";
params.allowfullscreen = true;
params.allowscriptaccess = "always";
swfobject.embedSWF("simpleviewer.swf", "flashContent", "100%", "100%", "9.0.124", false, flashvars, params);
</script>

<link href="rod_style.css" rel="stylesheet" type="text/css" />

</head>

<body bgcolor="#222222" style="margin-top:0;">
<br />
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#222222" width="800" align="center">
    <tr>
        <td><a href="index.html"><img src="images/roddaniel_logo.gif" alt="Rod Daniel logo" width="245" height="53" hspace="0" vspace="0" border="0" align="left" /></a></td>
        <td width="100%" align="right" valign="middle"><a href="index.html" class="nav">photography</a>&nbsp;&nbsp;||&nbsp;&nbsp;<a href="news.html" class="nav">news</a>&nbsp;&nbsp;||&nbsp;&nbsp;<a href="about.html" class="nav">about</a>&nbsp;&nbsp;||&nbsp;&nbsp;<a href="contact.html" class="nav">contact</a></td>
    </tr>
</table>

<div id="flashContent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.adobe.com/go/getflashplayer/">Get Flash.</a></div>

<table cellpadding="0" cellspacing="0" border="0" bgcolor="#222222" width="800" align="center">
    <tr>
        <td><br />&copy;2010 Rod Daniel Photography. All rights reserved.<br /></td>
     </tr>
</table>
</body>
</html>

Re: Can't embed new sv gallery code

Please post the url to the gallery so I can see it in action.

Mike Richards
SimpleViewer Support Team.

Re: Can't embed new sv gallery code

I think  I got it working with the ability to scale it:

http://www.roddaniel.com/

Had to set the scale to 80% height to make room for the other elements on the page.