Niente le sto provando tutte, ma nessun risultato, funziona poco e male e in certi casi non funziona affato...
vi scrivo di nuovo le due chiamate, la prima funziona correttamente,
la seconda non va:
<span class=Label style="COLOR: white; FONT-SIZE: 8pt; WIDTH=100px; HEIGHT=15px; overflow:hidden; text-transform:'capitalize';"
onMouseover="show(this,event,'test')"
onMouseout="hide()">test</span>
<SPAN><INPUT CLASS=TextBox NAME='text' VALUE='test'
STYLE='width: 200px;'
onMouseover="show(this,event,'test')"
onMouseout="hide()" DISABLED></SPAN>
La funzione è questa:
function show(current,e,text){
if (window.document.all||window.document.getElementBy Id){
thetitle=text.split('
');
if (thetitle.length>1){
thetitles='';
for (i=0;i<thetitle.length;i++)
thetitles+=thetitle[i];
current.title=thetitles;
}
else
current.title=text;
}
else if (window.document.layers){
window.document.tooltip.document.write('<layer bgColor="white" style="border:1px solid black;font-size:12px;">'+text+'</layer>');
window.document.tooltip.document.close();
window.document.tooltip.left=e.pageX+5;
window.document.tooltip.top=e.pageY+5;
window.document.tooltip.visibility="show";
}
}
function hide(){
if (document.layers)
window.document.tooltip.visibility="hidden";
}
l'unica differenza è che la text box la disegno usando java, ma la stringa prodotta con java è comunque html normale quindi è la stessa cosa.
ciao e grazie.