![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
文章平均质量分 60
teresachin
这个作者很懒,什么都没留下…
展开
-
Convert selected text to link (works in FF and IE)
Text to Hyperlink Create a link Select some text and click the button. The selected text will become the named hyperlinkMy HomepageMy FavoriteMy Search PageMake it a link <!--转载 2009-10-10 11:39:00 · 314 阅读 · 0 评论 -
Mouse position
At the moment I am writing an Introduction to Events. As part of my study I wanted to create a generic, simple script that detects the mouse coordinates at the time of the event. Because such a scr转载 2009-10-10 16:56:00 · 602 阅读 · 0 评论 -
How to get selected text
<!--function getSelText(){ var txt = ; if (window.getSelection){ txt = window.getSelection(); } else if (document.getSelection){ txt = document.getSelecti转载 2009-10-10 11:25:00 · 339 阅读 · 0 评论 -
Event properties
What is the type of the event?This is the only question with a true cross-browser answer: use the typeproperty to read out the type: function doSomething(e) { if (!e) var e = window.event;转载 2009-10-10 15:18:00 · 354 阅读 · 0 评论 -
How To Solve Flickering Background Images
If youre using CSS sprites as background images for links or buttons, youll notice that the image will flicker briefly in Internet Explorer 6. The reason is because IE6 doesnt properly cache the转载 2009-10-10 10:06:00 · 407 阅读 · 0 评论