Quote:
Originally Posted by Zyprexa
I'm wondering if someone could help me out with a script that hides a <div> a couple of seconds after the page is loaded. I have little to no experience in Java, so i'm not sure how to go about it.
|
java or javascript? if is java then you post in the wrong forum.
with javascript you can do something like that:
Code:
function hideit(){
var o = document.getElemenById('tohide');
o.style.display = 'none';
}
window.onload = function(){
setTimeout("hideit()",5000); // 5 seconds after user (re)load the page
};
in html you must have:
Code:
<div id="tohide">
......
</div>
not tested,
best regards