2012年1月30日 星期一

免空GG


MegaUpload – 關閉
FileServe – 即將關閉、停止販售高級會員
FileJungle – 刪除檔案中、美國境內鎖定
UploadStation – 美國境內鎖定
FileSonic – 待定、FBI審查中
VideoBB – 關閉、即將消失
Uploaded – 在美國遭禁止、FBI追緝中
FilePost – 刪除所有執行檔、PDF、文字以外的資料中
Videoz – 關閉、在美國與相關國家中被鎖定
4shared – 刪除所有版權物、等待FBI審查中
MediaFire – 被傳喚在90天內作證 ((剛剛指出 MF已大動作開始刪除版權物
Org torrent – 30天內可能消失
Network Share mIRC – 等待決定是否關閉
Koshiki – 持續在日本境內運作、不加入SOPA/PIPA
Shienko Box – 持續在韓國中國內運作、不加入SO
 列表

2012年1月16日 星期一

JavaScript - Document對象內容集合


轉自http://www.ccvita.com/80.html



對象屬性
document.title //設置文檔標題等價於HTML的title標籤
document.bgColor //設置頁面背景色
document.fgColor //設置前景色(文本顏色)
document.linkColor //未點擊過的鏈接顏色
document.alinkColor //激活鏈接(焦點在此鏈接上)的顏色
document.vlinkColor //已點擊過的鏈接顏色
document.URL //設置URL屬性從而在同一窗口打開另一網頁
document.fileCreatedDate //文件建立日期,只讀屬性
document.fileModifiedDate //文件修改日期,只讀屬性
document.fileSize //文件大小,只讀屬性
document.cookie //設置和讀出cookie
document.charset //設置字符集 簡體中文:gb2312
———————————————————————
常用對象方法
document.write() //動態向頁面寫入內容
document.createElement(Tag) //創建一個html標籤對象
document.getElementById(ID) //獲得指定ID值的對象
document.getElementsByName(Name) //獲得指定Name值的對象
document.body.appendChild(oTag)
———————————————————————

body-主體子對象
document.body //指定文檔主體的開始和結束等價於body>/body>
document.body.bgColor //設置或獲取對象後面的背景顏色
document.body.link //未點擊過的鏈接顏色
document.body.alink //激活鏈接(焦點在此鏈接上)的顏色
document.body.vlink //已點擊過的鏈接顏色
document.body.text //文本色
document.body.innerText //設置body>…/body>之間的文本
document.body.innerHTML //設置body>…/body>之間的HTML代碼
document.body.topMargin //頁面上邊距
document.body.leftMargin //頁面左邊距
document.body.rightMargin //頁面右邊距
document.body.bottomMargin //頁面下邊距
document.body.background //背景圖片

document.body.appendChild(oTag) //動態生成一個HTML對象

常用對象事件
document.body.onclick=」func()」 //鼠標指針單擊對象是觸發
document.body.onmouseover=」func()」 //鼠標指針移到對象時觸發
document.body.onmouseout=」func()」 //鼠標指針移出對象時觸發
———————————————————————
location-位置子對象

document.location.hash // #號後的部分
document.location.host // 域名+端口號
document.location.hostname // 域名
document.location.href // 完整URL
document.location.pathname // 目錄部分
document.location.port // 端口號
document.location.protocol // 網絡協議(http:)
document.location.search // ?號後的部分

documeny.location.reload() //刷新網頁
document.location.reload(URL) //打開新的網頁
document.location.assign(URL) //打開新的網頁
document.location.replace(URL) //打開新的網頁
———————————————————————
selection-選區子對象
document.selection
———————————————————————

images集合(頁面中的圖像)

a)通過集合引用
document.images //對應頁面上的img標籤
document.images.length //對應頁面上img標籤的個數
document.images[0] //第1個img標籤
document.images[i] //第i-1個img標籤

b)通過nane屬性直接引用
img name=」oImage」
document.images.oImage //document.images.name屬性

c)引用圖片的src屬性
document.images.oImage.src //document.images.name屬性.src

d)創建一個圖像
var oImage
oImage = new Image()
document.images.oImage.src=」1.jpg」
同時在頁面上建立一個img /標籤與之對應就可以顯示

———————————————————————-

forms集合(頁面中的表單)

a)通過集合引用
document.forms //對應頁面上的form標籤
document.forms.length //對應頁面上/formform標籤的個數
document.forms[0] //第1個/formform標籤
document.forms[i] //第i-1個/formform標籤
document.forms[i].length //第i-1個/formform中的控件數
document.forms[i].elements[j] //第i-1個/formform中第j-1個控件

b)通過標籤name屬性直接引用
/formform name=」Myform」>input name=」myctrl」/>/form
document.Myform.myctrl //document.表單名.控件名

c)訪問表單的屬性
document.forms[i].name //對應form name>屬性
document.forms[i].action //對應/formform action>屬性
document.forms[i].encoding //對應/formform enctype>屬性
document.forms[i].target //對應/formform target>屬性

