Simpleviewer problemer..
Har hentet dette script: http://www.airtightinteractive.com/simpleviewer/Min imagedata.asp ser sådan ud:
<%@ language="jscript" %>
<%
//
// imageData.asp
// -----------------------
//
// by Tony Vincent - tony_vincent@hotmail.com
//
// DESCRIPTION
// -----------------------
// This script automatically generates the XML document for SimpleViewer (v1.5 and up).
// It detects all the images in the 'images' folder. Images are ordered by filename.
//
// TO USE
// -----------------------
// 1) Place this file in the same folder as the SimpleViewer SWF.
// 2) Set your Image Album attributes below (maxImageDimension, title etc).
// 3) Set the xmlDataPath in index.html:
// in the object tag:
// <param name=FlashVars value="xmlDataPath=imageData.asp">
// and in the embed tag:
// FlashVars="xmlDataPath=imageData.asp"/>
//
var imgPath = 'gallery/photos';
var xml = '<?xml version="1.0" encoding="UTF-8" ?>';
xml += '<SIMPLEVIEWER_DATA maxImageDimension="480" textColor="0xFFFFFF" frameColor="0xFFFFFF" frameWidth="20" stagePadding="40" thumbnailColumns="3" thumbnailRows="4" navPosition="right" navDirection="LTR" title="Engagement Photos" imagePath="' + imgPath + '/images/" thumbPath="' + imgPath + '/thumbs/">';
var count = 1;
var fso, f, fc;
var folderspec = Server.MapPath(imgPath + '/images');
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.GetFolder(folderspec);
fc = new Enumerator(f.files);
for (; !fc.atEnd(); fc.moveNext()) {
xml += '<IMAGE>';
xml += '<NAME>' + fc.item().Name + '</NAME>';
//add auto captions: 'Image X'
// xml += '<CAPTION>Image ' + fc + '</CAPTION>';
xml += '</IMAGE>';
}
fc = null;
f = null;
fso = null;
xml += '</SIMPLEVIEWER_DATA>';
Response.Write(xml);
Response.End();
%>
Denne gir denne fejl:
Microsoft JScript runtime error '800a004c'
Path not found
/imageData.asp, line 36
min index.html ser sådan ud:
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>SimpleViewer</title>
<style type="text/css">
<!--
html, body {
/* \*/
height:100%;
/* hide from Mac IE 5.x */
background-color: #181818;
margin: 0;
padding: 0;
border: 0;
overflow-y: hidden;
}
-->
</style>
<!-- saved from url=(0014)about:internet -->
<script language="javascript" type="text/javascript" src="flash_detect.js">
<!--
function getFlashVersion() { return null; };
//-->
</script>
<script language="javascript" type="text/javascript">
<!--
var flashVersion = getFlashVersion();
if (flashVersion < 6) {
location.replace("upgrade.html");
}
//-->
</script>
</head>
<body>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="100%" height="100%" align="middle">
<param name="movie" value="viewer.swf" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="BGCOLOR" value="#181818" />
<embed src="viewer.swf" width="100%" height="100%" align="middle" quality="high" scale="noscale" bgcolor="#181818" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></EMBED>
</object>
</body>
</html>
Jeg fatter ikke lige hvor jeg skal rette?
