Frm_Main.csView Code 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Text; 7 using System.Windows.Forms; 8 using System.Runtime.InteropServices; 9 10
Frm_Main.csView Code 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Windows.Forms; 9 using
jquery 擷取 DIV的width的語句:$("#keleyi_com").width();其中keleyi_com為DIV的id。完整範例程式碼:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html
經典的Jquery彈出層菜單,附完整代碼。預覽效果效果網址:http://www.keleyi.com/keleyi/phtml/divmenu.htmjquery添加移除類的兩個方法:addClass() 方法向被選元素添加一個或多個類。該方法不會移除已存在的 class 屬性,僅僅添加一個或多個 class 屬性。提示:如需添加多個類,請使用空格分隔類名。文法$(selector).addClass(class)參數描述class必需。規定一個或多個 class
本樣本使用Jquery的ColorBox外掛程式彈出圖片組瀏覽層。效果預覽網址:http://www.keleyi.com/keleyi/phtml/colorbox/以下是本效果的完整代碼,將以下代碼儲存到html檔案,開啟即可預覽效果。<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
本樣本使用Jquery實現視頻播放頁面的關燈開燈效果。其中視頻顯示使用embed 元素,該元素是html5的元素,所以使用支援html5的瀏覽器效果會更好。效果預覽網址:http://www.keleyi.com/keleyi/phtml/guandeng/完整代碼:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
本執行個體使用jquery操作div的CSS,實現了可隱藏重現的靠邊懸浮層,預覽效果網址:http://www.keleyi.com/keleyi/phtml/xuanfudiv/本執行個體使用到jquery添加移除類的兩個方法,詳細介紹請參考網址:http://www.keleyi.com/a/bjac/e9e40a974de5a902.htm下面給出完整代碼,儲存到html檔案可查看效果。<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
本執行個體使用Javascript實現在textarea游標處插入文本,支援多種瀏覽器,效果網址:http://www.keleyi.com/dev/36d87291ba370420.htm 下面是代碼:--------------------------------------------------------------------------------<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
先看一下效果:http://www.keleyi.com/keleyi/phtml/fixedcenter.htm關鍵代碼是:#topmenu_keleyi_com{position:fixed;left:0px;right:0px;width:706px;margin-left:auto;margin-right:auto;}附完整代碼:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"