Click here to Skip to main content
15,885,111 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
On page load i need to play an animation,

and after completing that animation I need to redirect to my home page.

Please anyone help me how to redirect to my home page.


HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head  runat="server">
    <title>Untitled Page</title>

    <script type="text/javascript" src="html5gallery/html5gallery.js"></script>

    <script type="text/javascript" src="html5gallery/jquery.js"></script>

</head>
<body>
    <form id="form1"  runat="server">
        <div>
            <div style="display: none;" class="html5gallery" data-skin="darkness" data-width="480"
                data-height="272">
                <!-- Add videos to Gallery -->
                <a href="images1/Big_Buck_Bunny.mp4">
                    <img src="images1/Big_Buck_Bunny.jpg" alt="Big Buck Bunny, Copyright Blender Foundation"></a>
                <!-- Add Youtube video to Gallery -->
                <a>
                    <img src="Images/Triangle.jpg" alt="SWF file" />
                    <object width="425" height="344">
                        <param name="loop" value="false" />
                        <embed src="SWF/choudanse7.swf" type="application/x-shockwave-flash" allowscriptaccess="always"
                            name="simplemovie" allowfullscreen="true" width="425" height="344" flashvars="play=false"
                            loop="false"></embed>
                    </object>
                </a>
            </div>
        </div>
    </form>
</body>
</html>
Posted
Updated 25-Sep-13 6:51am
v3
Comments
[no name] 25-Sep-13 5:58am    
can you specify some lines of code here???
nandakishoreroyal 25-Sep-13 6:09am    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>

<script type="text/javascript" src="html5gallery/html5gallery.js"></script>

<script type="text/javascript" src="html5gallery/jquery.js"></script>

</head>
<body>
<form id="form1" runat="server">
<div>
<div style="display: none;" class="html5gallery" data-skin="darkness" data-width="480"
data-height="272">
<!-- Add videos to Gallery -->

<img src="images1/Big_Buck_Bunny.jpg" alt="Big Buck Bunny, Copyright Blender Foundation">

<!-- Add Youtube video to Gallery -->

<img src="Images/Triangle.jpg" alt="SWF file" />
<object width="425" height="344">
<param name="loop" value="false" />
<embed src="SWF/choudanse7.swf" type="application/x-shockwave-flash" allowscriptaccess="always"
name="simplemovie" allowfullscreen="true" width="425" height="344" flashvars="play=false"
loop="false"></embed>
</object>

</div>
</div>
</form>
</body>
</html>
[no name] 25-Sep-13 7:10am    
on now after referring your code i had realized that you need to put navigation link or button to redirect you page to another pages and if going through automatic way then you have designed your entire website through the Flash.
nandakishoreroyal 26-Sep-13 9:57am    
with out any click event page should redirect to home page
Akinmade Bond 25-Sep-13 12:56pm    
Are you referring to the flash? You want your page to redirect after the flash animation? And BTW, reference JQuery before your plugins.

1 solution

 
Share this answer
 
v2
Comments
nandakishoreroyal 25-Sep-13 6:10am    
Iam not doing it with css.. please check i have posted my code above...
Maciej Los 25-Sep-13 6:12am    
Please, improve your question, using "Improve question" widget. Do not forget to use formatting.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900