Go mental:
<!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>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Slider</title>
<style type=”text/css”>
.slider{
width:800px;
height: 350px;
overflow: hidden;
margin:30px auto;
background-image:url(slider/load.gif);
background-repeat:no-repeat;
background-position:center;
}
.shadow{
background-image:url(slider/shadow.png);
background-repeat:no-repeat;
background-position:top;
width:864px;
height:144px;
margin:-60px auto;
}
.slider img{
width:800px;
height:350px;
display:none;
}
</style>
<script type=”text/javascript” src=”slider/jquery-1.8.3.js”></script>
<script type=”text/javascript” src=”slider/jquery-ui-1.9.2.custom.js”></script>
<script type=”text/javascript”>
function Slider(){
$(“.slider#1”).show(“fade”,500);
$(“.slider#1”).delay(5500).hide(“slide”,{direction:”left”},500);
var sc =$(“.slider img”).size();
var count = 2;
setInterval(function(){
$(“.slider#”+count).show(“slide”,{direction:”right”}, 500);
$(“.slider#”+count).delay(5500).hide(“slide”,{direction:”left”},500);
if(count==sc){
count=1;
}else{
count=count+1;}},6500);
}
</script>
</head>
<body onload=”Slider()”;>
<div class=”slider”>
<img id=”1″ src=”images/computer.jpg” border=”0″ alt=”computer”/>
<img id=”2″ src=”images/design.jpg” border=”0″ alt=”design”/>
</div>
<div class=”shadow”></div>
</body>
</html>