Archive

文章標籤 ‘jQuery’

Flowplayer + BlockUI

2010年2月11日 Austin 尚無評論

網站:FlowplayerBlockUI
下載:Flowplayer 3.1.5.zipBlockUI 2.31

之前使用的線上播放器是JW Player,但是他在某個版本開始(很久了),限制非商業行為才能免費使用(應該不是我之前沒注意到吧@@),之後發現了Flowplayer,只要不移除他的logo即可免費使用,剛好最近有這個需求,就拿來用看看~感覺還不錯,不過檔案格式的支援好像沒有JW Player那麼完整,像是audio要用外掛可以播放,下面是結合了BlockUI的運用(因為有版面限制又不想換頁)

閱讀全文…

jQuery Plugin Template

2009年12月27日 Austin 尚無評論

基本架構:

jQuery.fn.my_plugin = function() {
   return this.each(function() {
       // TODO
   }
}

增強(方便)版 & 範例:
閱讀全文…

利用jQuery UI的datepicker製作datetime選擇器

2009年12月18日 Austin 尚無評論

使用法方:

<input type="hidden" id="t1" name="t1" value="2009-01-01 00:00:00" />
<script language="javascript">
$('#t1').datetime({
    dateFormat: "yy-mm-dd",
    defaultDate: $(this).val(),
    changeMonth: true,
    changeYear: true,
});
</script>

Plugin的程式碼:
閱讀全文…

速查表(Cheat Sheets)

2009年4月20日 Austin 尚無評論

關於作者:A Coding Fool: About Me
資料來源:A Coding Fool: Cheat Sheets

.NET String Formatting – This cheat sheet contains all of the standard and custom format string used to format dates, times, and numbers in .NET.

ASP.NET Life Cycle – This cheat sheet is a diagram of the events that occur throughout the ASP.NET Application and Page life cycle.

CSS – This cheat sheet list and describes all of the properties in the CSS2 specification.

Design Patterns – This cheat sheet describes and illustrates all of the Gang of Four design patterns.

HTML Character Entities – This cheat sheet all of the HTML 4 character entities references.

HTML Colors – This cheat sheet contains a chart of 1050 colors varied by hue, saturation, and brightness and a chart of Web-safe colors.

jQuery 1.3 – This cheat sheet is a quick reference to functions and properties in the jQuery 1.3 library.

LINQ Query Operators – This cheat sheet contains all of the standard query operators to be used with LINQ.

XHTML 1.1 – This cheat sheet contains elements and attributes available in the XHTML 1.1 specification.

jQuery plugins cookie

2009年4月13日 Austin 尚無評論

一種簡單,輕巧實用插件,讀、寫和刪除Cookies
下載:ZIPSVN

使用方法:

// 取得cookie
$.cookie('the_cookie');

// 設定cookie
$.cookie('the_cookie', 'the_value');

// 設定cookie,並指定7天後失效
$.cookie('the_cookie', 'the_value', { expires: 7 });

// 刪除(立即失效)
$.cookie('the_cookie', '', { expires: -1 });

// 刪除
$.cookie('the_cookie', null);

相關連結:Plugins | jQuery PluginsRepository
參考網站:Klaus Hartl – Stilbüro : Cookie Plugin for jQuery

Categories: jQuery, 未分類 Tags: , ,

jQuery eventObject(Events Guide)

2008年11月16日 Austin 尚無評論

Events (Guide)

jQuery’s event system normalizes the event object according to W3C standards. The event object is guaranteed to be passed to the event handler (no checks for window.event required). So far it normalizes the target and pageX/Y properties and provides both stopPropagation() and preventDefault() methods.

閱讀全文…