主要是图片或者flash 透明后 翻转,jquery.cycle实现了图片透明翻转.而flash暂时用 wmode=transparent来实现透明,但没有渐变效果
.slideshow img {
padding: 15px;
border: 1px solid #ccc;
background-color: #eee;
}
--></mce:style><style type="text/css" mce_bogus="1"> .slideshow {
height: 232px;
width: 232px;
margin: auto
}
.slideshow img {
padding: 15px;
border: 1px solid #ccc;
background-color: #eee;
}
</style>
<!-- include jQuery library -->
<mce:script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" mce_src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"><!--
// --></mce:script>
<mce:script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.74.js" mce_src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.74.js"></mce:script>
<!-- include Cycle plugin <mce:script type="text/javascript" src="src/jquery.cycle.all.js" mce_src="src/jquery.cycle.all.js"></mce:script>
<mce:script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject_src.js" mce_src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject_src.js"><!--
// --></mce:script>
<!-- initialize the slideshow when the DOM is ready -->
<mce:script type="text/javascript"><!--
$(document).ready(function(){
$('.slideshow').cycle({
fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
});
});
swfobject.embedSWF("http://player.youku.com/player.php/sid/XMjM2NzU0MzY0/v.swf", "flash", "200", "200", "9.0.0", "", {}, {
wmode: "transparent"
}, {});
// --></mce:script>
</head>
<body>
<div class="slideshow">
<!--<img src="img/beach1.jpg" mce_src="img/beach1.jpg" width="200" height="200" /><img src="img/beach2.jpg" mce_src="img/beach2.jpg" width="200" height="200" />-->
<img src="http://cloud.github.com/downloads/malsup/cycle/beach3.jpg" mce_src="http://cloud.github.com/downloads/malsup/cycle/beach3.jpg" width="200" height="200" /><img src="http://cloud.github.com/downloads/malsup/cycle/beach4.jpg" mce_src="http://cloud.github.com/downloads/malsup/cycle/beach4.jpg" width="200" height="200" />
<div>
<div id="flash">
</div>
</div>
</div>
</body>
</html>