Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "w3.org/TR/xhtml1/DTD/�;> <html xmlns="w3.org/1999/xhtml">
- <head>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
- <link rel="stylesheet" type="text/css" href="imageScroller.css">
- <link rel="stylesheet" type="text/css" href="simpleTicker.css">
- <title>Cerebration-2010</title>
- </head>
- <body style="color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"
- link="#0000ee" alink="#ee0000" vlink="#551a8b">
- <div id="outerContainer">
- <div id="imageScroller"><br>
- <br>
- <div id="viewer" class="js-disabled"> <a class="wrapper"
- href="http://www.dell.com" title="Dell" target="_blank"><img
- class="logo" id="Dell" src="logos/dell.jpg" alt="Dell"></a> <a
- class="wrapper" href="http://airtel.in" title="Airtel" target="_blank"><img
- class="logo" id="Airtel" src="logos/airtel.jpg" alt="Airtel"></a> <a
- class="wrapper" href="http://pepsi.com" title="Pepsi" target="_blank"><img
- class="logo" id="pepsi" src="logos/pepsi.jpg" alt="pepsi"></a> <a
- class="wrapper" href="http://hp.com" title="HP" target="_blank"><img
- class="logo" id="hp" src="logos/hp.jpg" alt="HP"></a> <a
- class="wrapper" href="http://suzuki.com" title="Suzuki" target="_blank"><img
- class="logo" id="suzuki" src="logos/suzuki.jpg" alt="suzuki"></a></div>
- </div>
- </div>
- <script type="text/javascript"
- src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
- <script type="text/javascript" src="sponsors.js"></script>
- <img
- style="width: 971px; height: 332px; display: block;
- margin-left: auto;
- margin-right: auto;
- margin-top: 130px;"
- alt="Featured" src="img/box.png"><br>
- <div id="tickerContainer">
- <dl style="top: 10px; " id="ticker">
- <dt class="heading">Cerebration 2010</dt>
- <dd class="text">Cerebration website launched.</dd>
- <dt class="heading">Registeration Open</dt>
- <dd class="text">Register yourself for the events fast !</dd>
- <dt class="heading">Prelims </dt>
- <dd class="text">Prelims started , checkout <a href="http://www.itmindia.edu/cerebration/events/events.html" targer="_blank">
- Events </a>section for details.</dd>
- <dt class="heading">Online Events Coming Soon !</dt>
- <dd class="text">Get geared for the online events section .</dd>
- <dt class="heading">E cell</dt>
- <dd class="text">Student's E-cell launched.</dd>
- </dl>
- </div>
- <script type="text/javascript"
- src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
- <script type="text/javascript">
- $(function() {
- //cache the ticker
- var ticker = $("#ticker");
- //wrap dt:dd pairs in divs
- ticker.children().filter("dt").each(function() {
- var dt = $(this),
- container = $("<div>");
- dt.next().appendTo(container);
- dt.prependTo(container);
- container.appendTo(ticker);
- });
- //hide the scrollbar
- ticker.css("overflow", "hidden");
- //animator function
- function animator(currentItem) {
- //work out new anim duration
- var distance = currentItem.height();
- duration = (distance + parseInt(currentItem.css("marginTop"))) / 0.025;
- //animate the first child of the ticker
- currentItem.animate({ marginTop: -distance }, duration, "linear", function() {
- //move current item to the bottom
- currentItem.appendTo(currentItem.parent()).css("marginTop", 0);
- //recurse
- animator(currentItem.parent().children(":first"));
- });
- };
- //start the ticker
- animator(ticker.children(":first"));
- //set mouseenter
- ticker.mouseenter(function() {
- //stop current animation
- ticker.children().stop();
- });
- //set mouseleave
- ticker.mouseleave(function() {
- //resume animation
- animator(ticker.children(":first"));
- });
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement