http://www.developer.com/ws/android/development-tools/haxm-speeds-up-the-android-emulator.html
- Jun 12 Thu 2014 16:33
[PhoneGap] eclipse emulator sppeds up
- Jun 11 Wed 2014 16:56
Twitch
<object type="application/x-shockwave-flash" height="500" width="660" id="live_embed_player_flash" data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=trick2g" bgcolor="#000000"> | |
<param name="allowFullScreen" value="true" /> | |
<param name="allowScriptAccess" value="always" /> | |
<param name="allowNetworking" value="all" /> | |
<param name="movie" value="http://www.twitch.tv/widgets/live_embed_player.swf" /> | |
<param name="flashvars" value="hostname=www.twitch.tv&channel=trick2g&auto_play=true&start_volume=25" /> | |
</object> |
<iframe frameborder="0" scrolling="no" src="http://twitch.tv/trick2g/chat?popout=" height="500" width="350"></iframe>
- Jun 11 Wed 2014 16:36
Google Map 嵌入
<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d3616.6823749881905!2d121.54598299999999!3d24.976919!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x346801f064bc0a31%3A0x8e9b82c4b37404fc!2zMjMx5paw5YyX5biC5paw5bqX5Y2A5Lit6IiI6Lev5LiJ5q61M-iZnw!5e0!3m2!1szh-TW!2stw!4v1402475581621" width="600" height="450" frameborder="0" style="border:0"></iframe>
- Jun 10 Tue 2014 18:14
[PhoneGap] Storage //存cookie or session
- Jun 10 Tue 2014 17:41
create a button with onclick
function createButton(context, func){var button = document.createElement("input");
button.type ="button";
button.value ="im a button";
button.onclick = func;
context.appendChild(button);}
window.onload =function(){
createButton(document.body,function(){
highlight(this.parentNode.childNodes[1]);// Example of different context, copied function etc// createButton(this.parentNode, this.onclick);});}
- Jun 10 Tue 2014 14:30
[PhoneGap] Create a directory and file in that directory
document.addEventListener("deviceready", onDeviceReady,false);function onDeviceReady(){ window.requestFileSystem(LocalFileSystem.PERSISTENT,0, gotFS, fail);}function gotFS(fileSystem){ fileSystem.root.getDirectory("data",{create:true}, gotDir);}function gotDir(dirEntry){ dirEntry.getFile("lockfile.txt",{create:true, exclusive:true}, gotFile);}function gotFile(fileEntry){// Do something with fileEntry here}
- Jun 10 Tue 2014 13:54
[PhoneGap] 讀取檔案
<!DOCTYPE HTML>
<html>
- Jun 09 Mon 2014 15:52
[PhoneGap] 區域資料庫
<!DOCTYPE HTML>
<html>
- Jun 09 Mon 2014 14:48
[PhoneGap] 蝴蝶飛飛
<!DOCTYPE HTML>
<html>
- Jun 09 Mon 2014 13:36
[PhoneGap] 偵測所在地