<!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js?ver=1.4.2'></script> <style> html, body { height: 100%; padding: 0; margin: 0; } body { background: #def; min-height: 600px; } body * { font-family: Arial, Geneva, SunSans-Regular, sans-serif; font-size: 14px; color: #333; line-height: 22px; } #wrapper { width: 960px; height: 560px; margin: -280px 0 0 -480px; overflow: hidden; position: absolute; top: 50%; left: 50%; } #overlay { background: #def; width: 300px; height: 560px; overflow: hidden; position: absolute; left: -300px; top: 0; z-index: 1; -webkit-transition: left .5s ease; -moz-transition: left .5s ease; transition: left .5s ease; } #wrapper:hover #overlay { left: 0px; } #description { padding-top: 40px; width: 250px; margin-left: 450px; -webkit-transition: margin .5s ease; -moz-transition: margin .5s ease; transition: margin .5s ease; } #wrapper:hover #description { margin-left: 0px; } #description h3 { color: #69c; font-size: 35px; font-weight: normal; text-align: right; line-height: 30px; margin: 30px 0; } #description p { font-size: 13px; text-align: justify; } #wrapper .caroufredsel_wrapper { margin-left: 0px !important; -webkit-transition: margin .5s ease; -moz-transition: margin .5s ease; transition: margin .5s ease; } #wrapper:hover .caroufredsel_wrapper { margin-left: 150px !important; } #carousel img { display: block; float: left; } #pager { text-align: center; padding: 40px 20px 0 0; } #pager a { border-radius: 5px; background: #69c; display: block; width: 10px; height: 10px; margin: 0 5px; float: right; } #pager a.selected { background: #333; } #pager span { display: none; } </style> <script> $(function() { $('#carousel').carouFredSel({ direction: 'right', items: { visible: 1, start: -1 }, scroll: { duration: 1000, timeoutDuration: 3000 }, pagination: '#pager' }); }); </script> </head> <body> <div id="wrapper"> <div id="carousel"> <img src="img/grozny1.jpg" width="960" height="560" /> <img src="img/grozny2.jpg" width="960" ¬ height="560" /> <img src="img/grozny3.jpg" width="960" height="560" /> <img src="img/grozny4.jpg" ¬ width="960" height="560" /> </div> <div id="overlay"> <div id="description"> <h3> Modest Celebration In Grozny </h3> <p> The Chechen leader, Ramzan Kadyrov, has held a star-studded party in his capital Grozny - but denied it was anything to do with his 35th birthday. </p> <p> Oscar-winning actor Hilary Swank and action star Jean-Claude van Damme have been criticised for attending the lavish party. Kadyrov is linked to a grim record of abuse. When stars get paid to turn up to party with him, it trivializes the suffering of countless victims of human rights abuses. </p> <div id="pager"> </div> </div> </div> </div> </body> </html>
carouFredSel();
HI Please refer the link . The problem is with your script and you missed document.ready . <a href="http://bxslider.com/">http://bxslider.com/</a>[<a href="http://bxslider.com/" target="_blank" title="New Window">^</a>]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)