Hi,
I create and display a 'div' on mouseOver on a button, and hide it on
mouseOut. But my script work only for the first button. after this, the div
is displayed, but the close function doeas'nt work anymore...
Did someone have any idea ?
Thank you..
Here's my code..
function dHelp(btn,txt){
yPos = eval(document.g etElementById(b tn).offsetTop);
xPos = eval(document.g etElementById(b tn).offsetLeft) ;
var noteDiv=documen t.createElement ('div');
document.body.a ppendChild(note Div);
noteDiv.id='not eDiv';
noteDiv.style.p osition='absolu te';
noteDiv.style.t op=yPos-100;
noteDiv.style.l eft=xPos+20;
noteDiv.style.b ackground='ligh tyellow';
noteDiv.style.f ontFamily='Verd ana';
noteDiv.style.f ontSize='x-small';
noteDiv.style.w idth=200;
noteDiv.style.h eight=85;
noteDiv.style.p adding=8;
noteDiv.style.t extAlign='cente r';
noteDiv.style.b order='1 solid black';
noteDiv.innerHT ML=txt;
}
function close_Help(){
document.getEle mentById('noteD iv').style.visi bility='hidden' ;
}
I create and display a 'div' on mouseOver on a button, and hide it on
mouseOut. But my script work only for the first button. after this, the div
is displayed, but the close function doeas'nt work anymore...
Did someone have any idea ?
Thank you..
Here's my code..
function dHelp(btn,txt){
yPos = eval(document.g etElementById(b tn).offsetTop);
xPos = eval(document.g etElementById(b tn).offsetLeft) ;
var noteDiv=documen t.createElement ('div');
document.body.a ppendChild(note Div);
noteDiv.id='not eDiv';
noteDiv.style.p osition='absolu te';
noteDiv.style.t op=yPos-100;
noteDiv.style.l eft=xPos+20;
noteDiv.style.b ackground='ligh tyellow';
noteDiv.style.f ontFamily='Verd ana';
noteDiv.style.f ontSize='x-small';
noteDiv.style.w idth=200;
noteDiv.style.h eight=85;
noteDiv.style.p adding=8;
noteDiv.style.t extAlign='cente r';
noteDiv.style.b order='1 solid black';
noteDiv.innerHT ML=txt;
}
function close_Help(){
document.getEle mentById('noteD iv').style.visi bility='hidden' ;
}
Comment