![](/img/trans.png)
[英]How can I change the style of highlighted texts in the browser search result?
[英]Can I retrieve the identity of what is “highlighted” with the keyboard in the browser?
我的圖片: http : //boards.420chan.org/prog/src/1428705769365.jpg
我正在談論如何使用Tab鍵和箭頭鍵並輸入以導航網絡。 如何在我的圖片中檢索所選鏈接的身份或喜歡什么? 不僅鏈接本身,而且所有關聯的xml也是如此。
此處的目標是獲得一個單獨的客戶端程序,以檢索鏈接在屏幕上的物理位置(?),並將光標移至該位置,以替換我照片中的箭頭。 我最終希望構建一個程序,該程序可以讀取鍵盤選擇的鏈接中的某些xml標簽,這些標簽與一組客戶端變量進行交互。
有了jQuery,您可以使用
$('a').on('focus', function() { console.log(this, 'focus'); });
以檢測對鏈接的關注程度(通常由標簽觸發)。
或者
$('a').on('mouseover', function() { console.log(this, 'hovered'); });
檢測用戶何時將鼠標懸停在元素上。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.