如何设置div自动刷新?我为 wordpress 使用 Transcript 主题,在 single.php 中调用内部 php 页面:
</div><!-- /innerLeft -->
<?php include (TEMPLATEPATH . '/innerNarrowSidebar.php'); ?>
<?php include (TEMPLATEPATH . '/innerWideSidebar.php'); ?>
<div class="clear"></div>
innerNarrowSidebar.php里面的代码
<?php if($trns_options['enArc'] == 1) { ?>
        <div class="widget">
            <h3 class="widget_sTitle_b"><?php _e('Archives','Transcript'); ?></h3>
            <ul>
                <?php wp_get_archives('type=monthly'); ?>
            </ul>
        </div>
    <?php } ?>  
而不是innerpage_120x600.php
我有一些谷歌广告
**NOTE**:我在innerNarrowSidebar.php中添加了这段代码,但没有用,div没有自动刷新我添加的代码:
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>
<script language="JavaScript">
setInterval( "SANAjax();", 10000 );  ///////// 10 seconds 
$(function() {
SANAjax = function(){
$('#narrowSidebar').fadeOut("slow").load('ads/innerpage_120x600.php').fadeIn("slow");
}
 });
</script>
如果这是不可能的,如何使文本小部件自动刷新?