UWInfo Blog
發表新文章
[Join] | [忘記密碼] | [Login]
搜尋

搜尋意見
文章分類-#Author#
[所有文章分類]
所有文章分類
  • ASP.NET (48)
  • ASP.NET2.0 (15)
  • ASP.NET4.0 (34)
  • JavaScript (49)
  • jQuery (26)
  • FireFox (4)
  • UW系統設定 (3)
  • SQL (40)
  • SQL 2008 (25)
  • mirror (4)
  • SVN (4)
  • IE (9)
  • IIS (22)
  • IIS6 (1)
  • 閒聊 (7)
  • W3C (6)
  • 作業系統 (9)
  • C# (24)
  • CSS (12)
  • FileServer (1)
  • HTML 5 (11)
  • CKEditor (3)
  • UW.dll (13)
  • Visual Studio (16)
  • Browser (8)
  • SEO (1)
  • Google Apps (3)
  • 網站輔助系統 (4)
  • DNS (5)
  • SMTP (4)
  • 網管 (11)
  • 社群API (3)
  • SSL (4)
  • App_Inventor (1)
  • URLRewrite (3)
  • 開發工具 (6)
  • JSON (1)
  • Excel2007 (1)
  • 試題 (3)
  • LINQ (1)
  • bootstrap (0)
  • Vue (3)
  • IIS7 (3)
  • foodpanda (2)
  • 編碼 (2)
  • 資安 (4)
  • Sourcetree (1)
  • MAUI (1)
  • CMD (1)
  • my sql (1)
  • API串接 (1)
  • EF MODEL (1)
最新回應
  • Newtonsoft.Json.JsonConvert.DeserializeObject 失敗的情況
    test...more
  • dotnet ef dbcontext scaffold
    ...more
  • [ASP.NET] 利用 aspnet_regiis 加密 web.config
    ...more
  • IIS ARR (reverse proxy) 服務安裝
    ...more
  • [錯誤訊息] 請加入 ScriptResourceMapping 命名的 jquery (區分大小寫)
    ...more
  • 用 Javascript 跨網頁讀取 cookie (Cookie cross page, path of cookie)
    ...more
  • 線上客服 - MSN
    本人信箱被盜用以致資料外洩,是否可以請貴平台予以協助刪除該信箱之使用謝謝囉...more
  • 插入文字到游標或選取處
    aaaaa...more
  • IIS 配合 AD (Active Directory) 認証, 使用 .Net 6.0
    太感謝你了~~~你救了我被windows 認證卡了好幾天QQ...more
  • PostgreSQL 的 monitor trigger
    FOR EACH ROW 可能要改為 FOR EACH STATEMENT ...more
標籤
  • 黑貓 EGS
  • sql 權限
  • 8125
  • 17
  • db
  • Cookie
  • CK
  • web
  • drop
  • 812
  • HRESULT
  • 66 ORDER B
  • 60,
  • 744
  • UW.JSON.Wr
  • sp_
  • a
  • css
  • AD
  • 移
  • [U2]
  • c
  • 80
  • VS
  • IE
  • 9247
  • MSB1009
  • 26
  • config ord
  • 按鈕
  • 指令
  • admin ORDE
  • @@Yk5Fc
  • 網頁拖拉檔案上傳
  • 7628
  • abort
  • load UNION
  • html
  • ef
  • -9829 UNIO
  • 15434
  • 8
  • Chrome
  • 412
  • 424
  • FOR XML
  • Data
  • viewstate
  • 70
  • FORT
頁數 33 / 33 上一頁
搜尋 EN 結果:
用 JavaScript 複製網頁上的圖片到剪貼簿
資料來源:http://sanchen.blogspot.com/2008/07/javascript.html

在 IE 中很簡單就能辦到, 至於其他的瀏覽器......目前還沒這個需求, 先擱著~~~~~

var img = document.getElementsByTagName("IMG")[0];
var rng = document.body.createControlRange();
rng.add(img);
rng.execCommand('Copy');
真是簡單到不行! 可以看出 Microsoft 當初那群規劃設計 IE 的人實在是太厲害了!!
More...
Reiko, 2012/3/30 下午 05:33:01
插入文字到游標或選取處

<textarea id="myTextArea" style="WIDTH: 376px; HEIGHT: 160px" rows="10" cols="44"></textarea>
<input type="button" value="插入測試" onclick="InsertContent('myTextArea','我是要插入的文字');">

function InsertContent(AreaID,Content){
   var myArea = document.getElementById(AreaID);
   //IE
   if (document.selection){
      myArea.focus();
      var mySelection =document.selection.createRange();
      mySelection.text = Content;
   }else{
   //FireFox
     var myPrefix = myArea.value.substring(0, myArea.selectionStart);
     var mySuffix = myArea.value.substring(myArea.selectionEnd);
     myArea.value = myPrefix + Content + mySuffix;
   }
}

More...
Reiko, 2012/3/29 下午 07:30:01
|< …24252627282930313233 >|
頁數 33 / 33 上一頁
~ Uwinfo ~