hey guys,
I want to have several divs width: 100% aligned side by side and a menue, with wich you can navigate through the different divs (internal anchors). Everything works so far but I don't manage to get an horizontal scroll animation with jQuery. I have absolutly no jQuery experience so far. I would be very greatful if you could help me out.
Fabian
<!DOCTYPE html><html> <head> <title>Franconia-Film</title> <style type="text/css"> html { height: 100%; padding: 0; margin: 0; } body { height: 100%; padding: 0; margin: 0; } #navi { position: fixed; width: 100%; height: 50px; background-color: #FFFFFF; } #container { height: 100%; width: 400% } .container { height: 100%; float: left; width: 25%; position:relative; /* Put me here! */ } #one { background-color: #FF0000; } #two { background-color: #00FF00; } #three { background-color: #0000FF; } #four { background-color: #FFFF00; } </style> <!-- jQuery enbinden von Google--> <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script type="text/javascript"> // jQuery laden google.load("jquery", "1.3.2"); </script> <!-- jQuery Code --> <script type="text/javascript"> </script> </head> <body> <div id="navi"><a href="#one">one</a><a href="#two">two</a><a href="#three">three</a><a href="#four">four</a></div> <div id="container"> <div id="one" class="container"><a name="one"></div> <div id="two" class="container"><a name="two"></div> <div id="three" class="container"><a name="three"></div> <div id="four" class="container"></div> </div> </body></html>