Post by Peter on Oct 27, 2004 10:32:59 GMT
Code created by Snap2000[/color]
I fixed my [old] script. Just put this in your footers, and you're ready to go. This is nice and clean, and you won't see a bunch of loose stuff lying around in your threads and stuff.
I don't think you need a preview link. :P#nosmileys#nosmileys
I fixed my [old] script. Just put this in your footers, and you're ready to go. This is nice and clean, and you won't see a bunch of loose stuff lying around in your threads and stuff.
<script><!--
/* Subtitles by snap2000 */
var TD=document.getElementsByTagName("td")
document.title = document.title.replace("\\%"+document.title.split('\\%')[1]+"\\%","")
if(location.href.indexOf('&action=post')!=-1 && location.href.indexOf('&num')==-1 && location.href.indexOf('=post2')==-1) {
for(t=0;t<TD.length;t++) {
PM = document.postmodify;PM.subject.maxLength="40";
if(TD[t].innerHTML.match("Subject") && TD[t].className=="windowbg"){
TD[t].innerHTML+='<p style="margin-top:12;"><font size=2><b>SubTitle:<b></font>';
TD[t+1].innerHTML+='<p style="margin-top:7;"><input name=subtitle size=40 maxlength=30 tabIndex=2>';
}} document.forms["postmodify"].onsubmit=function(){PM.subject.value=PM.subject.value+"\\%"+PM.subtitle.value+"\\%";};
function reLoad() { PM.subject.value=PM.subject.value.split("\\%")[0];
PM.subject.value=PM.subject.value.substr(0,PM.subject.value.length-1); }
setTimeout("reLoad()",500);
} else if(location.href.indexOf('?board=')!=-1 && location.href.indexOf('&action=display')==-1) {
for(t=0;t<TD.length;t++) {
if(TD[t].innerText.match('\\%')) {
usplit = "<font size=1>>> "+TD[t].innerText.split('\\%')[1]+"</font>"
TD[t].innerHTML = TD[t].innerHTML.replace("\\%"+TD[t].innerText.split('\\%')[1]+"\\%","</a></font><br />"+usplit)
}}} else {
for(t=0;t<TD.length;t++) {
if(TD[t].innerHTML.match('\\%')) {
TD[t].innerHTML = TD[t].innerHTML.replace("\\%"+TD[t].innerText.split('\\%')[1]+"\\%","")
}}}
//--></script>
I don't think you need a preview link. :P#nosmileys#nosmileys