document.forms[i].appendChild(oTag) //動態插入一個控件
document.all.oDiv //引用圖層oDiv
document.all.oDiv.style.display=」" //圖層設置為可視
document.all.oDiv.style.display=」none」 //圖層設置為隱藏
document.getElementId(」oDiv」) //通過getElementId引用對象
document.getElementId(」oDiv」).style=」"
document.getElementId(」oDiv」).display=」none」
/*document.all表示document中所有對象的集合
只有ie支持此屬性,因此也用來判斷瀏覽器的種類*/

圖層對象的4個屬性
document.getElementById(」ID」).innerText //動態輸出文本
document.getElementById(」ID」).innerHTML //動態輸出HTML
document.getElementById(」ID」).outerText //同innerText
document.getElementById(」ID」).outerHTML //同innerHTML

2012年1月11日 星期三

[C#]讓Webbrowser中的js直接呼叫Winform的function


引用: http://www.dotblogs.com.tw/jimmyyu/archive/2009/09/24/10758.aspx

在js 裡面用 window.external 來呼叫winform的function





其他參考
http://www.iteye.com/topic/243494



========================================================

  简介:window.external.AddFavorite这个把网站添加到浏览者收藏夹的脚本大家应该常常看过,但你还知道window.external的另外一些用法呢?由于是一些关于系统文件操作的命令,因为安全设置有些脚本会出错误.

1.external.AddDesktopComponent 把网站作为用户的Active桌面

 语法:external.AddDesktopComponent(地址,类型[image/website],左距离,顶距离,宽度,长度)
  1. function j_adc(){ //例子  
  2. window.external.AddDesktopComponent("http://...","website",0,0,800,600);  
  3. }  

2.external.AddFavorite 把网站加入到用户的收藏夹

语法:external.AddFavorite(网址,标题);
  1. function j_af(){  
  2. window.external.AddFavorite(location.href, document.title);  
  3. }  

3.external.NavigateAndFind 搜索指定网站中的某个字段

语法:external.NavigateAndFind(文件地址,关键字,_Target) 
  1. function j_an(){    
  2. window.external.NavigateAndFind("http://...",gosearch.value,"");    
  3. }    

4.external.ShowBrowserUI 调用语言选择窗口与收藏夹管理窗口

语法:external.ShowBrowserUI(类型[LanguageDialog/OrganizeFavorites], null)
  1. <input type="button" name="Button" value="语言设置" onclick="window.external.ShowBrowserUI('LanguageDialog', null)">  
  2. <input type="button" name="Submit2" value="整理收藏夹" onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)">  

5.external.ImportExportFavorites 导入与导出用户收藏夹

语法:external.ImportExportFavorites(导入/true 导出/false, 文件路径)
  1. <input type="button" name="Button" value="导入收藏夹" onClick=window.external.ImportExportFavorites(true,"http://...");>  
  2. <input type="button" name="Button3" value="导出收藏夹" onClick=window.external.ImportExportFavorites(false,"http://...");>  

6.external.addChanne 加入到频道

 

语法:external.addChannel(网页路径)  

7.下面是external对象所有方法列表

MethodDescription
AddChannelObsolete. Presents a dialog box that enables the user to add the specified channel, or to change the channel URL, if it is already installed.
AddDesktopComponentAdds a Web site or image to the Microsoft Active Desktop.
AddFavoritePrompts the user with a dialog box to add the specified URL to theFavorites list.
AddSearchProviderAdds a search provider to the registry.
AddService New for Internet Explorer 8User initiated action to add a service.
AddToFavoritesBar New for Internet Explorer 8Adds a URL to the Favorites Bar.
AutoCompleteSaveFormSaves the specified form in the AutoComplete data store.
AutoScanNo longer available as of Internet Explorer 7. Attempts to connect to a Web server by passing the specified query through completion templates.
BrandImageUriNot supported. Retrieves the Uniform Resource Identifier (URI) of an alternate product image.
bubbleEventPropagates an event up its containment hierarchy.
ContentDiscoveryReset New for Internet Explorer 8Resets the list of feeds, search providers, and Web Slices associated with the page.
CustomizeClearTypeNot supported. Sets a registry value to turn ClearType on or off.
CustomizeSettingsNot supported. Saves the user settings from a "first run" page.
DefaultSearchProviderNot supported. Retrieves the name of the user's default search provider.
DiagnoseConnectionNot supported. Attempts to diagnose problems with the network connection.
ImportExportFavoritesDeprecated. Handles the import and export of Internet Explorer favorites.
InPrivateFilteringEnabled New for Internet Explorer 8Detects whether the user has enabled InPrivate Filtering.
IsSearchMigratedNot supported. Determines whether autosearch settings were migrated from a previous version of Internet Explorer.
IsSearchProviderInstalledDetermines if a search provider has been installed for the current user and whether it is set as default.
IsServiceInstalled New for Internet Explorer 8Check if a service is already installed.
IsSubscribedObsolete. Retrieves a value indicating whether the client subscribes to the given channel.
NavigateAndFindNavigates to the specified URL and selects the specified text.
PhishingEnabledNot supported. Determines whether Microsoft Phishing Filter is enabled.
raiseEventTriggers an event, as specified.
RunOnceHasShownNot supported. Determines whether the "first run" page has been shown.
RunOnceRequiredSettingsCompleteNot supported. Sets a registry value to indicate whether the "first run" page completed successfully.
RunOnceShownNot supported. Sets a registry value to indicate that the "first run" page has been shown.
SearchGuideUrlNot supported. Retrieves the URL of a page that can be used to install additional search providers.
setContextMenuConstructs a context menu, as specified.
ShowBrowserUIOpens the specified browser dialog box.
SkipRunOnceNot supported. Enables the user to select "first run" settings at a later time.
SkipTabsWelcomeNot supported. Disables the welcome screen that appears when opening a new tab in Internet Explorer 7.
SqmEnabledNot supported. Determines whether Software Quality Monitoring (SQM) is enabled.
 参考:http://msdn.microsoft.com/en-us/library/ms535246%28VS.85%29.aspx

