1 [Invisionfree] Làm Avatar mặc định Sat Nov 24, 2012 2:19 pm
Skinning & Styles -->Board Wrappers-->Footer:
- Code:
<script>
/* No Avatar Present Script by iFusion*/
if(location.href.match(/showtopic=/i)){
var iTD = document.body.getElementsByTagName('TD');
for(i=0;i <iTD.length;i++)
if(iTD[i].vAlign=="top"
&& iTD[i].className.match(/post(1|2)/i) &&
iTD[i].getElementsByTagName('SPAN').length > 0){
var iSpan = iTD[i].getElementsByTagName('SPAN')[0]
if(iSpan.className=="postdetails")
if(iSpan.firstChild.tagName != "IMG"){
iSpan.innerHTML = "<BR /><center><b>No Avatar Present</b></center>" + iSpan.innerHTML
} else {
if(iSpan.innerHTML.match(/(<img [^>]*>)/i) )
iSpan.innerHTML = iSpan.innerHTML.replace(/(<img
[^>]*>)/i,"<div align='center'>" + RegExp.$1 +
"</div>") }
}}
</script>
- Code:
<script>
/* No Avatar Present Script by iFusion*/
if(location.href.match(/showtopic=/i)){
var iTD = document.body.getElementsByTagName('TD');
for(i=0;i <iTD.length;i++)
if(iTD[i].vAlign=="top"
&& iTD[i].className.match(/post(1|2)/i) &&
iTD[i].getElementsByTagName('SPAN').length > 0){
var iSpan = iTD[i].getElementsByTagName('SPAN')[0]
if(iSpan.className=="postdetails")
if(iSpan.firstChild.tagName != "IMG"){
iSpan.innerHTML = "<BR /><img src='http://70.85.81.229/3694/158/pip/nophoto.gif'>" + iSpan.innerHTML
} else {
if(iSpan.innerHTML.match(/(<img [^>]*>)/i) )
iSpan.innerHTML = iSpan.innerHTML.replace(/(<img
[^>]*>)/i,"<div align='center'>" + RegExp.$1 +
"</div>") }
}}
</script>