# What is the best way to have a hovering, draggable element on a page? JS suggestions

**URL:** <https://forum.kirupa.com/t/what-is-the-best-way-to-have-a-hovering-draggable-element-on-a-page-js-suggestions/326063>\
**Category:** web dev\
**Created:** [November 20, 2011, 11:10pm UTC](https://forum.kirupa.com/t/what-is-the-best-way-to-have-a-hovering-draggable-element-on-a-page-js-suggestions/326063 "2011-11-20T23:10:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m2244](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@m2244](https://forum.kirupa.com/u/m2244)\
**Post date:** [November 20, 2011, 11:10pm UTC](https://forum.kirupa.com/t/what-is-the-best-way-to-have-a-hovering-draggable-element-on-a-page-js-suggestions/326063/1 "2011-11-20T23:10:17Z")

</div>

Hello,

I’ve been struggling with trying to show a hovering, draggable SWF on a page when a user clicks a link for more information. I created a draggable [[COLOR=darkgreen]div[/COLOR]](http://www.webdeveloper.com/forum/showthread.php?t=253674#) and put the SWF inside the div but all interaction with the SWF went away (scrolling textfield and close).

Is this the best way to do this or would it be [[COLOR=darkgreen]easier[/COLOR]](http://www.webdeveloper.com/forum/showthread.php?t=253674#) to use some sort of JS modal like simpleModal. I did find a draggable modal but it seemed to be very “choppy”. It hesitated to move whe you dragged it.

Any [[COLOR=darkgreen]advice[/COLOR]](http://www.webdeveloper.com/forum/showthread.php?t=253674#) here would be very much appreciated.
