Add running effect to alternative web pages _ javascript skills

Source: Internet
Author: User
Add running effect to alternative web pages

<P id = "bxArticle_97" style = "padding: 9; line-height: 18px; height: 90"> <TABLE style = "MARGIN-TOP: 12px; BACKGROUND: white; MARGIN-BOTTOM: 12px; WIDTH: 90% "cellSpacing = 0 borderColorDark = white cellPadding = 0 align = center borderColorLight = # bababa border = 1> <TBODY> <TR height = 22> <TD style =" PADDING-LEFT: 6px; BACKGROUND: # d4d0c8 "> ◇ modify the following code first-> <U style =" CURSOR: pointer "> run the following js </U> </TD> </TR> <TR vAlign = t Op height = 90> <TD style = "PADDING-RIGHT: 6px; PADDING-LEFT: 6px; PADDING-BOTTOM: 6px; WORD-BREAK: break-all; PADDING-TOP: 6px "name =" # jscode "> <p contenteditable = true style = width: 100%; height: 100%;> script alert (" Modify me ~~ ") Script </TD> </TR> </TBODY> </TABLE> </p> script dxy_init () function dxy_init () {window. $ = function (obj) {return typeof (obj) = "string "? Document. getElementById (obj): obj} var threadID = "97", myName = "" $("bxArticle_97 "). onclick = function (e) {var e = event | e, ee = e. srcElement if (ee. tagName = "U" & ee. innerText = "run the following js") jsCode_run (ee)} function jsCode_run (ee) {var data, w data = ee. parentNode. parentNode. nextSibling. innerText w = window. open ("", "_ blank", "") specify Doc ument. write (data) into Doc ument. close () if (/<script (.) + src = /. test (data) w. location. reload (true)} script
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]


The running result from script8 is good,
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.