Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,038

HOME > PHP > PHP Forum > jquery include มาแล้วตัว jquery ใน page ไม่ทำงานครับ


[PHP] jquery include มาแล้วตัว jquery ใน page ไม่ทำงานครับ

 
Topic : 079189



โพสกระทู้ ( 8 )
บทความ ( 0 )



สถานะออฟไลน์



Code (PHP)
001.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
002.<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
003. <head>
004.  <title>::Admin-Active::</title>
005.  <!-- <meta http-equiv="refresh" content="10"/>refresh every 10 second -->
006.  <meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
007.  <link rel="stylesheet" type="text/css" href="style.css" />
008.  <link rel="stylesheet" type="text/css" href="layout.css" />
009.  <link rel="stylesheet" type="text/css" href="../jQuery/datepicker/css/ui.all.css" />
010. 
011.  <script language="javascript" type="text/javascript" src="../jQuery/jQuery-1.7.2.js"></script>
012.  <script language="javascript" type="text/javascript" src="../jQuery/datepicker/ui/jQuery.ui.core.js"></script>
013.  <script language="javascript" type="text/javascript" src="../jQuery/datepicker/ui/jQuery.ui.widget.js"></script>
014.  <script language="javascript" type="text/javascript" src="../jQuery/datepicker/ui/jQuery.ui.datepicker.js"></script>
015.  <script>
016.    $(function() {
017.        $( "#datepicker" ).datepicker();
018.        $('#ShowHideTable1').hide();
019.        $('table.show1').click(function()
020.        {
021.            $('#ShowHideTable1').toggle(500);
022.            $('.advance').attr('src','images/delete_blue_icon.jpg');
023.                         
024. 
025.            /*$('.advance').toggle(
026.                  function () {
027.                    $(this).attr("src","images/delete_blue_icon.jpg");
028.                  },
029.                  function () {
030.                    $(this).attr("src","images/add_blue_icon.png");
031.                  }
032.                   
033.                );*/
034.        });
035.    });
036.  </script>
037.  <script type="text/javascript">
038.   function time_alert()
039.   {
040.    var x = setTimeout("window_open()",1000);
041.   }
042.   function window_open()
043.   {
044.    window.open('window_open.php' , '','menubar=no,toolbar=no,location=no,scrollbars=no, status=no,resizable=yes,width=900,height=800,top=220,left=650 ' );
045.   }
046.  </script>
047. 
048.  <style type="text/css">
049.   <!--.style1 {color: #FF0000}-->
050.  </style>
051. </head>
052. 
053. <body id="page1" >
054.  <div class="tail-top-right"></div>
055.  <div id="main">
056.  <!-- header -->
057.    <div id="header">
058.      <ul class="site-nav">
059.        <li><a href="index.php"  style="text-decoration:none">Home</a></li>
060.        <li class="last"><a href="admin_active.php" class="act" style="text-decoration:none">Admin-Active</a></li>
061.      </ul>
062.    </div>
063. 
064.  <!-- content -->
065.    <div id="content">
066.      <div class="inner_copy">
067.        <a href=""></a> <a href=""></a> <a href=""></a> <a href=""></a>
068.      </div><!-- don't delete this ice-->
069.      <div class="wrapper">
070.        <div class="col-1">
071.          <div class="box">
072.            <div class="border-top">
073.              <div class="border-right">
074.                <div class="border-bot">
075.                  <div class="border-left">
076.                    <div class="inner">
077.                        <?php include 'menu_left2.php'; ?><!-- include menu left -->                       
078.                    </div>
079.                  </div><!-- close border-left -->
080.                </div><!-- close border-bot -->
081.              </div><!-- close border-right -->
082.            </div><!-- close border-top -->
083.          </div><!-- close box -->
084.          <div class="banner">
085.            <a href="http://192.168.1.12/internal/index.php" target="_blank"><img src="images/banner.gif" alt="" /></a>
086.          </div>
087.        </div><!-- close col-1 -->
088.        <div class="col-2">
089.         <div class="">
090.         </div>
091.          <div class="box">
092.            <div class="border-top">
093.              <div class="border-right">
094.                <div class="border-bot">
095.                  <div class="border-left">
096.                    <div class="inner">                   
097.                      <ul class="list1">
098.                        <!-- <li><h3>รายชื่อรายละเอียดการแก้ไขใบงาน</h3></li> -->
099.                        <li>
100.<?php
101.    require_once "../../config.inc.php";
102.    require_once "../../functions/public_global_function.php";      
103. 
104.    $result = mssql_query("select max(pro_new) from pro_sv_mstr ");
105.    $new = mssql_result($result,0,$pro_new);
106.    echo "<h4><font color=red>รายชื่อรายละเอียดการแก้ไขใบงาน</font></h4>";
107.    if($new==1)
108.    {
109.        mssql_query("UPDATE pro_sv_mstr Set pro_new=0");
110.        $new=0;
111.        echo "<script> time_alert()</script>";
112.    }
113.    else
114.    {
115.        echo "สถานะปัจจุบัน: ไม่มีงานใหม่";
116.    }
117.?>
118. 
119.    <table border="0" width="520" class="show1">
120.        <tr>
121.            <td width="15">
122.                <img src="images/add_blue_icon.png" class="advance" width="15" height="16" border="0" style="cursor:pointer"/>
123.                                 
124.            </td>
125.            <td align="left" width="505">
126.                <font color="blue" style="cursor:pointer"><u>advanced</u></font>&nbsp;
127.                <font size="1" color="red">หมายเหตุ : ก่อนการใช้งานส่วน advanced จะต้องปิด Auto refresh ก่อนทุกครั้ง !</font>
128.            </td>
129.        </tr>
130.    </table>
131.    <div id="ShowHideTable1">
132.        <form name="form1" method="post" action="http://192.168.1.110/service/admin~s/connect_it/Back_Systems/admin_active.php">
133.            <table border="1" width="250" style="color:gray;">
134.                <tr onMouseMove=this.bgColor="red";this.style.color="white" onMouseOut=this.bgColor="transparent";this.style.color="gray">
135.                    <td colspan="2" align="center"><b>ระบุวันที่ค้นหา</b>&nbsp;<input type="text" id="datepicker" name="date_fix" style="width:100px;"/></td>
136.                </tr>
137.                <tr onMouseMove=this.bgColor="red";this.style.color="white" onMouseOut=this.bgColor="transparent";this.style.color="gray">
138.                    <td width="15"><input type="checkbox" name="non_fix" value="check1"/></td>
139.                    <td align="left" width="235">&nbsp;แสดงงานที่ยังไม่ได้รับเรื่อง</td>
140.                </tr>
141.                <tr onMouseMove=this.bgColor="red";this.style.color="white" onMouseOut=this.bgColor="transparent";this.style.color="gray">
142.                    <td width="15"><input type="checkbox" name="con_fix" value="check2"/></td>
143.                    <td align="left" width="235">&nbsp;แสดงงานที่กำลังดำเนินการ</td>
144.                </tr>
145.                <tr onMouseMove=this.bgColor="red";this.style.color="white" onMouseOut=this.bgColor="transparent";this.style.color="gray">
146.                    <td width="15"><input type="checkbox" name="end_fix" value="check3"/></td>
147.                    <td align="left" width="235">&nbsp;แสดงงานที่แก้ไขเสร็จสิ้น</td>
148.                </tr>
149.                <tr onMouseMove=this.bgColor="red";this.style.color="white" onMouseOut=this.bgColor="transparent";this.style.color="gray">
150.                    <td width="15"><input type="checkbox" name="cancle_fix" value="check4"/></td>
151.                    <td align="left" width="235">&nbsp;แสดงงานที่ยกเลิกปัญหา</td>
152.                </tr>
153.                <tr onMouseMove=this.bgColor="red";this.style.color="white" onMouseOut=this.bgColor="transparent";this.style.color="gray">
154.                    <td width="15"><input type="checkbox" name="all_fix" value="check5"/></td>
155.                    <td align="left" width="235">&nbsp;แสดงงานทั้งหมด</td>
156.                </tr>
157.                <tr onMouseMove=this.bgColor="red";this.style.color="white" onMouseOut=this.bgColor="transparent";this.style.color="gray">
158.                    <td colspan="2" align="center"><input type="submit" value="ค้นหา" style="font-size:13px;width:50px;cursor:pointer"></td>
159.                </tr>
160.            </table>
161.        </form>
162.    </div>
163.<?
164.    echo '<table border="1" width="750" style="table-layout:fixed;">';
165.    echo '<tr bgcolor="#CCCCCC">';
166.    echo '<th width="100">No.การแจ้ง</th>';
167.    echo '<th width="300">ชื่อปัญหา</th>';
168.    echo '<th width="150">วัน-เวลาที่แจ้ง</th>';
169.    echo '<th width="150">เปลี่ยนสถานะ</th>';
170.    echo '<th width="50">ลบ</th>';
171.    echo "</tr>";
172.     
173.    $today_date = date("d/m/Y");
174.    $date_fix = $_POST["date_fix"];//ระบุวันที่ค้นหา
175.    $non_fix = $_POST["non_fix"];//แสดงงานที่ยังไม่ได้แก้ปัญหา
176.    $con_fix = $_POST["con_fix"];//แสดงงานที่กำลังดำเนินการ
177.    $end_fix = $_POST["end_fix"];//แสดงงานที่แก้ไขเสร็จสิ้น
178.    $cancle_fix = $_POST["cancle_fix"];//แสดงงานที่ยกเลิกปัญหา
179.    $all_fix = $_POST["all_fix"];//แสดงงานทั้งหมด
180. 
181.    $select = "(pro_id<>'55052100' and pro_date='".$today_date."')or pro_status = 1";
182.    if($date_fix <> "")
183.    {
184.        $select = "pro_date='".$date_fix."'";
185.    }
186.    if($date_fix <> "" && $non_fix <> "")
187.    {
188.        $select = "pro_date='".$date_fix."' and pro_status = 1";
189.    }
190.    if($date_fix <> "" && $con_fix <> "")
191.    {
192.        $select = "pro_date='".$date_fix."' and pro_status = 2";
193.    }
194.    if($date_fix <> "" && $end_fix <> "")
195.    {
196.        $select = "pro_date='".$date_fix."' and pro_status = 3";
197.    }
198.    if($date_fix <> "" && $cancle_fix <> "")
199.    {
200.        $select = "pro_date='".$date_fix."' and pro_status = 4";
201.    }
202.    if($date_fix <> "" && $con_fix <> "")
203.    {
204.        $select = "pro_date='".$date_fix."' and pro_status = 2";
205.    }
206.    if($date_fix <> "" && $end_fix <> "")
207.    {
208.        $select = "pro_date='".$date_fix."' and pro_status = 3";
209.    }
210.    if($date_fix <> "" && $cancle_fix <> "")
211.    {
212.        $select = "pro_date='".$date_fix."' and pro_status = 4";
213.    }
214.    if($date_fix == "" &&$non_fix <> "")
215.    {
216.        $select = "pro_status = 1";
217.    }
218.    if($date_fix == "" && $con_fix <> "")
219.    {
220.        $select = "pro_status = 2";
221.    }
222.    if($date_fix == "" && $end_fix <> "")
223.    {
224.        $select = "pro_status = 3";
225.    }
226.    if($date_fix == "" && $cancle_fix <> "")
227.    {
228.        $select = "pro_status = 4";
229.    }
230.    if($date_fix == "" && $all_fix <> "")
231.    {
232.        $select = "pro_id<>'55052100'";
233.    }
234.     
235.    $sql_mstr = "SELECT * FROM pro_sv_mstr WHERE ".$select;
236.    $result_mstr = mssql_query($sql_mstr);
237. 
238.    while($data = mssql_fetch_array($result_mstr))
239.    {  
240.        $sql_pbm = mssql_query("SELECT * FROM pro_sv_pbm WHERE pbm_id='".$data[pbm_id]."'");
241.        $result_pbm = mssql_fetch_array($sql_pbm);
242. 
243.        if($data[pro_status]==1)
244.        {
245.            $status = '<a href="resolve.php?pro_id='.$data[pro_id].'&status='.$data[pro_status].'"><font color="orange">รับเรื่อง</font></a>';
246.        }
247.        if($data[pro_status]==2)
248.        {
249.            $status = '<a href="resolve.php?pro_id='.$data[pro_id].'&status='.$data[pro_status].'"><font color="blue">กำลังดำเนินการ</font></a>';
250.        }
251.        if($data[pro_status]==3)
252.        {
253.            $status = '<font color="green">ดำเนินการเสร็จสิ้น</font>';
254.        }
255.        if($data[pro_status]==4)
256.        {
257.            $status = '<font color="gray">ยกเลิกการแก้ไข</font>';
258.        }
259. 
260.        echo '<tr align="center">';
261.        echo '<td><a href="detail.php?action=resolve&pro_id='.$data[pro_id].'"><font color="blue">'.$data[pro_id].'</font></a></td>';
262.        echo '<td align="left">&nbsp;'.$result_pbm[pbm_desc].'</td>';
263.        echo '<td>'.$data[pro_date].'<font color="blue">|</font>'.$data[pro_time].'</td>';
264.        echo '<td>'.$status.'</a></td>';
265.?>
266.        <td><a href="pro_del.php?pro_id=<?=$data['pro_id'];?>" onclick="return confirm('ยืนยันการลบ?')"><font color="red">ลบ</font></a></td>
267.<?      
268.        echo '</tr>';
269.    }
270.    echo '</table>';
271.?>
272. 
273.                          </li>
274.                        <li>
275.                      </li>
276.                    </ul>
277.                  </div>
278.                </div>
279.              </div>
280.            </div>
281.          </div>
282.        </div>
283.      </div>
284.      <div class="title"><img src="images/banner_saijo.jpg" alt="" width="850" height="100" align="center"/></div>
285.    </div>   
286.  </div>
287.  <!-- footer -->
288.  <div id="footer">
289.    <div class="indent"></div>
290.  </div>
291.</div>
292.</body>
293.</html>



**บรรทัดที่ 77 ผม include menu ที่เป็น jquery มาครับ
ผลลัพธ์ออกมาเป็น jquery ตัวเมนูทำงาน แต่ตัวที่มีอยู่แล้วไม่ทำงานครับผม (ถ้าเอา jquery menu ออกก็ทำงานตามปกติครับ)

ลองใช้ firefox หา bug มันฟ้องว่า บรรทัดที่ 17 ไม่ใช่ function ผมต้องเขียนยังไงถึงจะถูกรูปแบบครับ
ขอบคุณล่วงหน้าน่ะครับ



Tag : HTML/CSS, JavaScript, jQuery

Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2012-05-31 11:34:37 By : hayenaiceman View : 1935 Reply : 4
 

 

No. 1



โพสกระทู้ ( 8 )
บทความ ( 0 )



สถานะออฟไลน์


Code (PHP)
001.<?php
002.echo '
003.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
004.<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
005. 
006.<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
007. 
008.<script type="text/javascript" src="Script/ddaccordion.js">
009. 
010./***********************************************
011.* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
012.* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
013.* This notice must stay intact for legal use
014.***********************************************/
015. 
016.</script>
017. 
018.<script type="text/javascript">
019. 
020.ddaccordion.init({
021.    headerclass: "headerbar", //Shared CSS class name of headers group
022.    contentclass: "submenu", //Shared CSS class name of contents group
023.    revealtype: "mouseover", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
024.    mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
025.    collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
026.    defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc] [] denotes no content
027.    onemustopen: true, //Specify whether at least one header should be open always (so never all headers closed)
028.    animatedefault: false, //Should contents open by default be animated into view?
029.    persiststate: true, //persist state of opened contents within browser session?
030.    toggleclass: ["", "selected"], //Two CSS classes to be applied to the header when it is collapsed and expanded, respectively ["class1", "class2"]
031.    togglehtml: ["", "", ""], //Additional HTML added to the header when it is collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
032.    animatespeed: "normal", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
033.    oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
034.        //do nothing
035.    },
036.    onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
037.        //do nothing
038.    }
039.})
040. 
041.</script>
042. 
043.<style type="text/css">
044. 
045..urbangreymenu{
046.width: 190px; /*width of menu*/
047.}
048. 
049..urbangreymenu .headerbar{
050.font: bold 13px Verdana;
051.color: white;
052.background: #606060 url(arrowstop.gif) no-repeat 8px 6px; /*last 2 values are the x and y coordinates of bullet image*/
053.margin-bottom: 0; /*bottom spacing between header and rest of content*/
054.text-transform: uppercase;
055.padding: 7px 0 7px 31px; /*31px is left indentation of header text*/
056.}
057. 
058..urbangreymenu .headerbar a{
059.text-decoration: none;
060.color: white;
061.display: block;
062.}
063. 
064..urbangreymenu ul{
065.list-style-type: none;
066.margin: 0;
067.padding: 0;
068.margin-bottom: 0; /*bottom spacing between each UL and rest of content*/
069.}
070. 
071..urbangreymenu ul li{
072.padding-bottom: 2px; /*bottom spacing between menu items*/
073.}
074. 
075..urbangreymenu ul li a{
076.font: normal 12px Arial;
077.color: black;
078.background: #E9E9E9;
079.display: block;
080.padding: 5px 0;
081.line-height: 17px;
082.padding-left: 8px; /*link text is indented 8px*/
083.text-decoration: none;
084.}
085. 
086..urbangreymenu ul li a:visited{
087.color: black;
088.}
089. 
090..urbangreymenu ul li a:hover{ /*hover state CSS*/
091.color: white;
092.background: black;
093.}
094. 
095.</style>
096. 
097.<body>
098. 
099.<div class="urbangreymenu">
100. 
101.<h3 class="headerbar">Service</h3>
102.<ul class="submenu">
103.<li><a href="pbm.php?data=1">ต้องการพิมพ์ใบยืมอะไหล่ใหม่</a></li>
104.<li><a href="pbm.php?data=2">ต้องการพิมพ์ใบแจ้งซ่อมใหม่</a></li>
105.<li><a href="pbm.php?data=3">ต้องการยกเลิกใบงาน</a></li>
106.<li><a href="pbm.php?data=4">ต้องการเปลี่ยนแปลงอะไหล่ใบงาน</a></li>
107.<li><a href="pbm.php?data=5">ต้องการเพิ่มอะไหล่ในใบงาน</a></li>
108.<li><a href="pbm.php?data=6">ต้องการลบอะไหล่ออกจากใบงาน</a></li>
109.<li><a href="pbm.php?data=7">ต้องการเปลี่ยนสถานะอะไหล่จากขายเป็นเคลม</a></li>
110.<li><span><a href="pbm.php?data=8">การ login เข้าใช้ระบบ</a></span></li>
111.<li><span><a href="pbm.php?data=10">กรอกข้อมูลเคลม Comp ไม่ได้</a></span></li>
112.<li><span><a href="pbm.php?data=11">ต้องการเพิ่มไอเท็มใน StoreX</a></span></li>
113.<li><span><a href="pbm.php?data=12">คีย์ข้อมูลลูกค้าไม่ได้</a></span></li>
114.<li><span><a href="pbm.php?data=13">ต้องการแยกใบงาน(dis)</a></span></li>
115.<li><span><a href="pbm.php?data=14">ไม่มี Serial แอร์ที่ลูกค้าแจ้งซ่อม</a></span></li>
116.<li><span><a href="pbm.php?data=15">ต้องการดึง Stock จาก MFG/PRO เข้า Service</a></span></li>
117.<li><span><a href="pbm.php?data=16">ต้องการเพิ่ม User ใหม่</a></span></li>
118.<li><span><a href="pbm.php?data=37">ต้องการเพิ่มอะไหล่ใหม่ใน Service</a></span></li>
119.<li><span><a href="pbm.php?data=37">ต้องการเพิ่มอะไหล่ใหม่+ราคาใน "Part Online"<<</a></span></li>
120.</ul>
121. 
122.<h3 class="headerbar">Store</h3>
123.<ul class="submenu">
124.<li><span><a href="pbm.php?data=17">ไม่สามารถจ่ายอะไหล่ให้ช่างได้</a></span></li>
125.<li><span><a href="pbm.php?data=18">ต้องการเปลี่ยนแปลงอะไหล่ในใบงาน</a></span></li>
126.<li><span><a href="pbm.php?data=19">ต้องการเพิ่มอะไหล่ในใบงาน</a></span></li>
127.<li><span><a href="pbm.php?data=20">ต้องการลบอะไหล่ออกจากใบงาน</a></span></li>
128.<li><span><a href="pbm.php?data=21">ต้องการรับของจากช่างใหม่</a></span></li>
129.<li><span><a href="pbm.php?data=22">รับของคืนจากช่างไม่ขึ้นใบงาน</a></span></li>   
130.<li><span><a href="pbm.php?data=23">ปิดใบงานแล้ว ต้องการย้อนสถานะ</a></span></li>
131.<li><span><a href="pbm.php?data=24">ต้องการเบิกอะไหล่ใหม่</a></span></li>
132.<li><span><a href="pbm.php?data=8">การ login เข้าใช้ระบบ</a></span></li>
133.<li><span><a href="pbm.php?data=16">ต้องการเพิ่ม User ใหม่</a></span></li>
134.<li><span><a href="pbm.php?data=28">ต้องการแก้ไขหมายเลข SI</a></span></li>
135.</ul>
136. 
137.<h3 class="headerbar">Claim</h3>
138.<ul class="submenu">
139.<li><span><a href="pbm.php?data=29">ต้องการพิมพ์ใบเคลมใหม่</a></span></li>
140.<li><span><a href="pbm.php?data=30">ต้องการพิมพ์ใบสั่งอะไหล่ใหม่</a></span></li>
141.<li><span><a href="pbm.php?data=31">ต้องการพิมพ์ใบรับคืนอะไหล่ใหม่</a></span></li>
142.<li><span><a href="pbm.php?data=32">ต้องการให้รับเคลมได้ (กรณีหมดประกัน)</a></span></li>
143.<li><span><a href="pbm.php?data=33">ต้องการแก้ไขปิดงานยืมเคลมใหม่</a></span></li>
144.<li><span><a href="pbm.php?data=25">ต้องการพิมพ์ใบ D/R ใหม่</a></span></li>
145.<li><span><a href="pbm.php?data=8">การ login เข้าใช้ระบบ</a></span></li>
146.<li><span><a href="pbm.php?data=16">ต้องการเพิ่ม User ใหม่</a></span></li>
147.<li class="last"><span><a href="pbm.php?data=38">Store key ข้อมูลรับอะไหล่ไม่ได้</a></span></li>
148.</ul>
149. 
150.</div>
151. 
152.</body>
153. 
154.</html>';
155.?>


