Home  >  Article  >  Web Front-end  >  JS multiple rectangular block selection effect code (simulating CS structure)_javascript skills

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

WBOY
WBOYOriginal
2016-05-16 18:58:131053browse

[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>
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