jQuery滑块问题 [英] Problem with Jquery slider

查看:60
本文介绍了jQuery滑块问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我正在将jQuery滑块与php,mysql
一起使用 它正在获取数据,但显示不正确
请帮助我.
这是我的代码

Hi everyone,
i am using jquery slider with php,mysql
it is fetching the data but not displaying correctly
please help me in this.
Here is my code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Featured Content Slider Using jQuery - Web Developer Plus  Demos</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script>
<script type="text/javascript">
    $(document).ready(function(){
        $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
    });
</script>
</head>
<body>
<?php

include("connection.php");

$query=mysql_query("select * from images");

while($row=mysql_fetch_array($query))

{

    echo "



        <div id='featured' >
          <ul class='ui-tabs-nav'>
            <li class='ui-tabs-nav-item ui-tabs-selected' id='nav-fragment-1'><a href='#fragment-1'><span>".$row['imageid']." Photographs</span></a></li>

          </ul>

        <!-- First Content -->
        <div id='fragment-1' class='ui-tabs-panel' style=''>
            <img src=".$row['imagepath']." alt='' />
             <div class='info' >
                <h2><a href='#' >15+ Excellent High Speed Photographs</a></h2>
                <p>".$row['Description']."<a href='#' >read more</a></p>
             </div>
        </div>

        </div>
    </div>


</body>";
}
mysql_close($con);
?>
</html>

推荐答案

(document).ready(function(){
(document).ready(function(){


(#featured> ul"). tabs({fx:{opacity:"toggle"}}).tabs("rotate",5000,true); }); < /script > < /head > < 正文 > <? php include("connection.php");
("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true); }); </script> </head> <body> <?php include("connection.php");


查询 = 选择 * 来自 图像"); while(
query=mysql_query("select * from images"); while(


这篇关于jQuery滑块问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