** อันนี้ตัว jquery ที่ถูกเรียกไปใช้งานครับ ******************
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-05-31 11:36:12 By : hayenaiceman
 

 

No. 2



โพสกระทู้ ( 74,059 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

Code เยอะขนาดนี้จะให้ดูอะไรครับ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-05-31 12:59:02 By : mr.win
 

 

No. 3



โพสกระทู้ ( 8 )
บทความ ( 0 )



สถานะออฟไลน์


****ขอโทษทีครับผม *****

01.<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
02.<script type="text/javascript" src="Script/ddaccordion.js"></script>
03.<script type="text/javascript">
04. 
05.ddaccordion.init({
06.    headerclass: "headerbar", //Shared CSS class name of headers group
07.    contentclass: "submenu", //Shared CSS class name of contents group
08.    revealtype: "mouseover", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
09.    mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
10.    collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
11.    defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc] [] denotes no content
12.    onemustopen: true, //Specify whether at least one header should be open always (so never all headers closed)
13.    animatedefault: false, //Should contents open by default be animated into view?
14.    persiststate: true, //persist state of opened contents within browser session?
15.    toggleclass: ["", "selected"], //Two CSS classes to be applied to the header when it is collapsed and expanded, respectively ["class1", "class2"]
16.    togglehtml: ["", "", ""], //Additional HTML added to the header when it is collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
17.    animatespeed: "normal", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
18.    oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
19.        //do nothing
20.    },
21.    onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
22.        //do nothing
23.    }
24.})
25. 
26.</script>
27. 
28.<style type="text/css">


*********ผมคิดว่าผมเรียกใช้ผิดครับ ตรงส่วนนี้ผมต้อง include ไปซึ่งมันก็ทำงานได้ แต่ว่ามันทำให้ jquery ตัวอื่นๆในหน้าไม่ทำงานครับผม*****
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-05-31 13:09:52 By : hayenaiceman
 

 

No. 4



โพสกระทู้ ( 8 )
บทความ ( 0 )



สถานะออฟไลน์


ได้แล้วครับ

ขอบคุณคับ

(หนีไปใช้ javascript เอา ^_^)
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-05-31 13:34:41 By : hayenaiceman
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : jquery include มาแล้วตัว jquery ใน page ไม่ทำงานครับ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)





ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2025 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่