Change Modul popup every 30 sec Javascript

Posted by SoftwareDeveloper on Stack Overflow See other posts from Stack Overflow or by SoftwareDeveloper
Published on 2012-10-18T22:18:25Z Indexed on 2012/10/18 23:01 UTC
Read the original article Hit count: 135

Filed under:
|
|
|
|

I have a div id called modalpage
and have css. I need a javascript function which can dynamically shows popup for 20 mins and change in every 30 secs right now i have the following javascript function. Can anybody help me please

<script language="javascript" type="text/javascript">
function revealModal(divID)
{
    window.onscroll = function () { 
        document.getElementById(divID).style.top = document.body.scrollTop;
    };
    document.getElementById(divID).style.display = "block";
    document.getElementById(divID).style.top = document.body.scrollTop;
}

which is called by a input id button.

<input id="Button1" type="button" value="Click here" onclick="revealModal('modalPage')" />

Thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery