В прошлый раз на мой вопрос увы так и не ответили, потому повторю и даже уточню проблему.
Нужно мне на своем форе один форумчик скрыть, чтоб не видно было (я из него подфорум делаю). форум с id=28
соответственно в хтмл-верх вставляю скрипт
<script language="JavaScript">
str=document.URL
if(str.substring(str.lastIndexOf('/')+1)=="" || str.substring(str.lastIndexOf('/')+1)=="index.php") document.write("<style>#forum_f28,{display:none}</style>")
</script>Не работает.
Джава у меня включена, и на другом майбовском форуме этот скрипт работал прекрасно. Потом на этом "другом" форуме вставила тот же хтмл-верх, что и на своем, и скрипт перестал работать. очистила хтмл-верх - все равно не работает.
У меня подозрение что мой этот хтмл-верх что-то ломает... Вот он:
<style type="text/css">
HTML, BODY {background-image: url("http://i005.radikal.ru/0801/ca/0089c4f06a42.jpg")!important; background-attachment: fixed !important;}
#pun-title table {background-image : url("http://i032.radikal.ru/0710/aa/34a631ed1297.jpg")}
#pun #pun-index #pun-crumbs1 .container {text-align: center; margin-top: 20px; font-size: large; font-family: Century Gothic;}
#pun {background-color: transparent !important;}
#pun-ulinks .container {border-style
:inset; font-style:italic} Div.icon{background-image : url(http://i035.radikal.ru/0710/cd/34ebe55a0489.gif);
background-repeat: no-repeat;} TR.inew Div.icon {background-image : url(http://i031.radikal.ru/0710/64/dc43b0c5af64.gif);
background-repeat: no-repeat;}TR.iclosed Div.icon {background-image : url(http://i043.radikal.ru/0710/a4/ef9f079d14f2.gif);
background-repeat: no-repeat;}
#pun-announcement h2 {display: none}
#pun-announcement .container {padding-top: 1em}
</style>
<script language="JavaScript">
str=document.URL
if(str.substring(str.lastIndexOf('/')+1)=="" || str.substring(str.lastIndexOf('/')+1)=="index.php") document.write("<style>#forum_f28,{display:none}</style>")
</script>В чем же дело?
Мой форум: http://korolevstvo.3bb.ru/
Отредактировано Каамай (Вс, 3 Фев 2008 16:00:09)
