Quote:
Originally Posted by hambil
It looks like the replace isn't working for some reason. Try taking the javascript and editing into the SHOWTHREAD template.
add after "headinclude"
Code:
<script language='JavaScript' type='text/javascript'>
<!--
function spoiler(obj)
{
for (var i = 0; i < obj.childNodes.length; i++)
{
if (obj.childNodes[i].id == 'idTitle')
titleRow = obj.childNodes[i];
if (obj.childNodes[i].id == 'idSpoiler')
{
if (obj.childNodes[i].style.display != 'none')
{
obj.childNodes[i].style.display = 'none';
titleRow.innerHTML = ' <b>click to show</b>';
}
else
{
obj.childNodes[i].style.display = 'block';
titleRow.innerHTML = ' <b>click to hide</b>';
}
}
}
}
//-->
</script>
|
I was having the same problem with the "Click to Show" not working.... but i cant find where to add the script.. i cant find "headinclude" anywhere..:cry: