John a écrit :
Quote:
On Sep 8, 10:43 am, SAM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
Quote:
>>
>put your image outside of your table :
>
Thank you for the quick reply. I already had it out of the table,
Ho Yes, sorry !
I wanted to say : put the image after the table
instead of before it.
Like that you're sure this button is always above the table
(and without any z-index)
Quote:
but I took it out of the span and that works great!
The only difference is when I call HideSpan I have to add an extra line
to make the close button image disappear as well.
? you need only one line with code I've given !
function HideSpan() {
document.body.removeChild(document.getElementById( 'spDetails'));
}
which delete all the 'spDetails' (with its image-button)
+/- funny variante :
function HideSpan() {
var but = document.getElementById('spDetails');
but = but.getElementsByTagName('img')[0].cloneNode(true);
but.onclick = function() {
CreateSpan();
document.body.removeChild(this);
};
but.style.top=(document.body.scrollTop + 3).toString() + 'px';
document.body.removeChild(document.getElementById( 'spDetails'));
document.body.appendChild(but);
}
Quote:
(And of course had to use a different
way to position the image on the scroll.
See:
<http://cjoint.com/?jitQ2sCdKo>
(not tested with IE)
--
sm