Что то не получается с этим скриптом скрыть чат от гостей на главной странице.
Обычный скрипт
<!-- BEGIN CBOX - wwwcbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="900" height="300" src="http://www5.cbox.ws/box/?boxid=766347&boxtag=4z8l8c&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain5-766347" style="border:#ababab 1px solid;" id="cboxmain5-766347"></iframe></div>
<div><iframe frameborder="0" width="900" height="75" src="http://www5.cbox.ws/box/?boxid=766347&boxtag=4z8l8c&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform5-766347" style="border:#ababab 1px solid;border-top:0px" id="cboxform5-766347"></iframe></div>
</div>
<!-- END CBOX -->
С дополнением, для скрытия от гостей
<!-- BEGIN CBOX - wwwcbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="900" height="300" src="http://www5.cbox.ws/box/?boxid=766347&boxtag=4z8l8c&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain5-766347" style="border:#ababab 1px solid;" id="cboxmain5-766347"></iframe></div>
<div><iframe frameborder="0" width="900" height="75" src="http://www5.cbox.ws/box/?boxid=766347&boxtag=4z8l8c&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform5-766347" style="border:#ababab 1px solid;border-top:0px" id="cboxform5-766347"></iframe></div>
</div>
<!-- END CBOX -->
<script type="text/javascript">var a=false;
var GroUP_Asses=[1,2,4,5,8];
for(i in GroUP_Asses){if(GroUP_Asses[i]==GroupID){a=true;break;}}
if(a){$(".Mychatt").show()}
</script>
Отредактировано al-gross (Пн, 23 Апр 2012 07:44:02)