如何在主页面滑块的jquery脚本中显示?

时间:2013-09-17 22:50:20

标签: javascript jquery css

最近我尝试制作一个脚本,从我的Facebook墙上抓取新闻并在我的网站上发布。 通过一些研究和一些编辑得出:example

现在,我想将此脚本放在this page

的中间滑块中

连接可以(js / css / script),但不会出现。

这是滑块部分的顺序:(在滑块中也显示数据库中手动引入的新闻。)

 <div id="middle_article">
    <div class="jcarousel-prev-vertical" style="left:63px;"></div>
    <div class="jcarousel-next-vertical" style="left:63px;"></div>
    <ul id="stiri" class="jcarousel jcarousel-skin-tango">
        <?php 
            $result_other_news = mysql_query("SELECT * FROM `stiri` WHERE `status` = '1' AND `lang` = 'ro' ORDER BY `data` DESC LIMIT 1,10");
            while($row_other_news = mysql_fetch_array($result_other_news)){
                $link_stire = 'http://www.aepado.ro/stiri/'.friendly_url($row_other_news['titlu']).'-'.$row_other_news['id'].'.html';
        ?>
            <li>
                <a href="<?php echo $link_stire; ?>"><?php echo substr($row_other_news['titlu'], 0, 75); ?></a>
            </li>

        <?php } ?>

    </ul>
</div>

我的索引页面的主要部分(与我的问题对应):

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="http://aepado.ro/css/jquery.neosmart.fb.wall.css" rel="stylesheet"     type="text/css"/>
<script src="http://aepado.ro/js/jquery-1.6.1.min.js" type="text/javascript"></script>
<script src="http://aepado.ro/js/jquery.neosmart.fb.wall.js" type="text/javascript">       </script>
<script type="text/javascript">
function(){
$('#example1').fbWall({ id:'***',accessToken:'***'});
});
</script>

而且,这是显示脚本的序列:

<div id="example1"></div>

最后,我会提前感谢你,如果你需要更多的信息,我会很高兴地给你。

祝你好运, 科斯明

1 个答案:

答案 0 :(得分:0)

你是否初始化了jcarousel?

$(function(){
('#mycarousel').jcarousel();
});