-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi guys,
I am researching Zkoss in order to know if we can use it to do some 3d effects, on rotating an image (in fact a png file with several pictures of the same object being rotated). Is that possible to be done in Zkoss ?
thanks
Hi nethajip,
ZK5 has including jquery,
you don't have to include again.
Yes,
But the selector
$('a[rel=tipsy]')
Hi jimmy
I just want to rotate the image thats why i removed the a tag.
below i added the a tag. try this
<?page title="slider" contentType="text/html;charset=UTF-8"?> <zk> <style src="css/style.css" /> <style src="css/tipsy.css" /> <script type="text/javascript" src="js/jquery.coda-slider-2.0.js" /> <script type="text/javascript" src="js/jquery.tipsy.js" /> <script type="text/javascript"> $(function() { $('a[rel=tipsy]').tipsy({fade: true, gravity: 's'}); }); function slideSwitch() { var $active = $('.slideshow IMG.active'); if ( $active.length == 0 ) $active = $('.slideshow IMG:last'); var $next = $active.next().length ? $active.next() : $('.slideshow IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } $(function() { setInterval( "slideSwitch()", 5000 ); }); </script> <div sclass="featured-client"> <div sclass="slideshow"> <a href="add link here"><image src="image/18842_profile_thumb90.jpg" sclass="active" /></a> <a href="add link here"> <image src="image/22885_profile_thumb90.jpg" /></a> <a href="add link here"> <image src="image/31065_profile_thumb90.jpg" /></a> <a href="add link here"> <image src="image/32156_profile_thumb90.jpg" /></a> <a href="add link here"> <image src="image/33347_profile_thumb90.jpg" /></a> </div> </div> </zk>
OK
<iframe src="http://tympanus.net/codrops/2010/06/07/fancy-sliding-form-with-jquery/" />
;P
Hmm, i'm not very firm with JavaScript. The codes from the thread starter doesn't run by me. Does anyone have a running example with all needed files for an image slideshow?
zk 5.0.10
thanks
Stephan
Asked: 2011-02-22 16:31:42 +0800
Seen: 3,763 times
Last updated: Mar 02 '12