0

hi i am a new user of asp.net,
i would like to know when user open mysite it will display a image for somethime like 20sec till that there should be a gif image also show which showing uploading website like buffring in utv bideo gif. and after timeout it will redirect to my another page. means i want to show that image for 20sec than open my website.
thanks

Regards
Umesh Daiya

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by umeshMCA
1

You need to write JavaScript routine.

<head runat="server">
    <title></title>
    <style  type="text/css">
      .box
      {
          height:100px;
          width:300px;
          background:#e0e3e3;
          border:2px solid black;
      }
    </style>
    <script type="text/javascript">
        window.onload = function () {
            setInterval(function () {
                window.document.location.href = "page1.aspx";
            }, 2000); //2 second
        };
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="box">
       <img src="images/img1.png" alt="Please wait" />
    </div>
    </form>
</body>
0

You need to write JavaScript routine.

<head runat="server">
    <title></title>
    <style  type="text/css">
      .box
      {
          height:100px;
          width:300px;
          background:#e0e3e3;
          border:2px solid black;
      }
    </style>
    <script type="text/javascript">
        window.onload = function () {
            setInterval(function () {
                window.document.location.href = "page1.aspx";
            }, 2000); //2 second
        };
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="box">
       <img src="images/img1.png" alt="Please wait" />
    </div>
    </form>
</body>

Thanks for reply

regards
umesh daiya

Edited by umeshMCA: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.