Fokus

Fokus uses JavaScript to emphasize anything you select by covering the rest of the page with semi-transparent black.

Try it out by selecting this paragraph or the sample content below. You'll see the entire page fade out while this text is highlighted.

If you want to use Fokus on your site you just need to include the fokus.min.js script (3kb, no dependencies).

Fokus is also available as a Chrome extension.

下载代码说明
X关闭

html5实现的双击选中文字高亮显示效果源码

这是一款基于html5实现的双击选中文字高亮显示效果源码,可实现鼠标双击段落文字高亮显示遮罩层效果。显示遮罩层后鼠标单击即可消除遮罩层恢复原状。遮罩层的显示与消除过度效果平滑自然。是一款非常优秀的源码。建议使用火狐或谷歌浏览器运行本实例。