Topic: Problem enbedding viewer in html
Hello all,
I have multiple galleries then I have multiple html pages : landscape.html, portrait.html... in my website root. These html page contain my logo and they have to load the right gallery. Each galleries are in a folder : landscape, portrait... (these galleries was generated by SV photoshop plugin).
I'm really bad with html, then I've copy/paste this code in my landscape page:
<div id="flashcontent">SimpleViewer requires Macromedia Flash. <a href="http://www.macromedia.com/go/getflashplayer/">Get Macromedia Flash.</a> If you have Flash installed, <a href="index.html?detectflash=false">click to view gallery</a>.
</div>
<script type="text/javascript">
var fo = new SWFObject("http://www.mywebpage.com/landscape/viewer.swf", "viewer", "800", "600", "8", "#181818");
fo.addVariable("xmlDataPath", "http://www.mywebpage.com/landscape/gallery.xml");
fo.write("flashcontent");
</script>
BUT, the only thing that I get is the webpage with my logo following by:
"SimpleViewer requires Macromedia Flash. Get Macromedia Flash. If you have Flash installed, click to view gallery. "
What is wrong? I don't understand...
In advance, THANKS A LOT!
P.S: For information, I give you all the html code, if you see something strange (I use incomedia to generate the original code):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title>landscape</title>
<!-- Contents -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="en" />
<meta http-equiv="last-modified" content="07.11.2009 10:20:47" />
<meta http-equiv="Content-Type-Script" content="text/javascript" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<!-- imCustomHead -->
<meta http-equiv="Expires" content="0" />
<meta name="Resource-Type" content="document" />
<meta name="Distribution" content="global" />
<meta name="Robots" content="index, follow" />
<meta name="Revisit-After" content="21 days" />
<meta name="Rating" content="general" />
<!-- Others -->
<meta name="Generator" content="Incomedia WebSite X5 Evolution 8.0.11 - www.websitex5.com" />
<meta http-equiv="ImageToolbar" content="False" />
<meta name="MSSmartTagsPreventParsing" content="True" />
<!-- Parent -->
<link rel="sitemap" href="imsitemap.html" title="General Site Map" />
<!-- Res -->
<script type="text/javascript" src="res/x5engine.js"></script>
<link rel="stylesheet" type="text/css" href="res/styles.css" media="screen, print" />
<link rel="stylesheet" type="text/css" href="res/template.css" media="screen" />
<link rel="stylesheet" type="text/css" href="res/print.css" media="print" />
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="res/iebehavior.css" media="screen" /><![endif]-->
<link rel="stylesheet" type="text/css" href="res/p001.css" media="screen, print" />
<link rel="stylesheet" type="text/css" href="res/handheld.css" media="handheld" />
<link rel="alternate stylesheet" title="High contrast - Accessibility" type="text/css" href="res/accessibility.css" media="screen" />
</head>
<body>
<div id="imSite">
<div id="imHeader">
<h1></h1>
</div>
<div class="imInvisible">
<hr />
<a href="#imGoToCont" title="Skip the main menu">Go to content</a>
</div>
<div id="imBody">
<div id="imMenuMain">
<!-- Menu START -->
<a name="imGoToMenu"></a><p class="imInvisible">Main menu:</p>
<div id="imMnMn">
<ul>
<li><a href="index.html" title="">Home Page</a></li>
<li><a href="wildlife.html" title="">wildlife</a></li>
<li><a href="landscape.html" title="">landscape</a></li>
</ul>
</div>
<!-- Menu END -->
</div>
<hr class="imInvisible" />
<a name="imGoToCont"></a>
<div id="imContent">
<!-- Page START -->
<h2>landscape</h2>
<div id="imPage">
<div id="flashcontent">SimpleViewer requires Macromedia Flash. <a href="http://www.macromedia.com/go/getflashplayer/">Get Macromedia Flash.</a> If you have Flash installed, <a href="index.html?detectflash=false">click to view gallery</a>.
</div>
<script type="text/javascript">
var fo = new SWFObject("http://www.mywebpage.com/landscape/viewer.swf", "viewer", "700", "700", "8", "#181818");
fo.addVariable("xmlDataPath", "http://www.mywebpage.com/landscape/gallery.xml");
fo.write("flashcontent");
</script>
</div>
<!-- Page END -->
</div>
<div id="imFooter">
</div>
</div>
</div>
<div class="imInvisible">
<hr />
<a href="#imGoToCont" title="Read this page again">Back to content</a> | <a href="#imGoToMenu" title="Read this site again">Back to main menu</a>
</div>
<div id="imShowBoxBG" style="display: none;" onclick="imShowBoxHide()"></div>
<div id="imShowBoxContainer" style="display: none;" onclick="imShowBoxHide()"><div id="imShowBox" style="height: 200px; width: 200px;"></div></div>
<div id="imBGSound"></div>
<div id="imToolTip"><script type="text/javascript">var imt = new IMTip;</script></div>
</body>
</html>