Home > Web Front-end > JS Tutorial > Improvement: Forum UBB code automatic insertion method_javascript skills

Improvement: Forum UBB code automatic insertion method_javascript skills

WBOY
Release: 2016-05-16 19:22:45
Original
1155 people have browsed it

At present, when the UBB of the IECN forum is automatically inserted, the inserted content is always added to the end of the article, which is very inconvenient to use. Just improved it a bit.
The improved code refers to the JS that river posted before. I would like to express my deep gratitude to river^^

After improvement:
1. Yes Insert the corresponding UBB code at "Current cursor position
" 2. You can insert the corresponding UBB code at the beginning and end of "Currently selected content " 3. By browsing Server: IE 5.0, FireFox 1.06, Opera8.5


Related JS code:
http://cnlei.iecn.net/mycode/ubb4iecn/ubb4iecn.js

Related HTML code:
http://cnlei.iecn.net/mycode/ubb4iecn/write_ubb.html

Full page:
http://cnlei.iecn.net/mycode/ubb4iecn/write.html

Reference post:
http://www.iecn.net/bbs/view/101436.html
For the code, please directly look at the file linked to the above demo link and post it in the forum No -_-

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template