好的,我正在使用以下代码:
<script type="text/javascript">
$(function() {
$("#flipPad a:not(.revert)").bind("click",function() {
var $this = $(this);
$("#flipbox").flip({
direction: $this.attr("rel"),
color: $this.attr("rev"),
content: $this.attr("title"), //(new Date()).getTime(),
onBefore: function(){$(".revert").show()}
});
return false;
});
$(".revert").bind("click",function() {
$("#flipbox").revertFlip();
return false;
});
var changeMailTo = function() {
var mArr = ["@","smashup","luca",".it"];
$("#email").attr("href","mailto:"+mArr[2]+mArr[0]+mArr[1]+mArr[3]);
}
$(".downloadBtn").click(function() {
pageTracker._trackPageview("download_flip");
});
setTimeout(changeMailTo,500);
});
</script>
这是当我点击翻转板按钮时,翻转框恢复演示
现在我想做的是翻转 div,但自动。
我试过这个,但没有奏效:
<script>
$( document ).ready(function() {
$("#flipbox").flip({
direction: $this.attr("rel"),
color: $this.attr("rev"),
content: $this.attr("title"), //(new Date()).getTime(),
onBefore: function(){$(".revert").show()}
});
});
</script>