Thanks so much for your response, I have been away but haven't forgotten about my little question and that I need to get back to you
here is the code
<HTML>
<HEAD>
<TITLE>Drag and Drop Images</TITLE>
<meta name="Keyword" content="Images">
<link href="../Body.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY class="MainPanel" BGCOLOR="#FFFFFF" Text="#000000" Link="#0000FF" Alink="#00C000" Vlink="#FF0000"BACKGROUND="">
<div id='1' style='position:absolute;left:200;top:200;'>
<img src='../Pictures/DragAndDrop/Paris/ArcDeTriumph.jpg' name='1' height="175">
</div>
<div id='2' style='position:absolute;left:100;top:75;'>
<img src='../Pictures/DragAndDrop/Paris/BrunchAtCaliph.jpg' name='1' height="175">
</div>
<div id='3' style='position:absolute;left:500;top:150;'>
<img src='../Pictures/DragAndDrop/Paris/ChurchMaryMadeleine.jpg' name='1' height="175">
</div>
<div id='4' style='position:absolute;left:300;top:250;'>
<img src='../Pictures/DragAndDrop/Paris/cjandccBehindNotreDame.jpg' name='1' height="175">
</div>
<div id='5' style='position:absolute;left:250;top:50;'>
<img src='../Pictures/DragAndDrop/Paris/cjandccInParis.jpg' name='1' height="175">
</div>
<div id='6' style='position:absolute;left:375;top:100;'>
<img src='../Pictures/DragAndDrop/Paris/Louvre.jpg' name='1' height="175">
</div>
<div id='7' style='position:absolute;left:400;top:250;'>
<img src='../Pictures/DragAndDrop/Paris/NotreDame.jpg' name='1' height="175">
</div>
<div id='8' style='position:absolute;left:425;top:300;'>
<img src='../Pictures/DragAndDrop/Paris/NotreDameFromCaliph.jpg' name='1' height="175">
</div>
<div id='9' style='position:absolute;left:475;top:50;'>
<img src='../Pictures/DragAndDrop/Paris/TheCaliphCafe.jpg' name='1' height="175">
</div>
<script language="javascript">
Wholething = (document.all) ? 0 : 1;
var objectone;
function MouseMovement(e)
{
if (objectone) {
if (Wholething) {
objectone.moveTo((e.pageX-X), (e.pageY-Y));
}
else {
objectone.pixelLeft = event.clientX-X + document.body.scrollLeft;
objectone.pixelTop = event.clientY-Y + document.body.scrollTop;
return false;
}
}
}
document.write("<center><h1>Drag and Drop Images</h1></center>")
function MouseClickUp() {
objectone = null;
}
if (Wholething)
{
document.captureEvents(Event.mousedown | Event.mousemove | Event.mouseup);
}
function MouseClickDown(e)
{
if (Wholething) {
objectone = document.layers[e.target.name];
X=e.x;
Y=e.y;
return false;
}
else {
objectone = event.srcElement.parentElement.style;
X=event.offsetX;
Y=event.offsetY;
}
}
document.onmouseup = MouseClickUp;
document.onmousedown = MouseClickDown;
document.onmousemove = MouseMovement;
</script>
</BODY>
</HTML>
Another thing, this uses divisions instead of layers, is there a way to insert the division number on mouse click so that the division being clicked is then placed on top. I am sure this requires a lot of jsp, so I totally understand if no code is available. just a starting point would do fine... if it is possible.
thanks again
ronze