На этом форуме мало, чего даётся.
html-верх
<HTML>
<HEAD>
<TITLE>Форум</TITLE>
<STYLE type=text/css>
BODY{margin:10px;margin-top:15px;margin-bottom:10px;}
td{font-family:Verdana;}
.font1{font-size:12px;}
.font2{font-size:11px;font-weight:400;}
.font3{font-size:11px;font-weight:700;}
.font4{font-size:15px;}
.font5{font-size:11px;font-weight:700;COLOR:#ffa450;}
.font6{font-size:11px;font-weight:700;}
a:link{color:#006699;text-decoration:none;}
a:visited{color:#5493b4;text-decoration:none;}
a:hover{color: #dd6900;text-decoration:underline;}
tr.font3 {HEIGHT: 28px;BACKGROUND-IMAGE: url(http://jpe.ru/gif/skin/fon31.gif);}
tr.font5 {HEIGHT: 30px;BACKGROUND-IMAGE: url(http://jpe.ru/gif/skin/fon41.gif);FONT-WEIGHT:700;}
tr.font6 {HEIGHT: 28px;BACKGROUND-IMAGE: url(http://jpe.ru/gif/skin/fon31.gif);}
input,select,textarea{font-size:11px;font-family:Verdana;}
textarea{width:100%;height:120;}
input.sender{background-color:#ffffff;font-weight:700;border:1 outset rgb(0,0,0);}
</STYLE>
</HEAD>
<BODY bgColor=#e5e5e5>
/*
<script type="text/javascript">
picTab = new Image();
picTab.src = "http://i294.photobucket.com/albums/mm119/lazarncane/1.gif";
</script>*/
<TABLE bgColor=#98aab1 cellSpacing=1 cellPadding=10 width=100% height=100% border=0>
<TR bgColor=#F8FCF5><TD valign=top>
html-низ
</TD></TR></TABLE>
<script type="text/javascript">
var oldButtons = document.getElementById("buttons");
function PasteTab(){javascript:pst3('','','','[tab]','');}
var newButtons = '<a href="javascript:PasteTab();"><img src="http://forum24.ru/gif/img/more.gif" width="16" height="16" border="0" alt="Отступ" title="Отступ"></a>';
var But = oldButtons.innerHTML + newButtons;
document.getElementById("buttons").innerHTML = But;
/*
window.onload=function(){
all_elements=document.getElementsByTagName('*');
for(i=0,s=all_elements.length;i<s;i++)
if(all_elements[i].tagName!="SCRIPT")
for(j=0,s_=all_elements[i].childNodes.length;j<s_;j++)
if(all_elements[i].childNodes[j].nodeType==3)
all_elements[i].childNodes[j].textContent=all_elements[i].childNodes[j].textContent.replace(/\[tab\]/g, picTab);
}
*/
function FindReplace (word, img) {
var elements = document.body.getElementsByTagName('*');
var element, html, i = 0;
var regE = new RegExp (word,'ig');
var leng = elements.length;
(function closing() {
element = elements[i]
html = element.innerHTML;
if( html.search(regE)== -1){
end();
return;
}
console.log(html.replace(regE,img))
element.innerHTML = html.replace(regE,img);
function end () {
if (i > leng-1) return;
console.log(i > leng-1)
i++;
setTimeout(closing,0);
}
end();
}());
}
FindReplace('tab','<img src="http://i294.photobucket.com/albums/mm119/lazarncane/1.gif" >')
var a = 'sss';
alert(picTab.src);
</script>
</BODY></HTML>