Home > Web Front-end > JS Tutorial > body text

JS multiple rectangular block selection effect code (simulating CS structure)_javascript skills

WBOY
Release: 2016-05-16 18:58:13
Original
1086 people have browsed it

[Ctrl A select all Note:
If you need to introduce external Js, you need to refresh to execute ]<script> document.write('<table border="0" align="center">'); document.write('<tr>'); number=1; number1=1; var i; up=5; list=8; for(i=0;i<(up*list);i++) { document.write('<td width="60" height="60" bgColor="#BEBEBE" id="'+i+'" onmouseMove="changeEnd(parseInt(id))" onmouseUp="changUpEnd()" onmouseDown="changeStart(parseInt(id))" onclick="changecolor(parseInt(id))")>'); if((i<((up*list)-list))&&(i+1)%list==0) { document.write('<tr>'); number++; } } document.write('<tr>'); document.write('<td>'); document.write(''); document.write(''); function resetcheck(){ for(i=0;i<(up*list);i++){ changeColorToNotSelected(i); } } </script>
Related labels:
js
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