Home >Web Front-end >JS Tutorial >javascript document.images example_image effects

javascript document.images example_image effects

WBOY
WBOYOriginal
2016-05-16 19:04:24957browse

<script> <br>dxy=''; <br>for (cnrose=0;cnrose<document.images.length;cnrose ) <BR>{ <BR> dxy ='<img src=' document.images[cnrose].src '>[br]' <br>} <br><br>if(dxy!='') <br> { <br> document.write(dxy); <br> void(document.close()) <br> } <br>else <br> { <br> alert('No images!') <br> } <br></script>

Bottom This is generated by removing the carriage return and adding a javascript: in front of it. Open a website with pictures, copy this
paragraph to the address (url), press enter, and see the effect. Valid for .

javascript:dxy='';for (cnrose=0;cnrose[br]'}if(dxy!=''){document.write(dxy);void
(document.close())}else{alert('No images!')}

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