ho trovato uno script javascript che praticamente mi visualizza le immagini tramite un programma fatto con flash, ma non riesco a capire in che cartella devo copiare le immagini per visualizzarle sul flash.

il codice javascript è questo:


function getimageinfo(show,currentimage)
{
var label = currentimage.substring(0,currentimage.lastIndexOf( "."));
if (label.indexOf("/") > 0) {
label = label.substring(label.lastIndexOf("/")+1);
}
if (show == "1") {
page = "res/"+label+".html";
openwin = window.open(page,"","width=450,height=500,scrollba rs=1,resizable=0,toolbar=0,location=0,status=0,men ubar=0");
}
}
function jstrigger(currentimage)
{
getimageinfo(1,currentimage);
}

function fullscreen() {

var isWin=(navigator.appVersion.indexOf("Win")!=-1)? true : false;
var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)? true : false;
var notIE7 = (navigator.appVersion.indexOf("MSIE 7.0")!=-1)? false : true;

if(isWin&&isIE&&notIE7){
var fullwindow = window.open("default.html",'FotoPlayer',"fullscree n=1, scrollbars=0");
fullwindow.focus();
}else{
// for non-ie browsers, specify width and height instead of using fullscreen
var fullwindow = window.open("default.html","FotoPlayer","width="+s creen.availWidth+",height="+screen.availHeight);
fullwindow.moveTo(0,0);
fullwindow.focus();
}
}


function SDTF(state)
{
var flashMovie=getFlashMovieObject("xmlphotogallery");
flashMovie.SetVariable("mousestate", state);
}

function getFlashMovieObject(movieName)
{
if (window.document[movieName])
{
return window.document[movieName];
}
if (navigator.appName.indexOf("Microsoft Internet")==-1)
{
if (document.embeds && document.embeds[movieName])
return document.embeds[movieName];
}
else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
{
return document.getElementById(movieName);
}
}


function embedfotoplayer(fpversion,unit,fpwidth,fpheight,fl ashbgcolor) {
var fotoplayer_width= 0, fotoplayer_height= 0;
if (unit == "pixels") {
fotoplayer_width= fpwidth;fotoplayer_height= fpheight;
}
else {
fotoplayer_width= fpwidth+"%"; fotoplayer_height= fpheight+"%";
}
var querystring = window.location.search;
var querystringValue = querystring.substring(querystring.indexOf("=") +1, querystring.length);
var MM_contentVersion = 7;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words[i])))
continue;
var MM_PluginVersion = words[i];
}
var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.appVersion.indexOf("Win") != -1)) {
MM_FlashCanPlay = CheckFlash(MM_contentVersion);
}
if ( MM_FlashCanPlay ) {
document.write(' <OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');
document.write(' ID="xmlphotogallery" WIDTH="'+fotoplayer_width+'" HEIGHT="'+fotoplayer_height+'" ALIGN="middle" onMouseOut="SDTF(0)" onMouseOver="SDTF(1)">');
document.write(' <PARAM NAME=movie VALUE="res/'+fpversion+'"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE='+flashbgcolor+'>');
document.write(' <PARAM NAME=FlashVars VALUE="configpath=res/config.xml&openfolder='+querystringValue+'" >');
document.write(' <EMBED src="res/'+fpversion+'" bgcolor='+flashbgcolor+' quality="high" ');
document.write(' swLiveConnect=TRUE WIDTH="'+fotoplayer_width+'" HEIGHT="'+fotoplayer_height+'" NAME="xmlphotogallery" ALIGN="middle" onMouseOut="SDTF(0)" onMouseOver="SDTF(1)" ');
document.write(' FlashVars="configpath=res/config.xml&openfolder='+querystringValue+'"');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write(' </EMBED>');
document.write(' </OBJECT>');
} else{
document.write('

<font color="#666666" size="3" face="Arial">Flash plugin not detected. Please install Flash player and visit again.</font>');
}
}








la pagina html è questa:


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Keywords" CONTENT="content">
<meta name="description" CONTENT="Photo Album powered by JAlbum FotoPlayer v2.0 Trial Version">


<link href="res/styles.css" rel=stylesheet>
<script type="text/javascript" src="res/javascript.js"></script>
<script language="vbscript"> Function CheckFlash(version) on error resume next
CheckFlash= IsObject(CreateObject("ShockwaveFlash.ShockwaveFla sh." & version)) End Function </script>


</head>
<BODY bgcolor=#2e2e2e marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" link=#666666 vlink=#666666 alink=#666666 >



<div id="flash" align="center">
<script language="JavaScript"> embedfotoplayer("fotoplayer.swf","pixels","649","5 86","#2e2e2e"); </script>
<noscript>

<font color="#666666" size="3" face="Arial">Please Enable Javascript in your browser and visit again.</font></noscript>
</div>


</body>
</html>