24 พฤษภาคม 2555, 07:12:47
ยินดีต้อนรับผู้เยี่ยมชม
  • noavata
  • ยินดีต้อนรับคุณ, ผู้เยี่ยมชม กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน
    เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
Page Rank

ทำเว็บไซต์ | แต่งบอร์ด | ออกแบบ | SMF | Joomla | Drupal | WordPress | JQuery | CMS | ECommerce | Tel. +668-08577477

ส่งหัวข้อนี้พิมพ์ หน้า: 1 
icon message ผู้เขียน หัวข้อ: เรียกใช้งาน jQuery ผ่าน Google API  (อ่าน 902 ครั้ง)
0 สมาชิก และ 1 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
martza125

icon message
general เมื่อ: 20 กุมภาพันธ์ 2553, 22:03:05
ปกติเมื่อมีการเรียกใช้ไฟล์ jQuery จะเรียกใช้ไฟล์ที่อยู่ใน Server ของเรา ตัวอย่างการใช้งาน jQuery ทั่วไป

โค๊ด: [Select]
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>     
<script type="text/javascript">       
$(function(){     
// แทรกโค้ด jQuery ของคุณ
});     
</script>

มีอีกวิธีหนึ่งที่เราสามารถเรียกใช้ คุณสมบัติของ jQuery ผ่าน Google API ดังนี้

โค๊ด: [Select]
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load("jquery", "1.4.2");
</script>
<script type="text/javascript">
$(function(){
// แทรกโค้ด jQuery ของคุณ
});
</script>

*หมายเหตุ ถ้า Google อืด jQuery เราอืดตามนะครับ ^_^

Credit : ninenik

ลิงค์หัวข้อ: http://dexmore.com/topic/675
Thx by heaven
Windows NT 6.1    Firefox 3.6   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
ส่งหัวข้อนี้พิมพ์ หน้า: 1 
กระโดดไป:  

Creative Commons License

SMF Thai Translation Powered by SMF © 2006–2012, Simple Machines LLC

WordPress Google เข้าเยี่ยมชมหน้านี้ล่าสุดเมื่อ : 9 ชั่วโมงที่ผ่านมา

jQuery Plugin Copyright © 2551-2555 Themes Design & Hosting by DexMoreGroup

Sitemap | Thai Simple Machines Forum support SMF Thai

Web Begining | SMF Modifications | SMF Thai Translation Web Begining

Drupal | WordPress | CMS Joomla | jQuery Plugin | Web Graphics CMS Joomla