aggiungo anche codice del tutorial per chi non volesse scaricare tutorial e aiutarmi con LB2...
con questo codice riportato + sotto
si vede che da 4 pulsanti si accede ad una foto differente, pero di una stessa gallery di 4 immagini come si vede da links:
http://www.beebop.it/test/LB2%202/te...ash/index.html
nel flash, su un livello chiamato actions:
// Flash LightBox v2
// by Alan Curtis
//
// Adaptation for flash of the original script by Lokesh Dhakar - http://www.huddletogether.com/projects/lightbox2/
// http://www.alancurtis.it
// http://blog.alancurtis.it
//
// Creo un array con i nomi delle immagini grandi da caricare.
// Per aggiungere immagini, basta continuare con "pics[4] = ..." e così via.
// I create an array with the names of the big images to load.
// To add more images, just continue with "pics[4] = ..." and so on.
pics = new Array();
pics[0] = "borsacaterinabianca.jpg";
pics[1] = "borsacaterinabiancarossa.jpg";
pics[2] = "borsacaterinabrunera.jpg";
pics[3] = "borsacaterinarossa.jpg";
// Url - cartella dove sono contenute le immagini, senza slash finale!
// Url - folder with the images, without ending slash!
var url = "fotografie";
// Ora creo una variabile chiamata "allpics" che contiene tutti i nomi delle
// immagini separate da una virgola. Questa variabile verrà poi passata al LightBox.
// Now I create a variable called "allpics" which contains all the images' names
// divided by a comma. This var will be passed to LightBox.
var allpics = url+"/"+pics[0];
var i = 1;
while (i<pics.length) {
allpics = allpics+","+url+"/"+pics[i];
i++;
}
per i tasti flash
on (release) {
getURL("javascript:show(0, '"+allpics+"')");
}
nell'html:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Flash Lightbox v2</title>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
</head>
<body>
<center><h2>Flash Lightbox v2</h2></center>
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="100%" align="center" valign="top">
<div class="flashy">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="400" height="200" id="flash-lightboxv2" align="middle" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="flash-lightboxv2.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#cccccc" />
<param name="wmode" value="transparent" />
<embed src="flash-lightboxv2.swf" quality="high" bgcolor="#cccccc" width="400" height="200" name="flash-lightboxv2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" />
</object>
</div>
<font size="1"> Flash Lightbox v2 by <a href="http://blog.alancurtis.it/">
Alan Curtis Blog - software, scripts, web marketing & SEO</a></font>
</p></td>
</tr>
</table>
<div id="anchors"></div>
</body>
</html>