joon
01-14-2009, 12:03 AM
1) Script Title: Cool DHTML Tooltip
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm
3) Describe problem:
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
else
tipobj.style.top=curY+offsetypoint+"px"
tipobj.style.visibility="visible"
}
} I like to print the value of offsetHeight.
The following would-be code doesn't work correctly but it will show what I want.
would-be code
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
else
tipobj.style.top=curY+offsetypoint+"px"
tipobj.style.visibility="visible"
}
}
print here ("The value of offsetHeight is variables.offsetHeight.")
[b] target result
"The value of offsetHeight is 100."
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm
3) Describe problem:
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
else
tipobj.style.top=curY+offsetypoint+"px"
tipobj.style.visibility="visible"
}
} I like to print the value of offsetHeight.
The following would-be code doesn't work correctly but it will show what I want.
would-be code
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
else
tipobj.style.top=curY+offsetypoint+"px"
tipobj.style.visibility="visible"
}
}
print here ("The value of offsetHeight is variables.offsetHeight.")
[b] target result
"The value of offsetHeight is 100."