Ciao Raga,
Come faccio a passare delle variabili ad un Layer js
( vorrei ottenere un risultato tipo un alt )
codice:
<html>
<head>
<title>Untitled</title>
<style type="text/css">
<!--
.longAlt {
position:absolute;
top:-1000;
left:-1000;
width:300;
background-color:#ffffff;
font-family:arial;
font-size:8pt;
border:1px solid black
}
-->
</style>
<script language="JavaScript" type="text/javascript">
<!--
var testo = "";
var entered = false;
function pippo(anImage,aLeggenda) {
e = event;
if (entered == false) {
testo = document.getElementById(aLeggenda).innerHTML;
} // if (entered == false)
aDiv = document.getElementById(aLeggenda);
aDiv.style.left = e.clientX;
aDiv.style.top = e.clientY + 10;
} // function pippo(anImage)
function pippo2(anImage,aLeggenda) {
aDiv = document.getElementById(aLeggenda);
aDiv.style.left = -1000;
aDiv.style.top = -1000;
}
//-->
</script>
</head>
<body>
<div id="volo1" class="longAlt">
<?PHP> echo "MIA VARIABILE"; ?>
</div>
[img]i1.jpg[/img]
</body>
</html>
.