Link to home
Start Free TrialLog in
Avatar of jmanstorm
jmanstorm

asked on

Add time function to show intro javascript

Want to add a time duration function to the below script. On 5 seconds display then hide iframe.
<script>
function showintro() {
document.getElementById('if1').style.display='';
document.getElementById('if1').src='http://clubtuki.com';
}
</script>
 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body onload="javascript:showintro()">
<iframe id="if1" src="" style="display:none;" scrolling="no" border="0" frameborder="0" height="250" width="500" marginwidth="0" marginheight="0">
</iframe>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jmanstorm
jmanstorm

ASKER

How could I choose to display a div or new iframe in same location at the end of five seconds.