Post by James on Apr 12, 2005 2:23:20 GMT
Board Footers.
<script type="text/javascript">
<!--
/*
Last Post Button v1
Created by A._Leon
Copyright © 2003 - 2005 SolidSnakeDesigns.com
All Rights Reserved
This code may not be redistributed without express permission from the creator.
This header must stay intact at all times.
*/
var iLastPost = 'URL to your image';
var iCell = document.getElementsByTagName("td");
if (location.href.match(/board=(\w+)/i)) {
for (c = 0; c < iCell.length; c ++) {
if (iCell.item(c).className == "windowbg2" && iCell.item(c).vAlign == "middle" && iCell.item(c).width == "20%") {
var iLinkHref = iCell.item(c - 4).getElementsByTagName("a")[0].href;
iLinkHref += '&start=' + iCell.item(c - 2).firstChild.innerHTML;
var iTab = document.createElement("table");
iTab.insertRow(0);
iTab.rows.item(0).insertCell(0);
iTab.rows.item(0).insertCell(1);
iTab.rows.item(0).cells.item(0).innerHTML = iCell.item(c).innerHTML;
var iImage = document.createElement("img");
iImage.border = '0';
iImage.src = iLastPost;
var iLink = document.createElement("a");
iLink.href = iLinkHref;
iLink.appendChild(iImage);
iTab.rows.item(0).cells.item(1).appendChild(iLink);
iCell.item(c).innerHTML = '';
iCell.item(c).appendChild(iTab);
}
}
}
//-->
</script>
Change the dark blue to the url of your image.
<script type="text/javascript">
<!--
/*
Last Post Button v1
Created by A._Leon
Copyright © 2003 - 2005 SolidSnakeDesigns.com
All Rights Reserved
This code may not be redistributed without express permission from the creator.
This header must stay intact at all times.
*/
var iLastPost = 'URL to your image';
var iCell = document.getElementsByTagName("td");
if (location.href.match(/board=(\w+)/i)) {
for (c = 0; c < iCell.length; c ++) {
if (iCell.item(c).className == "windowbg2" && iCell.item(c).vAlign == "middle" && iCell.item(c).width == "20%") {
var iLinkHref = iCell.item(c - 4).getElementsByTagName("a")[0].href;
iLinkHref += '&start=' + iCell.item(c - 2).firstChild.innerHTML;
var iTab = document.createElement("table");
iTab.insertRow(0);
iTab.rows.item(0).insertCell(0);
iTab.rows.item(0).insertCell(1);
iTab.rows.item(0).cells.item(0).innerHTML = iCell.item(c).innerHTML;
var iImage = document.createElement("img");
iImage.border = '0';
iImage.src = iLastPost;
var iLink = document.createElement("a");
iLink.href = iLinkHref;
iLink.appendChild(iImage);
iTab.rows.item(0).cells.item(1).appendChild(iLink);
iCell.item(c).innerHTML = '';
iCell.item(c).appendChild(iTab);
}
}
}
//-->
</script>
Change the dark blue to the url of your image.
[Cross Browser]