2012年1月10日 星期二

最佳化 Visual Studio 2008 執行速度

轉自 http://dayder.blogspot.com/2010/05/visual-studio-2008.html 

(感謝Allen分享)
●關閉起始頁

工具 -> 選項 環境 -> 啟動,改變 啟動時 的屬性為 顯示空白環境

●關閉歡迎畫面
在 Microsoft Visual Studio 2008 的捷徑上按滑鼠右鍵,選 內容
在 目標 的最後,加上參數 /nosplash

●關閉動畫
工具 -> 選項 -> 環境,把 動畫環境工具 取消

●關閉追蹤修訂
工具 -> 選項 -> 文字編輯器 追蹤修訂 取消

●關閉 ToolboxPopulate
工具 -> 選項 -> Windows Form 設計 -> 工具箱,把 Auto ToolboxPopulate 設定為 False
將專案建置的元件自動加入工具箱的功能關閉

剛剛按照網頁上的說明,將設定一一改變,果真啟動 Visual Studio 2008 快了許多!

2011年9月26日 星期一

MySQL 取最後一筆資料


select * from `boss_record` WHERE `index` = 1 order by `kill_times` limit  1


先用 order by 排序
黃字 1 就是取最後一筆

找程式設計師 千萬別用104 or yes123

來源:http://techblog.insureme.com.tw/2011/09/1041111yes123.html
 

1. 程式設計師論壇,這是要打知名度用的,讓程式社群知道你的公司:
http://www.javaworld.com.tw/jute/
http://jobs.ruby.tw/
http://jobs.inside.com.tw/
2. 去以下社群分享,你會收集到一堆對你科技有興趣程式設計師的聯絡方式:
http://wiki.cloudtw.org/
http://www.taipei-gtug.org/
http://wiki.python.org.tw/
http://ruby.tw/
OSDC
Coscup
HIT(如果你想找黑人)

HTML5 亂七八糟筆記


HTML5 筆記

來源: http://www.w3schools.com/html5/html5_new_elements.asp

New Markup Elements


TagDescription
<article>Specifies independent, self-contained content, could be a news-article, blog post, forum post, or other articles which can be distributed independently from the rest of the site.
文章 微博 什麼 獨立分開?
<aside>For content aside from the content it is placed in. The aside content should be related to the surrounding content
預留 空間 可以放置一些東西?
<command>A button, or a radiobutton, or a checkbox
按鈕之類的     目前只有IE支援   chrome還沒支援
<details>For describing details about a document, or parts of a document
放置文件的 詳細資料  有點像 樹狀結構
<summary>A caption, or summary, inside the details element
<details>的標題
<figure>For grouping a section of stand-alone content, could be a video
放圖片 和圖片資訊的 空間
<figcaption>The caption of the figure section
<figure>的標題
<footer>For a footer of a document or section, could include the name of the author, the date of the document, contact information, or copyright information
放置 文章資訊      ex: 作者 日期資訊 聯絡資料 版權 等.....
<header>For an introduction of a document or section, could include navigation
標頭?
<hgroup>For a section of headings, using <h1> to <h6>, where the largest is the main heading of the section, and the others are sub-headings
標頭?
<mark>For text that should be highlighted
文章的重點部份  (像銀光筆一樣 標記重點)
<meter>For a measurement, used only if the maximum and minimum values are known
進度條!!!     目前只有chrome和 opera支援
<nav>For a section of navigation
放一些 連結用的?
<progress>The state of a work in progress
進度條  (((firefox chrome opera支援
<ruby>For ruby annotation (Chinese notes or characters)
顯示在文字上方  類似註解 或是放入國字的注音符號
<rt>For explanation of the ruby annotation
和<ruby>一樣吧
<rp>What to show browsers that do not support the ruby element
這 還沒搞懂.......
<section>For a section in a document. Such as chapters, headers, footers, or any other sections of the document
又是類似標頭的.....
<time>For defining a time or a date, or both
定義時間 或日期等等.....
<wbr>Word break. For defining a line-break opportunity.
一個單字 過長   可適當調整斷行 還是什麼的?

以上看起來 都是沒什麼作用呢.......是太多人想分這塊大餅嗎......
 

MangoHost Copyright © 2009 Cookiez is Designed by Ipietoon for Free Blogger Template