D
darius
I have popup tooltip aka bubble hint implemented as below (for
simplicity, I've removed code to position the popup.)
<script>
// pop up 'pop' next to object 'obj'
function popup( obj, pop) {
pop.style.display="block";
//
//
}
function unpop( pop ) {
pop.style.display = "none";
}
</script>
<style>
..popupwin {
display: none;
}
</style>
<DIV name="popupA" ID="popupA" class="popupwin">
<b>some helpful text</b>
</DIV>
<span onmouseover="popup(this,popupA)" onmouseout="unpop(popupA)" > some
text
</span>
Works in IE6 and Opera 9. In FF 1.5, page loads w/o error, but when I
mouse over, I get "popupA not defined".
I substituted popupA with document.getElementByID('popupA') in the line
above and it gave me "document.getElementByID not a function". Huh?
any idea appreciated
simplicity, I've removed code to position the popup.)
<script>
// pop up 'pop' next to object 'obj'
function popup( obj, pop) {
pop.style.display="block";
//
//
}
function unpop( pop ) {
pop.style.display = "none";
}
</script>
<style>
..popupwin {
display: none;
}
</style>
<DIV name="popupA" ID="popupA" class="popupwin">
<b>some helpful text</b>
</DIV>
<span onmouseover="popup(this,popupA)" onmouseout="unpop(popupA)" > some
text
</span>
Works in IE6 and Opera 9. In FF 1.5, page loads w/o error, but when I
mouse over, I get "popupA not defined".
I substituted popupA with document.getElementByID('popupA') in the line
above and it gave me "document.getElementByID not a function". Huh?
any idea appreciated