prova una soluzione del genere, non l'ho testato potrebbe non funzioanre il talcaso riporta l'eventuale errore
flashcodice:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="css/style.css" type="text/css" media="screen"> <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen"> <script type="text/javascript" src="js/prototype.lite.js"></script> <script type="text/javascript" src="js/moo.fx.js"></script> <script type="text/javascript" src="js/litebox-1.0.js"></script> <script type="text/javascript"> function show(image) { var a = document.getElementById('ancoraggio"+image+"'); var f = new Array() f[1] = "images/mare(1).JPG"; f[2] = "images/mare(2).JPG"; f[3] = "images/mare(3).JPG"; f[4] = "images/mare(4).JPG"; a.setAttribute('href',f[image]); myLightbox.start(a); } </script> <title>Swf vs Litebox</title> </head> <body onload="initLightbox()"> <table width="900" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><div align="center"> <object type="application/x-shockwave-flash" data="thumb2.swf" wmode="transparent" width="850" height="150"> <param name="movie" value="thumb2.swf"> <param name="quality" value="high"> <param name="wmode" value="transparent"> </object> </div></td> </tr> </table> </body> </html>
codice:on (press) { // Pulsante 1 getURL("java-script:show(1)"); } on (press) { // Pulsante 2 getURL("java-script:show(2)"); } on (press) { // Pulsante 3 getURL("java-script:show(3)"); } on (press) { // Pulsante 4 getURL("java-script:show(4)"); }![]()

Rispondi quotando