Ok this could be complicated. I'm using two different DD scripts: theImage Thumbnail Viewer and one other that I can't seem to find the name of. It is a variation of the tooltip script though... one that scrolls into view (I will post the code for it at the end of this message).
The problem I'm getting is that I have tooltips over the image thumbnails. Normally, they work, but when I use the 'Image Thumbnail Viewer' script, and then drag the images, the tooltips cease to work. Without dragging, everything is fine. So it seems that dragging causes the problem... any help with this would be appreciated. The code for the tooltip follows:
This goes in a STYLE tag:
<!--
BODY {OVERFLOW:scroll;OVERFLOW-X:hidden}
.DEK {POSITION:absolute;VISIBILITY:hidden;Z-INDEX:200;}
//-->
This goes in the BODY:
<DIV ID="dek" CLASS="dek"></DIV>
This is the main code:
<SCRIPT TYPE="text/javascript">
Xoffset= -100;
Yoffset= 20;
var nav,old,iex=(document.all),yyy=-1000;
if(navigator.appName=="Netscape"){(document.layers)?nav=true
ld=true;}
if(!old){
var skn=(nav)?document.dek:dek.style;
if(nav)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=get_mouse;
}
function popup(msg,bak,hgt){
var content="<TABLE WIDTH=200 BORDER=0 BORDERCOLOR=black CELLPADDING=2 CELLSPACING=0 "+
"BGCOLOR="+bak+"><TD ALIGN=center><FONT COLOR=black SIZE=1><marquee behavior=slide height="+hgt+" direction=down><center>"+msg+"</center></marquee></FONT></TD></TABLE>";
if(old){alert(msg);return;}
else{yyy=Yoffset;
if(nav){skn.document.write(content);skn.document.close();skn.visibility="visible"}
if(iex){document.all("dek").innerHTML=content;skn.visibility="visible"}
}
}
function get_mouse(e){
var x=(nav)?e.pageX:event.x+document.body.scrollLeft;skn.left=x+Xoffset;
var y=(nav)?e.pageY:event.y+document.body.scrollTop;skn.top=y+yyy;
}
function kill(){
if(!old){yyy=-1000;skn.visibility="hidden";}
}
//-->
</SCRIPT>
The problem I'm getting is that I have tooltips over the image thumbnails. Normally, they work, but when I use the 'Image Thumbnail Viewer' script, and then drag the images, the tooltips cease to work. Without dragging, everything is fine. So it seems that dragging causes the problem... any help with this would be appreciated. The code for the tooltip follows:
This goes in a STYLE tag:
<!--
BODY {OVERFLOW:scroll;OVERFLOW-X:hidden}
.DEK {POSITION:absolute;VISIBILITY:hidden;Z-INDEX:200;}
//-->
This goes in the BODY:
<DIV ID="dek" CLASS="dek"></DIV>
This is the main code:
<SCRIPT TYPE="text/javascript">
Xoffset= -100;
Yoffset= 20;
var nav,old,iex=(document.all),yyy=-1000;
if(navigator.appName=="Netscape"){(document.layers)?nav=true

if(!old){
var skn=(nav)?document.dek:dek.style;
if(nav)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=get_mouse;
}
function popup(msg,bak,hgt){
var content="<TABLE WIDTH=200 BORDER=0 BORDERCOLOR=black CELLPADDING=2 CELLSPACING=0 "+
"BGCOLOR="+bak+"><TD ALIGN=center><FONT COLOR=black SIZE=1><marquee behavior=slide height="+hgt+" direction=down><center>"+msg+"</center></marquee></FONT></TD></TABLE>";
if(old){alert(msg);return;}
else{yyy=Yoffset;
if(nav){skn.document.write(content);skn.document.close();skn.visibility="visible"}
if(iex){document.all("dek").innerHTML=content;skn.visibility="visible"}
}
}
function get_mouse(e){
var x=(nav)?e.pageX:event.x+document.body.scrollLeft;skn.left=x+Xoffset;
var y=(nav)?e.pageY:event.y+document.body.scrollTop;skn.top=y+yyy;
}
function kill(){
if(!old){yyy=-1000;skn.visibility="hidden";}
}
//-->
</SCRIPT>
Comment