Scusate, credevo di aver inserito un titolo abbastanza consono...
ho provato ad applicare le modifiche, ma non sembra funzionare... posto il nuovo codice aggiornato...
codice:<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Documento senza titolo</title> <link rel="stylesheet" type="text/css" href="stile.css" /> <script type="text/javascript" language="javascript"> <!-- var images = new array(); images[1] = 'festa in mensa1.jpg'; images[0] ='festa in mensa2.jpg'; images[2] = 'n1538906173_164241_1750.jpg'; function imagerota(val) { alert(val); document.getElementById('center_photo').src = images[val]; } //--> </script> </head> <body> <div id="div_container"> <div id="div_testa"> <div id="div_center"> <div id="div_center_photo"> [img]festa in mensa1.jpg[/img] </div> <div id="div_center_text"> <a href="#" onclick = "imagerota(0); return false"> uno due tre </div> </div> </div> </body> </html>

Rispondi quotando