1
这里是我到目前为止,但它加载的时候了:如何在页面加载5秒后显示Colorbox?
<script type="text/javascript">
var pid = <?php echo $_GET['id']; ?>;
var rlink = "<?php echo $domain; ?>share.php?pid=" + pid;
$(document).ready(function(){
setTimeout($(".url_tag_small").colorbox({ href: rlink, width: "620px", height: "354px", opacity: 0.0, transition: "none", initialWidth: "620px", initialHeight: "354px", iframe: true, title: true, open: true}), 5000);
});
</script>
我在做什么错?
+1 - 与我的回答相同,但更适合jQuery风格。 – 2010-06-10 14:39:06
工作完美!谢谢! – mike 2010-06-10 15:00:15
@mike肯定的事情!你有99%,只需要额外的功能。 – 2010-06-10 15:08:00