標籤

ASP.NET MVC (29) Visual C# (15) JQuery (10) Plugins (8) JQuery Plugins (6) JavaScript (6) MySQL (5) CSS (4) LinQ (4) Mac OS (4) CentOS (3) Design Pattern (3) Entity Framework (3) IIS (3) Python (3) Windows (3) php (3) Docker (2) LAMP (2) SQL Server (2) WCF (2) .NET (1) .NET Core (1) AWS (1) Browser (1) GIS (1) IE (1) Internet Security (1) Linux (1) Platform (1) React (1) SEO (1) Testing (1) VMware (1) Windows 7 (1) cookie (1) curl (1) laravel (1) phpBB (1) session (1) 中古屋 (1) 透天 (1) 閒言閒語 (1) 面試 (1) 鳥松 (1)
顯示具有 Plugins 標籤的文章。 顯示所有文章
顯示具有 Plugins 標籤的文章。 顯示所有文章

2011年5月23日 星期一

[Plugins] 網頁音樂播放器- Yahoo Media Player

照著這裡做就OK了:


Edit:
後來發現好像2008後就沒有維護了,還是用這款佛心的比較好:


Reference:

2011年5月16日 星期一

[Plugins] 如何加上facebook讚的按鈕到網頁上

其實很簡單,下面的語法即可達成:




   


不過還是建議使用FBXML的語法,有興趣可以去FB的官方看範例:
http://developers.facebook.com/docs/plugins/


Reference:http://bonny.com.tw/www/facebook/0422_facebook_like.htm

2011年4月27日 星期三

[TinyMCE] JQuery UI dialog 相衝問題

如果把TinyMCE放到dialog ,非IE就會變成唯讀,目前還沒找到適當的解決方式,

$("#dialogCommentMessage").dialog({
            autoOpen: false,
            show: "blind",
            hide: "explode",
            height: "400",
            width: "800", 
            modal: true,
              open: function (event, ui) {
                  tinyMCE.execCommand('mceAddControl', true, 'NContent');
              },
              close: function (event, ui) {
                  tinyMCE.execCommand('mceRemoveControl', true, 'NContent');
              }

        });



相關文章

http://www.flyingjolly.com/2010/10/tinymce-and-jquery-dialog/

http://stackoverflow.com/questions/2082599/tinymce-only-readable-in-jquery-ui-dialog

http://forum.jquery.com/topic/tinymce-dialog-issue

http://forgottencode.wordpress.com/2009/07/22/jquery-dialog-and-tinymce-not-working/

http://stackoverflow.com/questions/752313/tinymce-and-jquery-ui-dialog-working-nicely

http://tinymce.moxiecode.com/tryit/jquery_plugin.php

2011年4月20日 星期三

[Plugins] SyntaxHighlighter 部落格貼程式碼的好幫手

官方網站:

SyntaxHighlighter 3.0.83


先在部落格引用下列檔案

使用方式:
1
2
3
4
5
6
7
8
9
10
11
<pre class="brush: js">
    /**
     * SyntaxHighlighter
     */
    function foo()
    {
        if (counter <= 10)
            return;
        // it works!
    }
</pre>



支援的程式語言:
http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/

列表:

Brush nameBrush aliasesFile name
ActionScript3as3, actionscript3shBrushAS3.js
Bash/shellbash, shellshBrushBash.js
ColdFusioncf, coldfusionshBrushColdFusion.js
C#c-sharp, csharpshBrushCSharp.js
C++cpp, cshBrushCpp.js
CSScssshBrushCss.js
Delphidelphi, pas, pascalshBrushDelphi.js
Diffdiff, patchshBrushDiff.js
Erlangerl, erlangshBrushErlang.js
GroovygroovyshBrushGroovy.js
JavaScriptjs, jscript, javascriptshBrushJScript.js
JavajavashBrushJava.js
JavaFXjfx, javafxshBrushJavaFX.js
Perlperl, plshBrushPerl.js
PHPphpshBrushPhp.js
Plain Textplain, textshBrushPlain.js
PowerShellps, powershellshBrushPowerShell.js
Pythonpy, pythonshBrushPython.js
Rubyrails, ror, rubyshBrushRuby.js
ScalascalashBrushScala.js
SQLsqlshBrushSql.js
Visual Basicvb, vbnetshBrushVb.js
XMLxml, xhtml, xslt, html, xhtmlshBrushXml.js