|
Post by Wormopolis on Aug 24, 2010 21:13:09 GMT -8
browser tested: IE and FF placement: global footer
simply remodels the way quotes are displayed on your forum. starting and ending images are customizable.
code:
<script type="text/javascript"> <!-- // Quote remodel // by Wormopolis - www.wormocodes.com // Do not repost - keep header intact
foreQuoteImage="http://i197.photobucket.com/albums/aa250/WORMOPOLIS/quotation-marks2-1.png"; aftQuoteImage="http://i197.photobucket.com/albums/aa250/WORMOPOLIS/quotation-marks3-1.png";
for (tds=document.getElementsByTagName('td'), qw=0; qw<tds.length; qw++) { if (tds[qw].width=='80%' && tds[qw].className.match(/windowbg/) && tds[qw].vAlign=='top') { for (qtbl=tds[qw].getElementsByTagName('table'), qt=0; qt<qtbl.length; qt++) { if (qtbl[qt].className=='quote') { tblTop=qtbl[qt].parentNode.parentNode.parentNode.parentNode; sizemod=(tblTop.parentNode.className=='nwquote' ? .5 : 1); authStuff=tblTop.previousSibling; authStuff.style.display="none"; cont=qtbl[qt].rows[0].cells[0].firstChild; cont.className='nwquote'; cont.style.size='1'; auth=authStuff.innerHTML.split(', '); auth=auth[auth.length-1].split(' wrote:')[0]; qdate=authStuff.innerHTML.split(', ')[0]; nwAuth="~"+auth+", "+qdate; nwtbl=document.createElement('table'); nwtbl.align='center'; nwtbl.insertRow(0); nwtbl.rows[0].insertCell(0); nwtbl.rows[0].insertCell(0); nwtbl.rows[0].insertCell(0); nwtbl.rows[0].cells[0].vAlign='top'; nwtbl.rows[0].cells[0].align='right'; tq=document.createElement('img'); tq.src=foreQuoteImage; tq.height=tq.width=sizemod*20; nwtbl.rows[0].cells[0].appendChild(tq); nwtbl.rows[0].cells[2].vAlign='bottom'; nwtbl.rows[0].cells[2].align='left'; nwtbl.rows[0].cells[1].vAlign='middle'; nwtbl.rows[0].cells[1].align='center'; bq=document.createElement('img'); bq.src=aftQuoteImage; bq.height=bq.width=sizemod*20; nwtbl.rows[0].cells[2].appendChild(bq); nwtbl.rows[0].cells[1].appendChild(cont); nwtbl.insertRow(-1); nwtbl.rows[1].insertCell(0); nwtbl.rows[1].cells[0].colSpan=3; nwtbl.rows[1].cells[0].align="right"; nwtbl.rows[1].cells[0].innerHTML=nwAuth; tblTop.parentNode.replaceChild(nwtbl, tblTop);
} } } } // --> </script>
preview: using it on the site. see next post.
|
|
|
Post by Wormopolis on Aug 24, 2010 21:13:34 GMT -8
preview: using it on the site. see next post.
|
|
erokraider
Not New Member
Posts: 4
erokraider said 0 great things
|
Post by erokraider on Oct 11, 2012 17:09:40 GMT -8
This is kind of what I've been looking for, but all I want to do is make the text in the quote box bigger. As it is people have been complaining that it's is scrunched up and hard to read. How would I just do that?
|
|
|
Post by Wormopolis on Oct 11, 2012 21:13:35 GMT -8
cont.style.size='1';
increase that number should do it
|
|