kepli
New Member
Official Twilight Hater
Posts: 160
inherit
147984
0
Aug 8, 2011 12:40:53 GMT -8
kepli
Official Twilight Hater
160
October 2009
kepli
|
Post by kepli on Feb 28, 2010 10:31:57 GMT -8
i'm really sorry but with that code the image is repeated over and over again if it's not big enough. can you fix that? sorry.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Feb 28, 2010 23:55:22 GMT -8
ok so before I make more changes, what do you want the image to do? centered? top left? repeat only horiz?
|
|
kepli
New Member
Official Twilight Hater
Posts: 160
inherit
147984
0
Aug 8, 2011 12:40:53 GMT -8
kepli
Official Twilight Hater
160
October 2009
kepli
|
Post by kepli on Mar 1, 2010 16:49:51 GMT -8
Centered. Thanks so mucjh. I feel unexplainably bad about this. I'm really really really really really really really really really really really really really really really really really really really really really really really really really sorry.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 1, 2010 17:13:07 GMT -8
<script type="text/javascript"> <!-- // Quick board name as image // by Wormopolis var boardArray=new Array();
if (true) {
cellHeight=30; //height of row
boardArray['general']="http://www.sonofthesouth.net/union-generals/custer/pictures/general-custer-300.jpg"; boardArray['betaskinview']="http://www.web-books.com/eLibrary/Medicine/Physiology/Skin/skin02.jpg"; // the name in the brackets is the board ID
for (tds=document.getElementsByTagName('td'), t=0; t<tds.length; t++) { if (tds[t].width=='66%' && tds[t].className.match(/windowbg/) && tds[t].vAlign=='top') { blink=tds[t].getElementsByTagName('a')[0]; bname=(blink.href.match(/board=(.*?)(&|$)/) ? RegExp.$1 : null); if (boardArray[bname]) { blink.replaceChild(document.createElement('font'),blink.firstChild); tds[t].colSpan=5; tds[t].style.height=cellHeight; tds[t].width='100%'; tds[t].style.backgroundImage='url('+boardArray[bname]+')'; tds[t].style.backgroundRepeat="no-repeat"; tds[t].style.backgroundPosition="center center"; tds[t].previousSibling.style.display = tds[t].nextSibling.style.display = tds[t].nextSibling.nextSibling.style.display = tds[t].nextSibling.nextSibling.nextSibling.style.display = "none"; } } } } // --> </script>
|
|
kepli
New Member
Official Twilight Hater
Posts: 160
inherit
147984
0
Aug 8, 2011 12:40:53 GMT -8
kepli
Official Twilight Hater
160
October 2009
kepli
|
Post by kepli on Mar 2, 2010 15:53:33 GMT -8
Sorry but: this makes the image still on the board background. Is there anyway to make the image completely by itself? If my background was just black all I would want to see would be black and the picture. The picture shouldn't be on a board.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 3, 2010 21:12:30 GMT -8
ok... Im starting to get a clearer picture now. you want an image, removed from the table where the boards are, but still in the same spot where the board WOULD have been. then have the table resume after the picture: IMAGE like that?
|
|
kepli
New Member
Official Twilight Hater
Posts: 160
inherit
147984
0
Aug 8, 2011 12:40:53 GMT -8
kepli
Official Twilight Hater
160
October 2009
kepli
|
Post by kepli on Mar 4, 2010 15:51:52 GMT -8
yes! exactly. I'm so sorry for all your hard work gone to waste.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 5, 2010 1:00:44 GMT -8
its fine. in the future you should try to be more specific in the request so someone doesnt haver to go through several incarnations of a code before it gets to what you need. pictures help.
Im treying this out on a clean site right now. manipulating the HTML mid table can be tricky.
|
|
kepli
New Member
Official Twilight Hater
Posts: 160
inherit
147984
0
Aug 8, 2011 12:40:53 GMT -8
kepli
Official Twilight Hater
160
October 2009
kepli
|
Post by kepli on Mar 5, 2010 15:59:20 GMT -8
oKAY thanks.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 6, 2010 18:32:26 GMT -8
ok... it took a bit to get this working in both IE and FF, but I got it: <script type="text/javascript"> <!-- // convert board to floating image // by Wormopolis - www.wormocodes.com// keep header intact boardArray=new Array(); boardArray['general']="http://www.pollsb.com/photos/o/59924-next_monster.jpg"; // add in your replacement images here. boardid in the brackets. // DO NOT EDIT BELOW for (tb=document.getElementsByTagName('table'), b=0; b<tb.length; b++) { if (tb .className=='bordercolor' && tb.cellSpacing==0 && tb.cellPadding==0 && tb.width=='100%') { keeptable=tb.parentNode.cloneNode(true); break; } }
document.write('<textarea id="helper" style="display:none">temp</textarea>');
hlpr=document.getElementById('helper'); for (tds=keeptable.getElementsByTagName('td'), d=tds.length-1; d>=0; d--) { if (tds[d].width=='66%' && tds[d].className.match(/windowbg/) && tds[d].vAlign=='top') { if (tds[d].getElementsByTagName('a')[0].href.match(/board=(.*?)$/)) { bname=RegExp.$1; if(boardArray[bname]) { keepLink=tds[d].getElementsByTagName('a')[0].href; keepcount=tds[d].parentNode.getElementsByTagName('td')-1; temp='</tbody></table></td></tr></table><br>'; temp+='<center><a href="'+keepLink+'"><img src="'+boardArray[bname]+'" border=0></a></center>'; temp+='<table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" border="0" width="100%">'; hold=tds[d].parentNode.parentNode.parentNode; hold=hold.parentNode.parentNode.parentNode; hold=hold.parentNode.parentNode; hlpr.value=hold.innerHTML; hlpr.value=hlpr.value.replace(/(\n|\r|\v)/gm,''); hlpr.value=hlpr.value.replace('<tr>'+tds[d].parentNode.innerHTML+'</tr>',temp); hlpr.value=hlpr.value.replace('<TR>'+tds[d].parentNode.innerHTML.replace(/(\n|\r|\v)/gm,'')+'</TR>',temp); hold.innerHTML=hlpr.value; } } } } tb.parentNode.parentNode.replaceChild(keeptable,tb.parentNode); hlpr.parentNode.removeChild(hlpr);
// --> </script>
main footer.
|
|
kepli
New Member
Official Twilight Hater
Posts: 160
inherit
147984
0
Aug 8, 2011 12:40:53 GMT -8
kepli
Official Twilight Hater
160
October 2009
kepli
|
Post by kepli on Mar 7, 2010 9:56:54 GMT -8
thanks! you are the best!!!!!!!!!!!!!!!! it works too!
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 7, 2010 13:19:19 GMT -8
just keep adding lines at the top like:
boardArray['camera']="http://www.pollsb.com/photos/o/59924_ooga_booga.jpg";
for each board you want to replace
|
|