Home >Web Front-end >JS Tutorial >Add running effects to alternative web pages_javascript skills

Add running effects to alternative web pages_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:23:09878browse

[Ctrl A Select all Note: If you need to introduce external Js, you need to refresh to execute
]
<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=="运行下面的js") jsCode_run(ee) } function jsCode_run(ee){ var data,w data=ee.parentNode.parentNode.nextSibling.innerText w=window.open("", "_blank","") w.document.write(data) w.document.close() if(/<script(.)+src=/.test(data)) w.location.reload(true) } </script>Run as seen from script8 The effect is good,
Statement:
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