<% @ Page Language = "C #" autoeventwireup = "true" codebehind = "default. aspx. cs" inherits = "scrolljquery. _ default" %>
<! 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> jquery scroll </title>
<SCRIPT type = 'text/JavaScript 'src = 'jquery-1.2.6.min.js '> </SCRIPT>
<SCRIPT type = "text/JavaScript" src = "jquery. scrollTo-min.js"> </SCRIPT>
<SCRIPT type = "text/JavaScript" src = "jquery. serialScroll-min.js"> </SCRIPT>
<SCRIPT type = "text/JavaScript">
Jquery. Easing. easeoutquart = function (x, t, B, c, d ){
Return-C * (t = T/D-1) * T * t-1) + B;
};
Jquery (function (){
$ ('# Slideshow'). serialscroll ({
Items: 'lil ',
PREV: '# screen2 A. prev ',
Next: '# screen2 A. next ',
Start: 0, // as we are centering it, start at the 2nd
Duration: 2000,
Force: True,
Interval: 1,
Cycle: True, // don't pull back once you reach the end
Jump: True,
Interval: 5000
});
}
);
</SCRIPT>
<Style type = "text/CSS">
# Screen2
{
Position: relative;
Width: 300px;
Margin: 20px;
}
# Screen2 # buttons
{
Border: 1px solid #777;
Margin-bottom: 5px;
Width: 300px;
}
# Screen2 # buttons
{
Margin: 10px 10px;
Color: # 69c;
}
# Screen2. Prev
{
Float: left;
}
# Screen2. Next
{
Float: right;
}
# Slideshow
{
Overflow: hidden;
Width: 300px;
Border: 1px solid #777;
}
# Slideshow ul
{
Width: 900px;
Padding-left: 0px;
Margin: 0px;
}
# Slideshow Li
{
Float: left;
Cursor: pointer;
}
</Style>
</Head>
<Body>
<Form ID = "form1" runat = "server">
<Div id = "screen2">
<Div id = "buttons">
<A class = "Prev" href = "#"> previous </a> <a class = "Next" href = "#"> next </a>
</Div>
<Div id = "slideshow">
<Ul>
<Li>
</LI>
<Li>
</LI>
<Li>
</LI>
</Ul>
</Div>
</Div>
</Form>
</Body>
</Html>