Помогите с hmtl скриптом

Discussion in 'PHP' started by Zer0Cool26, 29 Oct 2010.

  1. Zer0Cool26

    Zer0Cool26 New Member

    Joined:
    14 Aug 2010
    Messages:
    4
    Likes Received:
    0
    Reputations:
    0
    Вот вся страница
    PHP:
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>$MODULE_NAME$</title>
    <?$META_DESCRIPTION$?>
    <META NAME = "AUTHOR" CONTENT = "Форум">
    <META NAME = "COPYRIGHT" CONTENT = "Форум">
    <META NAME = "URL" CONTENT = "http://cka4ivai.3dn.ru/forum/">
    <META NAME = "RESOURCE-TYPE" CONTENT = "Document">
    <META NAME = "DISTRIBUTION" CONTENT = "GLOBAL">
    <META NAME = "DOCUMENT-STATE" CONTENT = "DYNAMIC">
    <META NAME = "ROBOTS" CONTENT = "ALL">
     
    <link type="text/css" rel="StyleSheet" href="/.s/src/css/938.css" />
    </head>

     

     <div id="chat" style="display: none;"><table style="border: 1px solid
    gray; background: none repeat scroll 0% 0% rgb(246, 246, 246);"
    border="0" cellpadding="0" cellspacing="0" width="300">
     <tbody><tr><td style="background: none repeat scroll 0% 0% rgb(246,
    246, 246); text-align: center; border-top: 1px solid gray;">

    <script type="text/javascript">
    function sbtFrmMC991(f){$('#pollBtn').css({display:'none'});$('#pollAjax').css({display:''});_uPostForm('MCaddFrm',{type:'POST',url:'/poll/?422832935.310169'});}
    function countMessLength(){var rst = 200-$('#pollMsgF').val().length;if (rst<0){rst=0;$('#pollMsgF').val($('#pollMsgF').val().substr(0,200));}$('#jeuwu28').html(rst);}
    var tID7174=-1;var tAct7174=false;
    function setT7174(s){var v=parseInt(s.options[s.selectedIndex].value);document.cookie="mcrtd="+s.selectedIndex+"; path=/";if(tAct7174){clearInterval(tID7174);tAct7174=false;}if(v>0){tID7174=setInterval("document.getElementById('mchatIfm2').src='/poll/?'+Math.random();",v*1000);tAct7174=true;}}
    function initSel7174() {var res=document.cookie.match(/(\W|^)mcrtd=([0-9]+)/);if(res){s=$("#pollRSel")[0];;s.selectedIndex=parseInt(res[2]);setT7174(s);}$("#pollMsgF").bind("keydown",function(e){if(e.keyCode==13 && e.ctrlKey && !e.shiftKey){e.preventDefault();sbtFrmMC991();}})}
    </script>
    <td class="bBlok"><table width="100%"><tr><td align="center">
    <tr><td style="font-size:10.5px;" align="center"><div style="width:150px;border: #222222 1px solid; color:#707070;"><b>Приятного общения</b>!</div>


    $CHAT_BOX$
     
    </tbody></table>
    <input name="numa" id="numa832" value="0" type="hidden"><input name="a"
    value="18" type="hidden"><input id="ajaxFlag" name="ajax" value="1"
    type="hidden"></form>
    <script type="text/javascript">initSel7174();</script>


     <table border="0" cellpadding="1" cellspacing="1" width="100%">
     <tbody><tr><td width="206">

     </td></tr></tbody></table>

     </td></tr></tbody></table></div>
     <div style="height: 22px; width: 298px; border: 1px solid gray;
    background: none repeat scroll 0% 0% rgb(54, 54, 54); margin-top: 1px;">
     <div style="float: right; height: 18px; width: 48px; border-left: 1px
    solid gray; text-align: center; padding-top: 4px;"><font color="#dcdcdc">$TIME$</font></div>

     <div style="margin-top: 4px; text-align: center;"><a
    href="javascript://" onclick="$('#chat').slideToggle(2000)"><img
    src="/forum_files/mini-chat2.png" border="0" width="100" height="15"></a></div>
     </div></div>

    <link type="text/css" rel="StyleSheet" href="/forum_files/layer6.css"><style type="text/css">.UhideBlock {display:none}</style>
    <body style="background:#000000; margin:0px; padding:0 10px;">
    <table border="0" cellpadding="3" cellspacing="0" width="100%">
    <tr>
    <td valign="top" style="width:203px;">


    <table style="border: 1px solid #dedede;" border="0" cellpadding="1" cellspacing="0" width="100%"><tbody><tr><td style="background: none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><table border="0" cellpadding="1" cellspacing="1" width="100%">
    <table border="0" width="100%" cellspacing="2" cellpadding="3"> 
    <tr> 
    <td style="border:1px solid #585858;" background="/css/head.jpg" width="100%"><center><b>Реклама:</b></center></td>
    </tr> 
    <tr> 

    <td class="bBlok2"><div id="banners" align="center">



    <script type="text/javascript" src="http://cka4ivai.3dn.ru/rtr/4"></script> <script type="text/javascript" src="http://cka4ivai.3dn.ru/rtr/4"></script>
    <script type="text/javascript" src="http://cka4ivai.3dn.ru/rtr/4"></script> <script type="text/javascript" src="http://cka4ivai.3dn.ru/rtr/4"></script>


    </div>
    </td> 
    </tr> 
    </table></td>
    $ADMIN_BAR$

    <div align="center">
    $GLOBAL_AHEADER$

    <div class="forumContent"><table border="0" cellpadding="0" height="30" cellspacing="0" width="100%">
    <tr>
    <td align="right">[<?if($USER_LOGGED_IN$)?>
    <a href="javascript://" rel="nofollow" id="upml" class="fNavLink" onclick="window.open('$PM_URL$','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350');return false;"><!--<s3065>-->Личные сообщения<!--</s>-->($UNREAD_PM$)</a> &middot;
    <?if($IS_NEW_PM$)?><script type="text/javascript">function flashit(id,cl){var c=document.getElementById(id);if (c.style.color=='red'){c.style.color=cl;}else {c.style.color='red';}}setInterval("flashit('upml','')",500)</script><bgsound src="http://s106.ucoz.net/img/fr/pm.wav" loop="1" volume="0" balance="0">
    <?endif?><?endif?>
    <a class="fNavLink" href="$RECENT_POSTS_LINK$" rel="nofollow"><!--<s5209>-->Новые сообщения<!--</s>--></a> &middot;
    <a class="fNavLink" href="$MEMBERS_LIST_LINK$" rel="nofollow"><!--<s5216>-->Участники<!--</s>--></a> &middot;
    <a class="fNavLink" href="$BOARD_RULES_LINK$" rel="nofollow"><!--<s5166>-->Правила форума<!--</s>--></a> &middot;
    <a class="fNavLink" href="$SEARCH_PAGE_LINK$" rel="nofollow"><!--<s3163>-->Поиск<!--</s>--></a> &middot;
    <a class="fNavLink" href="$RSS_LINK$" rel="nofollow">RSS</a> ]</td>
    </tr>
    </table>
    $BODY$</div><br />

    $GLOBAL_BFOOTER$

    </div>
    </body>

    </html>[/SPOILER]
    Вот скрипт мини-чата [SPOILER]<script type="text/javascript">
    function sbtFrmMC991(f){$('#pollBtn').css({display:'none'});$('#pollAjax').css({display:''});_uPostForm('MCaddFrm',{type:'POST',url:'/poll/?422832935.310169'});}
    function countMessLength(){var rst = 200-$('#pollMsgF').val().length;if (rst<0){rst=0;$('#pollMsgF').val($('#pollMsgF').val().substr(0,200));}$('#jeuwu28').html(rst);}
    var tID7174=-1;var tAct7174=false;
    function setT7174(s){var v=parseInt(s.options[s.selectedIndex].value);document.cookie="mcrtd="+s.selectedIndex+"; path=/";if(tAct7174){clearInterval(tID7174);tAct7174=false;}if(v>0){tID7174=setInterval("document.getElementById('mchatIfm2').src='/poll/?'+Math.random();",v*1000);tAct7174=true;}}
    function initSel7174() {var res=document.cookie.match(/(\W|^)mcrtd=([0-9]+)/);if(res){s=$("#pollRSel")[0];;s.selectedIndex=parseInt(res[2]);setT7174(s);}$("#pollMsgF").bind("keydown",function(e){if(e.keyCode==13 && e.ctrlKey && !e.shiftKey){e.preventDefault();sbtFrmMC991();}})}
    </script>
    <td class="bBlok"><table width="100%"><tr><td align="center">
    <tr><td style="font-size:10.5px;" align="center"><div style="width:150px;border: #222222 1px solid; color:#707070;"><b>Приятного общения</b>!</div>


    $CHAT_BOX$
     
    </tbody></table>
    <input name="numa" id="numa832" value="0" type="hidden"><input name="a"
    value="18" type="hidden"><input id="ajaxFlag" name="ajax" value="1"
    type="hidden"></form>
    <script type="text/javascript">initSel7174();</script>
    вот ссылка на страницу со скриптом
    мне нужно сделать так чтобы при открывании мини-чата страница не съежала вниз, чтобы мини чат открывался поверх страницы. помогите пожалуйста. и если можно киньте если че весь исправленый код страницы
     
    #1 Zer0Cool26, 29 Oct 2010
    Last edited by a moderator: 29 Oct 2010
  2. hkmakes

    hkmakes Member

    Joined:
    3 Jan 2010
    Messages:
    126
    Likes Received:
    11
    Reputations:
    10
    Приветствую!!!

    Смотри в сторону "position: absolute;" в блоке с чатом
     
  3. Zer0Cool26

    Zer0Cool26 New Member

    Joined:
    14 Aug 2010
    Messages:
    4
    Likes Received:
    0
    Reputations:
    0
    я вообще html не понимаю учу учу, может кто нить сказать что мне сделать
     
  4. Zer0Cool26

    Zer0Cool26 New Member

    Joined:
    14 Aug 2010
    Messages:
    4
    Likes Received:
    0
    Reputations:
    0
    ладно, не надо мне чтобы он поверх открывался скажите как мне сделать чтобы этот скрипт был еще один рядом
    вот так примерно
    [​IMG]
     
    #4 Zer0Cool26, 29 Oct 2010
    Last edited: 29 Oct 2010
  5. randman

    randman Members of Antichat

    Joined:
    15 May 2010
    Messages:
    1,366
    Likes Received:
    610
    Reputations:
    1,101
    Просто надо чат разместить в сплывающий фрейм(как порн* реклама на сайтаx) с крестиком в углу, посмотри в GOOGLE. Что искать я сказал.
     
  6. Zer0Cool26

    Zer0Cool26 New Member

    Joined:
    14 Aug 2010
    Messages:
    4
    Likes Received:
    0
    Reputations:
    0
    мне нужна сделать чат как на logical-portal.ru чтобы без крестикоа просто открывался и закрывался, и рядом еще один поставить как это сделать