hibridassassin
asked on
Javascript code to make image disapear after a a given period of time
I need a code that will either hide a div or an image after a period of time that i will set probably one second or faster if possible. basically i just want to flash a picture and then have it dissapear.
ASKER
so is xVid the name of the div?
ASKER
also, is 5000 seconds?
it should be the id of div, replace it with your own div id and add this to your div by
<div id="mydiv"/> or something like that
<div id="mydiv"/> or something like that
5000 means 5 seconds
and please use
document.getElementById for compatibility reasons
document.getElementById for compatibility reasons
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yeah - that would work too, however I think.style is much younger and compatible from getElementById (at least on non-IE)
document.images['EE']
document.images['EE']
Open in new window