thanks nile, think i've confused everybody though!
I found another piece of code than the one i originaly posted:
Code:
function Toggle(IDS,n) {
for (i=0; i<n; i++) { document.getElementById('DB'+i).style.display='none'; }
document.getElementById('DB'+IDS).style.display = '';
setTimeout(function(){
document.getElementById('DB'+IDS).style.display = 'none';
}, 10000);
}
and call it using
Code:
javascript:Toggle(0,9);return false;
at the moment, the this hides the div after ten seconds of being clicked, but i would only like to change this so it will only hide after 3 seconds of mouseout of the popup div, or if another toggle is being called..
Code:
javascript:Toggle(1,9);return false;
thanks for your help
Bookmarks