Question: I have a DIV with in image inside of it. There is a spot right before the image that does not fire the onclick function when clicked. The rest, including the image and the DIV fire the function when clicked. I have tried attaching the function to the image itself in addition to the DIV and this does not fix the problem. Anyone know what to do? 

```
//this give all the divs the function
var ButtonNumber = document.querySelectorAll(".ButtonStyle");
for (var i = 0; i < ButtonNumber.length; i++) {
    ButtonNumber[i].onmouseover = ChangeCursor;
    ButtonNumber[i].onclick = ButtonsAddTogether;
    ButtonNumber[i].onselectstart = function() {return false;}
    }

```

This is the HTML

```
 <div id="55" class="ButtonStyle"><img alt="1" class="Center" src="Buttons/7.png"></div>

```

Answer: 
> 
> UPDATE: How does it look in Visual Studio ?
> 
> 
> 

If you are building for 64 bit, you cannot use inline assembly in Visual Studio. If you are building for 32 bit, then you use [`__asm`](http://msdn.microsoft.com/en-us/library/45yd4tzz.aspx) to do the embedding.

Generally, using inline ASM is a bad idea.

1. You're probably going to produce worse ASM than a compiler.
2. Using any ASM in a method generally defeats any optimizations which try to touch that method (i.e. inlining).
3. If you need to access specific features of the processor not obvious in C++ (e.g. SIMD instructions) then you can use much more consistent with the language *intrinsics* provided by most any compiler vendor. Intrinsics give you all the speed of that "special" instruction but in a way which is compatible with the language semantics *and* with optimizers.
Here's a simple example to show the syntax for GCC/Dev-C++:

```
int main(void)
{
    int x = 10, y;

    asm ("movl %1, %%eax;"
         "movl %%eax, %0;"
        :"=r"(y)    /* y is output operand */
        :"r"(x)     /* x is input operand */
        :"%eax");   /* %eax is clobbered register */
}

```