Post by Ambo100 on Jul 9, 2008 7:24:27 GMT -8
Name: Runescape Hiscore UBBC Code
Cross Browser: Yes
Previews: Test Board
Placement: Global Footers / Board Footers.
Description:
Click the icon, Enter your Runescape name of choice in the tags.
[Rs]Ambo100[/Rs] Comes up as Ambo100
Do NOT PM for support or requests, that's what the coding boards are for. Edit where indicated. Enjoy.
Thanks to ⓦ৹₪deⓡ, For the support.
Confirmed Its IS Crossbrowser.
Cross Browser: Yes
Previews: Test Board
Placement: Global Footers / Board Footers.
Description:
Click the icon, Enter your Runescape name of choice in the tags.
[Rs]Ambo100[/Rs] Comes up as Ambo100
Do NOT PM for support or requests, that's what the coding boards are for. Edit where indicated. Enjoy.
<script>
//Runescape Hiscore UBBC [CB]
//Copyright Ambo100
//Global Footer / Board Footer
//URL For Rs Button
var newButton = 'http://img77.imageshack.us/img77/1826/iconfw4.png';
if(document.postForm){
var buttonImage = document.createElement('img');
buttonImage.src = newButton;
buttonImage.border = "0";
var newClicky = document.createElement('a');
var Rsubbc = 'Rs';
newClicky.href = 'javascript:add("['+Rsubbc+']","[/'+Rsubbc+']")';
newClicky.appendChild(buttonImage);
document.postForm.color.parentNode.appendChild(newClicky);
}
if(location.href.match(/action\=(display|pmview|recent|userrecentposts|gotopost|search|calendarview)/) || (!location.href.match(/action\=/) && document.postForm))
{
td=document.getElementsByTagName("td");
for(i=0;i<td.length;i++)
{
if(td[i].width=="20%" && td[i].className.match(/windowbg/))
{
r=td[i].nextSibling.innerHTML.match(/\[Rs\](.+?)\[\/Rs\]/i);
if(r!=null)
{
q=RegExp.$1;
td[i].nextSibling.innerHTML=td[i].nextSibling.innerHTML.replace(r[0],"<a href=\"http://hiscore.runescape.com/hiscorepersonal.ws?user1="+escape(q.replace(/<\/?.+?>/ig,""))+"\" target=\"_blank\">"+q+"</a>");
i--;
}
}
}
}
</script>
Thanks to ⓦ৹₪deⓡ, For the support.
Confirmed Its IS Crossbrowser.