Rabbit W
asked on
scroll images
Scroll image vertically, and when user selects image in the scroll, the bigger image will display. I have the code below, and the scroll is working, but the image won't display. I also want the image display on the left side of the scroll images.
jquery.jcarousel.js
jquery.jcarousel.pack.js
skin.css
style.css
<!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" xml:lang="en-us">
<head>
<title>jCarousel Examples</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<!--
jQuery library
-->
<script type="text/javascript" src="jquery-1.2.3.pack.js"></script>
<!--
jCarousel library
-->
<script type="text/javascript" src="jquery.jcarousel.pack.js"></script>
<!--
jCarousel core stylesheet
-->
<link rel="stylesheet" type="text/css" href="jquery.jcarousel.css" />
<!--
jCarousel skin stylesheet
-->
<link rel="stylesheet" type="text/css" href="skin.css" />
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel({
vertical: true,
scroll: 2
});
});
function showIt(link) {
document.getElementById('img').innerHTML='<img src="'+link.href+'" />'
document.getElementById('imgTitle').innerHTML=link.title
return false;
}
</script>
</head>
<body>
<div id="wrap">
<ul id="mycarousel" class="jcarousel jcarousel-skin-tango">
<li><img src="images/1.jpg" width="75" height="75" alt="" /></li>
<li><img src="images/2.jpg" width="75" height="75" alt="" /></li>
<li><img src="images/3.jpg" width="75" height="75" alt="" /></li>
<li><img src="images/4.jpg" width="75" height="75" alt="" /></li>
<li><img src="images/5.jpg" width="75" height="75" alt="" /></li>
<li><img src="images/6.jpg" width="75" height="75" alt="" /></li>
<li><img src="images/7.jpg" width="75" height="75" alt="" /></li>
<li><img src="images/8.jpg" width="75" height="75" alt="" /></li>
<li><img src="images/9.jpg" width="75" height="75" alt="" /></li>
<li><img src="images/10.jpg" width="75" height="75" alt="" /></li>
</ul>
<div>
<div id="img" style="height:300px; width: 300px; border: 1px solid gray;"><img src="images/big/1.jpg" /></div>
<span id="imgTitle"></span>
<div id="wrap">
<ul id="mycarousel" class="jcarousel-skin-ie7">
</ul>
</div>
</div>
</body>
</html>
jquery.jcarousel.cssjquery.jcarousel.js
jquery.jcarousel.pack.js
skin.css
style.css
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Open in new window