Hello,
I have a PHP page with the following code:
echo "function createimg() { var img = new Image(); img.src='path/to/image'; img.alt='Next image'; img.id = 'span1'; img.style.zIndex = 10; img.style.position = 'absolute'; img.style.display='none'; img.style.top = '130px'; img.style.padding='10px'; img.style.left='440px'; img.className ='dynamicSpan'; document.body.appendChild(img); return img; }";
the function createimg get's executed when another image on the page loads.
code: someotherimage.load(createimg);
This created image is shown when the mouse is hovered over the 'someotherimage'.
It flickers! I cannot embed it into the other image! No CSS sprites thus.
I cannot seem to find a solution to this flickering problem, as I can't seem to attach event handlers to this image created in the above function, so I can suppress event bubbling/phasing!
Somebody help me please?
T