Salve a tutti/e,
ho questo script molto semplice che carica un'immagine in un div e pure il title dell'immagine come testo.
Io vorrei poter caricare un testo formattato nel div, che nel title di un'immagine evidentemente non posso mettere. Come devo fare?codice:<script type="text/javascript" language="javascript"> function showPic (whichpic) { if (document.getElementById) { document.getElementById('placeholder').src = whichpic.href; if (whichpic.title) { document.getElementById('title').childNodes[0].nodeValue = whichpic.title; } return false; } else { return true; } } </script>