E
Eadmund
Hi all,
Odd question / problem: I'm using a tooltip fom the "Dynamic Drive
DHTML code library (www.dynamicdrive.com) - v-cool" - (snipits that are
relevant trimed for readability and included below). I want to be able
to drag the tooltip image (this is working fine) BUT leave a copy
behind as I drag.
ie. if you drag slowly, you just get a solid tooltip sized line behind
the object. Any idea how this can be achieved?
Regards
Eadmund
##### the javascript bit ###
if (enabletip){
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//position the horizontal position of the menu where the mouse is
positioned
tipobj.style.left=curX+offsetxpoint+"px";
tipobj.style.top=curY+offsetypoint+"px";
tipobj.style.visibility="visible";
}
## the bitthat calls it in HTML body ####
<script type="text/javascript">
if (ie||ns6) var tipobj=document.all? document.all["dhtmltooltip"] :
document.getElementById? document.getElementById("dhtmltooltip") : "";
document.onmousemove=positiontip;
</script>
Odd question / problem: I'm using a tooltip fom the "Dynamic Drive
DHTML code library (www.dynamicdrive.com) - v-cool" - (snipits that are
relevant trimed for readability and included below). I want to be able
to drag the tooltip image (this is working fine) BUT leave a copy
behind as I drag.
ie. if you drag slowly, you just get a solid tooltip sized line behind
the object. Any idea how this can be achieved?
Regards
Eadmund
##### the javascript bit ###
if (enabletip){
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//position the horizontal position of the menu where the mouse is
positioned
tipobj.style.left=curX+offsetxpoint+"px";
tipobj.style.top=curY+offsetypoint+"px";
tipobj.style.visibility="visible";
}
## the bitthat calls it in HTML body ####
<script type="text/javascript">
if (ie||ns6) var tipobj=document.all? document.all["dhtmltooltip"] :
document.getElementById? document.getElementById("dhtmltooltip") : "";
document.onmousemove=positiontip;
</script>