Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
how to make image slide from top to html page and stop it there at some little distance.
i dont need a continuous marquee.. but make image to come from top and make it stop there
Posted
Comments
[no name] 18-Nov-12 3:25am    
Show your code..
Sergey Alexandrovich Kryukov 18-Nov-12 12:29pm    
Not a question. What's the problem with jQuery animation? Read about it, and implement the effect. Should be simple enough. If something goes wrong, as your question, showing your code and explaining what did you want to achieve, what happened with your code, why do you thing this is wrong...
--SA

1 solution

Try this. i think this is what you want to do.

HTML
<html>
<head>
<style type="text/css">
  #menu {
    position: fixed; /* to fixed postion */
    left: 0; /* margin right to zero */
    top: 50%; /* center of the screen */
    width: 8em; 
    margin: -2.5em 0 0 0;
    z-index: 5; /* top of the all element of the page */
    background: hsla(80, 90%, 40%, 0.7);
    color: white;
    border: solid hsla(80, 90%, 40%, 0.5);
    box-shadow: 0 1px 3px black;
    border-radius: 0.5em 3em 3em 0.5em;
  }
  #menu li { margin: 0 }
  #menu a { color: inherit }

  /* Make menu absolute, not fixed, on IE 5 & 6 */
  #menu { position: absolute }
  *>#menu { position: fixed }

</style>

</head>

<body>
<ul id="menu">
<li><a href="#">Section 1</a>
<li><a href="#">Section 2</a>
<li><a href="#">Section 3</a>
</li></li></li></ul>
<h1 style="background: hsla(12, 20%, 20%, 0.7); color:white">Scroll Down Yaar!! :-)</h1><br /><br /><br /><br /><br /><br />
<h1 style="background: hsla(212, 20%, 20%, 0.7); color:white">Scroll Down Yaar!! :-)</h1><br /><br /><br /><br /><br /><br />
<h1 style="background: hsla(121, 40%, 20%, 0.7); color:white">Scroll Down Yaar!! :-)</h1><br /><br /><br /><br /><br /><br />
<h1 style="background: hsla(12, 20%, 20%, 0.7); color:white">Scroll Down Yaar!! :-)</h1><br /><br /><br /><br /><br /><br />
<h1 style="background: hsla(212, 20%, 20%, 0.7); color:white">Scroll Down Yaar!! :-)</h1><br /><br /><br /><br /><br /><br />
<h1 style="background: hsla(121, 40%, 20%, 0.7); color:white">Scroll Down Yaar!! :-)</h1><br /><br /><br /><br /><br /><br />

</body>
</html>
 
Share this answer
 
v2

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