lsyliu
02-22-2010, 04:01 PM
Hi there,
I hope someone can help me. I want to have insert a JS settimeout to automatically load/action the onclick close button function (in red) after 7 seconds of the page loading. Ive coded the action into a button but im not sure how to translate it into a timed event as well.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title>Floating Window</title>
<script src="Drag.js"></script>
</head>
<body>
<div id="window" style="position:absolute; z-index:10; left:0px; top:0px; width:100%; height:100%;
background-color:#CCCCCC;">
<div align="center"><img src="images/logo.jpg" width="455" height="54"> </div>
<div style="position:absolute; top:3px; left:95%; float:right;" onClick="this.parentNode.parentNode.style.display = 'none';">
<img src="images/close_button.gif" width="48" height="14" border="0"></a></div>
<div align="center"><img src="images/interstitial.jpg" width=700 height=373
alt=""></div>
</div>
</body>
</html>
thanks!
Lisa
I hope someone can help me. I want to have insert a JS settimeout to automatically load/action the onclick close button function (in red) after 7 seconds of the page loading. Ive coded the action into a button but im not sure how to translate it into a timed event as well.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title>Floating Window</title>
<script src="Drag.js"></script>
</head>
<body>
<div id="window" style="position:absolute; z-index:10; left:0px; top:0px; width:100%; height:100%;
background-color:#CCCCCC;">
<div align="center"><img src="images/logo.jpg" width="455" height="54"> </div>
<div style="position:absolute; top:3px; left:95%; float:right;" onClick="this.parentNode.parentNode.style.display = 'none';">
<img src="images/close_button.gif" width="48" height="14" border="0"></a></div>
<div align="center"><img src="images/interstitial.jpg" width=700 height=373
alt=""></div>
</div>
</body>
</html>
thanks!
Lisa