In the html file i have this simple code:
[CODE]<!DOCTYPE html>
<html>
<head>
<title>JQuery Cycle Plugin – Basic Demo</title>
<link rel=”stylesheet” type=”text/css” href=”Vertical_Slider.css”>
<!– include jQuery library –>
<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js”></script>
<!– include Cycle plugin –>
<script type=”text/javascript” src=”http://malsup.github.com/jquery.cycle.all.js”></script>
<script type=”text/javascript”>
$(document).ready(function() {
$(‘.slideshow’).cycle({
fx: ‘fade’ // choose your transition type, ex: fade, scrollUp, shuffle, etc…
});
});
</script>
</head>
<body>
<div class=’.slideshow’>
<img src=”http://malsup.github.com/images/beach1.jpg” width=”200″ height=”200″ />
<img src=”http://malsup.github.com/images/beach2.jpg” width=”200″ height=”200″ />
<img src=”http://malsup.github.com/images/beach3.jpg” width=”200″ height=”200″ />
<img src=”http://malsup.github.com/images/beach4.jpg” width=”200″ height=”200″ />
<img src=”http://malsup.github.com/images/beach5.jpg” width=”200″ height=”200″ />
</div>
</body>
</html>
I created css file Vertical_Slider and in the css file i have two lines:
[CODE].slideshow { height: 232px; width: 232px; margin: auto }
.slideshow img { padding: 15px; border: 1px solid #ccc; background-color: #eee; }
If i put this css lines in the html inside style tags it will work fine but i want to call this slidehow from the html file.
What should i change/add in the html file to call the .slideshow ?