I believe all openlayers markers have a unique element ID (since they are after all just DOM elements).  You should be able to get this ID from the API available to you through the OpenLayers.Marker class.  I would then attached mousedown and mouseup events to these markers, and use regular javascript functions to change the positioning (I believe markers use absolute positioning, so measuring the delta of mouse movements and altering the left and top css properties should accomplish this).  Then just update the lonlat of the marker when the mouse is released.  <br>
<br>Should work theoretically anyway.  <br><br>-Adam<br><br><div class="gmail_quote">On Thu, Jul 7, 2011 at 9:08 AM, JK Chen <span dir="ltr">&lt;<a href="mailto:jk.chen@sdl.usu.edu">jk.chen@sdl.usu.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have a bounding box that is displayed with two markers; one in NE corner, the other in SW corner. These two markers are added to marker layer using addMarker() api.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I would like to be able to drag the two markers, and receive events. How to do that? Anyone?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The OpenLayers example page has a similar example but not exactly and is not applicable. It uses vector layer and uses DragFeature….. In my case mine are not features, but markers.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any idea is appreciated.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">JK <u></u><u></u></p>
</div>
</div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></blockquote></div><br>