Post by lyssgarv on Apr 15, 2013 10:34:31 GMT -8
Site Link Here
I want these codes for my site:
<script type="text/javascript">
<!--
/* fix text menus by ross */
var startChar = ''; //Start character
var dividerChar = ''; //Dividing Character(s);
var endChar = ''; //End character
//no need to edit below
var menu = document.getElementsByTagName('td').item(5).firstChild;
var a = menu.innerHTML.replace(/^\n?(<.+?>)\[/, startChar+' $1');
var b = a.replace(new RegExp('\\](<\/a>)(\\n|\\s|&nb'+'sp;)*$', 'i'), '$1 '+endChar);
var c = b.replace(new RegExp('\\](<\/a>)(&nb'+'sp;|\\s)(<a.+?>)\\[', 'gi'),'$1 '+dividerChar+' $3');
menu.innerHTML = c;
//-->
</script>
<script type="text/Javascript">
// Menu buttons inside banner.
//Coded by Roger aka RKO.
// DO NOT RIP NOR REPOST.
var pxt = "100";
var pxl = "20";
document.getElementsByTagName('font')[0].style.display = 'none';
document.getElementsByTagName('br')[0].style.display = 'none';
var bannertd = document.getElementsByTagName('td')[1];
var banner = document.images[0];
var menu = document.getElementsByTagName('td')[5];
menu.parentNode.style.display = 'none';
bannertd.width = banner.width;
bannertd.height = banner.height;
bannertd.style.backgroundImage = 'url('+banner.src+')';
bannertd.innerHTML = "<div style='position:relative; left:"+pxl+"px; top:"+pxt+"px'>"+menu.firstChild.innerHTML+"</div>";
</script>
<script type="text/javascript">
<!--
document.getElementsByTagName("td").item(5).align="left";
//-->
</script>
<script type='text/javascript'>
<!--
pbCells = document.getElementsByTagName('td');
var pm = '';
if(pbCells[2].innerHTML.match(/Guest/i)){
pm = ''
}else if(pbCells[2].innerHTML.match(/0 are new/i)){
pm = '<a href="?action=pm">[Messages]</a>'
}else if(pbCells[2].innerHTML.match(/1 is new/i)){
pm = '<a href="?action=pm"><font color="#FF0000">[1 New Message]</font></a>'
}else{
pm = '<a href="?action=pm"><font color="#FF0000">[New Messages]</font></a>'
}
pbCells[5].getElementsByTagName('font')[0].innerHTML += pm;
//-->
</script>
But none of them are working. Not sure if they are canceling each other out or if I'm doing something wrong or what. Any ideas?
I want these codes for my site:
<script type="text/javascript">
<!--
/* fix text menus by ross */
var startChar = ''; //Start character
var dividerChar = ''; //Dividing Character(s);
var endChar = ''; //End character
//no need to edit below
var menu = document.getElementsByTagName('td').item(5).firstChild;
var a = menu.innerHTML.replace(/^\n?(<.+?>)\[/, startChar+' $1');
var b = a.replace(new RegExp('\\](<\/a>)(\\n|\\s|&nb'+'sp;)*$', 'i'), '$1 '+endChar);
var c = b.replace(new RegExp('\\](<\/a>)(&nb'+'sp;|\\s)(<a.+?>)\\[', 'gi'),'$1 '+dividerChar+' $3');
menu.innerHTML = c;
//-->
</script>
<script type="text/Javascript">
// Menu buttons inside banner.
//Coded by Roger aka RKO.
// DO NOT RIP NOR REPOST.
var pxt = "100";
var pxl = "20";
document.getElementsByTagName('font')[0].style.display = 'none';
document.getElementsByTagName('br')[0].style.display = 'none';
var bannertd = document.getElementsByTagName('td')[1];
var banner = document.images[0];
var menu = document.getElementsByTagName('td')[5];
menu.parentNode.style.display = 'none';
bannertd.width = banner.width;
bannertd.height = banner.height;
bannertd.style.backgroundImage = 'url('+banner.src+')';
bannertd.innerHTML = "<div style='position:relative; left:"+pxl+"px; top:"+pxt+"px'>"+menu.firstChild.innerHTML+"</div>";
</script>
<script type="text/javascript">
<!--
document.getElementsByTagName("td").item(5).align="left";
//-->
</script>
<script type='text/javascript'>
<!--
pbCells = document.getElementsByTagName('td');
var pm = '';
if(pbCells[2].innerHTML.match(/Guest/i)){
pm = ''
}else if(pbCells[2].innerHTML.match(/0 are new/i)){
pm = '<a href="?action=pm">[Messages]</a>'
}else if(pbCells[2].innerHTML.match(/1 is new/i)){
pm = '<a href="?action=pm"><font color="#FF0000">[1 New Message]</font></a>'
}else{
pm = '<a href="?action=pm"><font color="#FF0000">[New Messages]</font></a>'
}
pbCells[5].getElementsByTagName('font')[0].innerHTML += pm;
//-->
</script>
But none of them are working. Not sure if they are canceling each other out or if I'm doing something wrong or what. Any ideas?