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

Recommended Answers

All 2 Replies

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>

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.