JavaScript

Moderators: None (Apply to moderate this forum)
Number of threads: 2061
Number of posts: 5164

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
I want to add jCarousel to my thumbnails Posted by olmas on 3 Feb 2010 at 7:14 PM
Look att this page: http://jonas.multimedialab.se/demo/slideshow.html . Is there a way I could add jCarousel to my thumbnails. And how do I do that?

Here is the code:

1.
Copy code
<!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>
<base href="http://www.ajaxdaddy.com/web20/jquery/jcarousel/">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Slide</title>
<link href="assets/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/**
 * For the Slideshow
 */
#slideshow { left:100px; bbackground: #eee; bborder: 1px solid #ccc;}
#nav { width: 100%; height: 80px; margin: 15px;  }
#nav li { width: 50px; float: left; margin: 8px; list-style: none }
#nav a { width: 50px; padding: 3px; display: block; border: 1px solid #ccc; }
#nav a.activeSlide { background: #88f }
#nav a:focus { outline: none; }
#nav img { border: none; display: block }
</style>
<!--
  jQuery library
-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<!--
  Chili library
-->
<script type="text/javascript" src="http://malsup.github.com/chili-1.7.pack.js"></script>
<!--
  jQuery.cycle library
-->
<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.72.js"></script>
<!--
  jQuery.easing library
-->
<script type="text/javascript" src="http://malsup.github.com/jquery.easing.1.1.1.js"></script>
<!--
  jCarousel library
-->
<script type="text/javascript" src="lib/jquery.jcarousel.pack.js"></script>
<!--
  jCarousel core stylesheet
-->
<link rel="stylesheet" type="text/css" href="lib/jquery.jcarousel.css" />
<!--
  jCarousel skin stylesheet
-->
<link rel="stylesheet" type="text/css" href="skins/tango/skin.css" />
<script type="text/javascript">
$(function() {
    //Flickr Integration
    $.getJSON("http://api.flickr.com/services/feeds/groups_pool.gne?id=675729@N22&lang=en-us&format=json&jsoncallback=?", function(data){
 
     $.each(data.items, function(i,item){
      //if(i<=5){ // <— change this number to display more or less images  
      $("<img/>").attr("src", item.media.m).appendTo("#slideshow") 
   .wrap("<a href='" + item.link + "' target='_blank' title='Flickr'></a>");
   //}    
     }); //End each
  
  $('#slideshow').after('<ul id="nav">').cycle({ 
        fx:     'turnDown',
        speed:  'fast',
        timeout: 0,
        pager:  '#nav',
  pagerAnchorBuilder: function(idx, slide) {  
     var src = $('img',slide).attr('src');
     return '<li><a href="#"><img src="' + src + '" width="50" height="50" /></a></li>';   
         }     
     }); //End cycle 
  
 }); //End getJSON
}); //End function
</script>    
</head>
<body>
<div id="slideshow" class="jcarousel-skin-tango"></div>
</body>
</html>
No statusWorking on itAnsweredNeed more info


Report
Re: I want to add jCarousel to my thumbnails Posted by olmas on 8 Feb 2010 at 4:49 PM
I find a solution to this! No need to reply!
Report
Re: I want to add jCarousel to my thumbnails Posted by rbarbieri on 8 Mar 2010 at 7:59 PM
Post your answer please. It would be helpful to me.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.