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

How to display in a jquery script in a main page slider?

本文关键字:jquery 脚本 显示 主页      更新时间:2023-09-26

最近我尝试制作一个脚本,从我的Facebook墙上获取新闻并发布在我的网站上。经过一些研究和一些编辑,结果是:示例

现在,我想把这个脚本放在这个页面的中间滑块

连接正常(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>

最后,我会提前感谢您,如果您需要更多信息,我将很高兴地为您提供。

此致敬意科斯明

你初始化了jcarousel吗?

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