Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There you go. here is my solution it works only with IE for FF version you find out what is equivalent to vml objects in FF and other browsers:</p> <pre><code>&lt;META HTTP-EQUIV="MSThemeCompatible" CONTENT="yes"&gt; &lt;HEAD&gt; &lt;script&gt; var dragok = false; var gotElementSelected = false; var currentElement = null; function move() { if (dragok) { tempX = event.clientX + document.body.scrollLeft; tempY = event.clientY + document.body.scrollTop; //rotating document.getElementById(currentElement).style.rotation=tempX+tempY; return false; } } function down(){ dragok = true; if(gotElementSelected &amp;&amp; currentElement !=null) { document.onmousemove = move; return false; } } function up() { if(gotElementSelected &amp;&amp; currentElement !=null) { gotElementSelected = false; dragok = false; document.onmousemove = null; currentElement = null; } } &lt;/script&gt; &lt;STYLE&gt;.rvml { BEHAVIOR: url(#default#VML) } &lt;/STYLE&gt; &lt;/HEAD&gt; &lt;BODY bgcolor=DDDDDD&gt; &lt;?xml:namespace prefix = rvml ns = "urn:schemas-microsoft-com:vml" /&gt; &lt;rvml:image style="POSITION: absolute; WIDTH: 100px; DISPLAY: none; HEIGHT: 100px; TOP: 100px; LEFT:100px; rotation: 0" id=myimage class=rvml onmousedown="gotElementSelected=true; currentElement=this.attributes.getNamedItem('id').value; selectedElement=currentElement;" onclick="select_element(this.attributes.getNamedItem('id').value); selectedElement=this.attributes.getNamedItem('id').value;" src = "path/to/your/image" coordsize = "21600,21600"&gt;&lt;/rvml:image&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload