Using JavaScript to create a very practical and simple text editing box, you can display the row number and be compatible with mainstream browsers such as ie and firefox, as shown below:
The following is the source code for this effect:
<Html> Articles you may be interested in
- Move the mouse over the text to display the floating layer prompt special effects (compatible with all browsers such as IE and Firefox)
- JS checks whether the scroll bar stops scrolling, and is compatible with IE and Firefox browsers.
- Jquery drop-down menu (ultra-simple and practical, compatible with mainstream browsers such as IE and firefox)
- How to set the DIV layer to display on a flash object, compatible with browsers such as ie and firefox
- How to solve the problem that the DIV layer is covered by Flash (compatible with IE and Firefox browsers) and how to display the DIV layer on FLASH
- The lower-right corner of the page displays the advertisement js, floating effect (compatible with multiple browsers)
- Javascript determines whether the mouse is left or right-click-compatible with ie, firefox, chrome, and other major browsers
- Webpage background music setting method, compatible with all browsers