3.安裝KSDK_1.3.0_Eclipse_Update,執行Kinetis Design Studio軟體。
a. Select "Help" -> "Install New Software".
b.In the Install New Software dialog box, click the "Add" button in the upper right corner. Then, in the Add Repository dialog, select the "Archive" button.
c.路徑在C:/Fresscale/KSDK_1.3.0/tools/eclipse_update/KSDK_1.3.0_Eclipse_Update.zip.
d.Click "Open", and the "OK" button in the Add Repository dialog box.
e.The KSDK update shows up in the list of the original Install dialogs.
4.安裝其他軟體,執行Kinetis Design Studio軟體。
a. Select "Help" -> "Install New Software".
b.在Work With 選擇Freescale KDS Update Site - http://freescale.com/lgfiles/updates/Eclipse/KDS
目前最流行社交網站就是Facebook 與Google+,許多網站現在都會與這些熱門的社交網站結合,增加網站的流量與知名度。 這篇文章要介紹如何在blogger文章加上Facebook [讚]與Google Plus +1按鈕 , 按步驟去修改,就可以簡單而快速增加此功能。 STEP1: 到Blogger管理介面的[範本],點選右上角的[備份/還原],進入之後點選[下載完整範本],並儲存下載檔案,就完成網站備份的動作。
STEP2: 下載的檔案是個XML檔,使用文字編輯軟體來打開。在檔案中找尋「</head>」,然後在這個 </head> 之前的</b:temolate-skin>之後加入 Google Plus +1 按鈕要使用的的程式碼:
</b:template-skin><!-- Begin: Add by ethanwu --><!-- Google Plus +1 button --><!-- Place this tag in your head or just before your close body tag. --><scriptsrc='https://apis.google.com/js/plusone.js'type='text/javascript'>
{lang: "zh-TW"}
</script><!-- End: Add by ethanwu --></head>
程式碼中用 <!-- 與 --> 夾起來的部分(紅色)都是註解,而 Begin: Add by ethanwu 與 End: Add by ethanwu 之間程式就是要加進去的。 SETP3:
接下來就是按鈕的擺放位置,這個範例是把按鈕放在文章標題的下方,首先尋找「<divclass='post-header'>」,這個 div 就是專門將小工具放在文章標題下方的用的,但是在管理界面中沒辦法放置自定的按鈕。 一樣加入 Begin: Add by ethanwu 與 End: Add by ethanwu 之間的程式碼。
<divclass='post-header'><divclass='post-header-line-1'/><!-- Begin: Add by ethanwu --><b:ifcond='data:blog.pageType != "static_page"'><divclass='socialMediaHeader'><!-- facebook like button --><iframeallowTransparency='true'expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.canonicalUrl + "&send=false&layout=button_count&show_faces=false&width=90&action=like&font=arial&colorscheme=light&height=21"'frameborder='0'scrolling='no'style='border:none; overflow:hidden; width:90px; height:21px;'/><!-- Google Plus +1 button --><!-- Place this tag where you want the +1 button to render. --><divclass='g-plusone'data-size='medium'expr:data-href='data:post.canonicalUrl'/></div></b:if><!-- End: Add by ethanwu --></div>
這個程式碼主要包含了 Facebook 與 Google Plus +1 兩部分,上半部的 iframe 部分是 Facebook 所使用的,下半部的 div 則是 Google Plus +1 按鈕,兩個按鈕用<divclass='socialMediaHeader'>包起來,這樣可以方便微調按鈕的位置。 SETP4 : 最後一步驟,到Blogger管理介面的[範本],點選右上角的[備份/還原],把修改之後的檔案上傳回去,就完成了。