Код:
<div> <input type="Button" value="smile" onclick="return showhide(this)"> <p style="display:none"> <img src="http://xmages.net/storage/10/1/0/5/d/upload/d17fcc4e.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/5/d/upload/d17fcc4e.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/8/1/upload/8b6d083c.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/8/1/upload/8b6d083c.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/2/9/upload/b9cf04db.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/2/9/upload/b9cf04db.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/d/6/upload/f5d95dd7.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/d/6/upload/f5d95dd7.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/0/e/upload/8ccd8b2b.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/0/e/upload/8ccd8b2b.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/6/3/upload/43170fdd.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/6/3/upload/43170fdd.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/b/0/upload/db8eb20e.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/b/0/upload/db8eb20e.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/0/9/upload/54cfa823.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/0/9/upload/54cfa823.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/e/8/upload/719cbae6.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/e/8/upload/719cbae6.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/b/3/upload/8184bd1c.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/b/3/upload/8184bd1c.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/6/6/upload/a797f7f5.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/6/6/upload/a797f7f5.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/a/2/upload/f1e27aff.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/a/2/upload/f1e27aff.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/7/a/upload/e4f0b739.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/7/a/upload/e4f0b739.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/1/c/upload/a02d9fb2.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/1/c/upload/a02d9fb2.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/b/7/upload/79a47a12.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/b/7/upload/79a47a12.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/5/2/upload/44ea6a49.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/5/2/upload/44ea6a49.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/4/d/upload/bb4d5b3f.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/4/d/upload/bb4d5b3f.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/a/f/upload/fdd04af3.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/a/f/upload/fdd04af3.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/c/8/upload/04f01322.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/c/8/upload/04f01322.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/6/1/upload/fb8cff78.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/6/1/upload/fb8cff78.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/5/5/upload/8708e71b.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/5/5/upload/8708e71b.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/9/8/upload/05d93e6f.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/9/8/upload/05d93e6f.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/1/d/upload/2a966a64.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/1/d/upload/2a966a64.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/e/6/upload/b06ca4fd.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/e/6/upload/b06ca4fd.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/9/d/upload/28d34f2a.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/9/d/upload/28d34f2a.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/f/a/upload/06b81b22.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/f/a/upload/06b81b22.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/e/1/upload/5eb6b78b.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/e/1/upload/5eb6b78b.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/1/c/upload/e2969183.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/1/c/upload/e2969183.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/9/5/upload/0630f7f8.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/9/5/upload/0630f7f8.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/0/a/upload/f1265c45.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/0/a/upload/f1265c45.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/b/9/upload/d6958375.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/b/9/upload/d6958375.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/a/d/upload/06368921.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/a/d/upload/06368921.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/0/8/upload/dd07c857.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/0/8/upload/dd07c857.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/9/1/upload/def83ee6.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/9/1/upload/def83ee6.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/c/3/upload/97ad77e6.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/c/3/upload/97ad77e6.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/4/5/upload/adf5db59.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/4/5/upload/adf5db59.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/b/b/upload/448f16a8.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/b/b/upload/448f16a8.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/b/e/upload/e5df0591.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/b/e/upload/e5df0591.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/6/d/upload/56aa7cc9.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/6/d/upload/56aa7cc9.png[/img]')" /> <img src="http://xmages.net/storage/10/1/0/0/a/upload/4faef827.png" style="cursor: pointer" onclick="smile('[img]http://xmages.net/storage/10/1/0/0/a/upload/4faef827.png[/img]')" /> </div> <script> function showhide(b){ p = b.parentNode.getElementsByTagName("p")[0] if(b.value=="smile"){ b.value="Скрыть смайлы" p.style.display="block"} else{ b.value="smile" p.style.display="none"} return false} </script>