Opacity when moving div NOT on mouse down JavaScript
<p>I have set an opacity to a draggable div, but the problem is that i don't want to add the opacity on mouse down, only when I start move the div.
Should be connected to the X and Y but i really don't get how to.</p>

<p>This is what i have.</p>

<pre><code>  function startDrag(evt) { // To start the opacity function

        this.style.opacity = "0.5";
}
</code></pre>

<p>And to stop in och mouse up</p>

<pre><code>  function changeClass() {
            var diceClass = document.getElementsByClassName("draggble");
            for (var i = 0; i &lt; diceClass.length; i++) {
                diceClass[i].style.opacity="1";
            }
        }
</code></pre>

<p>jsFiddle
<a href="http://jsfiddle.net/dymond/tQdFZ/6/" rel="nofollow">http://jsfiddle.net/dymond/tQdFZ/6/</a></p>
