Просмотр файла blogs/distribution/js_form.php

Размер файла: 2.52Kb
<script language="javascript" type="text/javascript">
var ie=document.all?1:0;
var ns=document.getElementById&&!document.all?1:0;
function InsertSmile(SmileId){
if(ie){
document.all.message.focus();
document.all.message.value+=" "+SmileId+" ";
}else if(ns){
document.forms['new_blog'].elements['new_text_blog'].focus();
document.forms['new_blog'].elements['new_text_blog'].value+=""+SmileId+"";
}else alert("Ваш браузер не поддерживается!");}
</script>

<textarea name="new_text_blog" cols="50" rows="15"><? echo $_POST['new_text_blog']; ?></textarea>
<div class="b">
<span style="cursor: pointer;" onclick="InsertSmile(':)')"> <img src="../images/smiles/).gif" alt="ульыбька"></span> 
<span style="cursor: pointer;" onclick="InsertSmile(':(')"> <img src="../images/smiles/(.gif" alt="грусть"></span> 
<span style="cursor: pointer;" onclick="InsertSmile(':D')"> <img src="../images/smiles/D.gif" alt="смех"></span> 
<span style="cursor: pointer;" onclick="InsertSmile(':aaa')"> <img src="../images/smiles/aaa.gif" alt="крик"></span> 
<span style="cursor: pointer;" onclick="InsertSmile(':bwink')"> <img src="../images/smiles/bwink.gif" alt="подмигивание"></span> 
<span style="cursor: pointer;" onclick="InsertSmile(':cry')"> <img src="../images/smiles/cry.gif" alt="плач"></span>
<span style="cursor: pointer;" onclick="InsertSmile(':duma')"> <img src="../images/smiles/duma.gif" alt="дума"></span>
<span style="cursor: pointer;" onclick="InsertSmile(':e')"> <img src="../images/smiles/e.gif" alt="blink"></span>
<span style="cursor: pointer;" onclick="InsertSmile(':flirt')"> <img src="../images/smiles/flirt.gif" alt="flirt"></span>
<span style="cursor: pointer;" onclick="InsertSmile(':krut')"> <img src="../images/smiles/krut.gif" alt="krut"></span><hr>
<span style="cursor: pointer;" onclick="InsertSmile('[b][/b]')"> <img src="images/bb_B.gif" alt="B"></span>
<span style="cursor: pointer;" onclick="InsertSmile('[i][/i]')"> <img src="images/bb_I.gif" alt="I"></span>
<span style="cursor: pointer;" onclick="InsertSmile('[u][/u]')"> <img src="images/bb_U.gif" alt="U"></span>
<span style="cursor: pointer;" onclick="InsertSmile('[big][/big]')"> <img src="images/bb_big.gif" alt="big"></span>
<span style="cursor: pointer;" onclick="InsertSmile('\n[code]\n&lt;?\n\r\n?&gt;\n[/code]\n')"> <img src="images/bb_code.gif" alt="code"></span>
<span style="cursor: pointer;" onclick="InsertSmile('[url=http://]  [/url]')"> <img src="images/bb_url.gif" alt="url"></span></div>