I've recently embarked on the journey of learning JavaScript/jQuery. I've been attempting to incorporate this cool effect, but unfortunately, I'm facing some difficulties with it:
My goal is to understand how to execute this effect using JavaScript. Thus, I simply copied and pasted the code from the internet into my HTML file.
I have included the smallslider.css, jquery.smallslider.js, and jquery-1.7.1.min.js files.
Did I miss anything?
Here's a snippet of the .html file:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/index3_style.css" />
<link rel="stylesheet" type="text/css" href="css/smallslider.css" media="screen"/>
<script type="text/javascript" src="js/jquery.smallslider.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$('#photoslide').smallslider
({
onImageStop:true,
switchEffect:'ease',
switchEase:'easeOutSine',
switchPath:'left',
switchMode:'hover',
showText:true,
textSwitch:2
});
});
</script>
</head>
<body>
<div id="wraper" style="width:1020px; float:left;">
<div id="header">
</div>
<div id="container" style="width:1020px; float=left;">
<div id="photoslide">
<ul>
<li><img src="images/1.jpg" title="" alt="" /></li>
<li><img src="images/2.jpg" title="" alt="" /></li>
<li><img src="images/3.jpg" title="" alt="" /></li>
<li><img src="images/4.jpg" title="" alt="" /></li>
</ul>
</div>
</div>
<div id="footer" style="width:1020px; float=left;">
</div>
</div>
</body>
</html>
Details about smallslider.css:
$Document : smallslider$
$Created on : 2009-7-3, 11:56:24$
$Last Update : 2010-3-15, 11:20:22$
$Author:Sinrow$
$E-Mail : <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e093898e928f97a099858188ce8e8594">[email protected]</a>$
$Description : Stylesheet for smallslider, UTF-8 encoding $
Information about jquery.smallslider.js:
- SmallSilder JQuery plugin
- $http://lab.cnscene.com/smallslider/$
- $Document : jquery.smallslider.js$
- $Created on : 2009-7-3, 11:56:24$
- $Last Update: 2010-3-15, 14:40:16$
- $Author : Sinrow$
- $E-Mail: [email protected]$
- $Description