Дата: Пт, 23.07.2010, 13:42:52 | Сообщение #
1
Такая проблема у меня! Как мне сделать все темы не посередине а как у всех стандартно! не понятно! Вот Общий вид страниц форума!Может быть тут надо что то убрать!
Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><HEAD></head><BODY><div align="center"> <DIV style="position:absolute;position:fixed;up:5;left:475;opacity:1.0;"> <DIV id="chat" style="display: none;"><TABLE border="0" cellpadding="0" cellspacing="0" width="300" style="border: 1px solid gray; background: #4F4F4F;"> <TBODY><TR><TD height="32" background="http://slayers-pro.at.ua/MUHU_4AT.png"></TD></TR><TR><TD style="background: #4F4F4F; text-align: center; border-top: 1px solid #1E90FF;"> $CHAT_BOX$ <TABLE border="0" cellpadding="1" cellspacing="1" width="100%"> <TBODY><TR><TD width="206"> </TD></TR></TBODY></TABLE> <?if($USER_LOGGED_IN$)?><?if($IS_NEW_PM$)?> <script type="text/javascript"> window.onload = function StartPM() {openLayerB('PmBody',0,'/js/pmbody.xml','Новое Личное Сообщение',335,300,1,0,0);} </script> <?endif?><?endif?> </TD></TR></TBODY></TABLE></DIV> <DIV style="height: 22px; width: 298px; border: 1px solid gray; background: #4F4F4F; margin-top: 1px;"> <DIV style="float:right; height: 18px; width: 48px; border-left: 1px solid gray ;text-align: center; padding-top: 4px;"><FONT color="gray"><SPAN class="xml-text">$TIME$</FONT></DIV> <DIV style="float: left; padding-top: 3px;"><A href="javascript://" rel="nofollow" onclick="document.getElementById('mchatIfm2').src='/mchat/?'+Math.random();return false;" title="Обновить"><IMG src="http://sinners.pp.ua/minichat/1.png" alt="Обновить" border="0" width="16" height="16" style="padding-left: 3px;"></A><A href="javascript://" rel="nofollow" onclick="new _uWnd('Sml',' ',-250,-350,{autosize:0,closeonesc:1,resize:0,icon:'http://sinners.pp.ua/minichat/3.png'},{url:'/index/35-0-2'});return false; "><IMG src="http://sinners.pp.ua/minichat/3.png" height="16" width="16" border="0" alt="Смайлы" style="padding-left: 3px;"></A><A href="javascript://" rel="nofollow" onclick="new _uWnd('Cntrl','Управление сообщениями',580,600,{autosize:0,resize:0,icon:'http://sinners.pp.ua/minichat/4.png'},{url:'/mchat/0-1', xml: false});return false; "><IMG src="http://sinners.pp.ua/minichat/4.png" height="16" width="16" border="0" alt="Управление мини-чатом" style="padding-left: 3px;"></A></DIV> <DIV style="margin-top: 4px; text-align:center;"><A href="javascript://" onclick="$('#chat').slideToggle(2000)"><IMG src="http://s002.radikal.ru/i200/1006/79/75396e8e0661.gif" title="Мини чат от CsMaX.RU" width="100" height="15" border="0"></A></DIV> </DIV></DIV> <TITLE>Форум</TITLE> <link type="text/css" rel="StyleSheet" href="/_st/my.css" /> <LINK type="text/css" rel="StyleSheet" href="/css/index.css"> <DIV id="wrapper"> <DIV class="content_wrap"> <DIV id="header"> <DIV id="logo"> <A href="" title=""></A> </DIV> <DIV id="top_login"> <DIV id="login_form"> $LOGIN_FORM$<!--IF--><b></b> <div style="width:150px;background:url('/diz/fon.bmp') repeat-x #494949; border: #222222 1px solid; color:#707070;"><a href="$PERSONAL_PAGE_LINK$" title="Профиль"><b>$USERNAME$</b>!</a></div> <div style="width:150px;background:url('/diz/fon.bmp') repeat-x #494949; border: #222222 1px solid; color:#707070;">Личные сообщения:<a href="$PM_URL$" title="">$UNREAD_PM$</a> </div> <div style="width:150px;background:url('/diz/fon.bmp') repeat-x #494949; border: #222222 1px solid; color:#707070;">Ваш ID: $USER_ID$</div> <div style="width:150px;background:url('/diz/fon.bmp') repeat-x #494949; border: #222222 1px solid; color:#707070;"><a href="$LOGOUT_LINK$" title="Выход">Выход</a></div> <!--ENDIF--><!--%IFEL7%0%><tr><td class="boxContent" style="font-size:10.5px;padding-right:10.5px;" align="center"><div style="width:150px;background:url('/diz/fon.bmp') repeat-x #494949; border: #222222 1px solid; color:#707070;">Здравствуйте, Гость</div></td></tr> <?else?><tr><td class="boxContent">$LOGIN_FORM$<!%IFEN7%0%--> </DIV> </DIV> </DIV> <DIV id="toolbar"> <DIV id="topnav"> <UL> <LI id="button_home"> <A class="active " href="/">Главная</A> </LI> <LI id="button_help"> <A class="" href="/forum">Форум</A> </LI> <LI id="button_search"> <A class="" href="/load">Файлы</A> </LI> <LI id="button_calendar"> <A class="" href="/publ">Статьи</A> </LI> <LI id="button_login"> <A class="" href="/blog">Блог</A> </LI> <LI id="button_register"> <A class="" href="$REGISTER_LINK$">Регистрация</A> </LI> <li id="button_admin"> <a class="" href="javascript://" onclick="openLayerB('InfoAdmins',0,'/InfoAdmins.xml','Информация об Администраторах',250,80,'1','','',0,'justify'); return false;">Администрация</a> </li> <li id="button_chat"> <a class="" href="/index/chat/0-7"><span style="color:pink">Наш чат</span></a> </li> <li id="button_dop"> <a class=""<a title="Дополнительные кнопки нашего PORTALA" href="javascript://" onclick="openLayerB('Settings',0,'/xml/dopinfooo.xml','Дополнительная информация',390,150,'1');return false;" class="servmenu">Дополнительно</a></ul> </UL> </DIV> </DIV> <DIV class="clr"></DIV> </DIV> <DIV class="content_wrap"> <DIV id="search"> <FORM method="post" action="/forum/"> <INPUT class="inputbox" name="kw" value="Поискать..." onfocus="this.value = '';" onblur="if(this.value=='') this.value='Поискать...';" type="text"> <INPUT name="a" value="6" type="hidden"> </FORM> </DIV> <DIV id="time"> <SPAN>Сейчас: $DATE$, $TIME$</SPAN> </DIV> <DIV class="clr"></DIV> <DIV id="main_content"> <!-- Ac-Portal --> <DIV class="gDivLeft"><DIV class="gDivRight"><TABLE border="0" width="100%" cellspacing="1" cellpadding="0" class="gTable"> <TBODY> <TR> <TD class="gTableTop" colspan="5">Рекламный блок Форума</TD></TR> <TABLE class="gTable" cellspacing="1" cellpadding="3" width="100%" bgcolor="#ffffff" border="0"> <TBODY><TR> <TD class="gTableSubTop" width="28%"><CENTER>Реклама</CENTER></TD> <TD class="gTableSubTop" width="44%"><CENTER>Реклама</CENTER></TD> <TD class="gTableSubTop" width="28%"><CENTER>Реклама</CENTER></TD></TR> <TR> <TD class="gTableBody1" style="padding-rigth: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px"><CENTER><IMG src="http://sinners.pp.ua/Reclama_ST/88x31.gif" alt="Место свободное" border="0" height="31" width="88"> <IMG src="http://sinners.pp.ua/Reclama_ST/88x31.gif" alt="Место свободное" border="0" height="31" width="88"></CENTER></TD> <TD class="gTableBody1" style="padding-rigth: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px"><CENTER><noindex><A target="_blank" href="/" title="Реклама"><IMG src="http://megahacs.ru/468x60.png" border"0"=""></A></noindex></CENTER></TD> <TD class="gTableBody1" style="padding-rigth: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px"><CENTER><IMG src="http://sinners.pp.ua/Reclama_ST/88x31.gif" alt="Место свободное" border="0" height="31" width="88"> <IMG src="http://sinners.pp.ua/Reclama_ST/88x31.gif" alt="Место свободное" border="0" height="31" width="88"></CENTER></TD> </TR> </TBODY></TABLE> </DIV></DIV><DIV class="gDivBottomLeft"></DIV><DIV class="gDivBottomCenter"></DIV><DIV class="gDivBottomRight"></DIV> <!-- /Ac-Portal --><table border="0" cellpadding="10" cellspacing="0" width="100%"><tr><td valign="top" align="center"> <table border="0" cellpadding="0" height="22" cellspacing="0" width="66%" align="center" style="border:1px solid #262626;background:url('http://sinners.pp.ua/img/932.gif');"> <tr> <td align="center"><div class="navig"> |<?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> <?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://s102.ucoz.net/img/fr/pm.wav" loop="1" volume="0" balance="0"> <?endif?><?endif?>| <a class="fNavLink" href="$RECENT_POSTS_LINK$" rel="nofollow">Новые сообщения</a> <a class="fNavLink" href="$MEMBERS_LIST_LINK$" rel="nofollow">Участники</a> | <a class="fNavLink" href="$BOARD_RULES_LINK$" rel="nofollow"><FONT color=#ff0000><B>Правила форума</B></FONT></a> | <a class="fNavLink" href="$SEARCH_PAGE_LINK$" rel="nofollow">Поиск</a> | </div></td> </tr> </table><br>$BODY$<script type="text/javascript"> e=document.getElementsByTagName("TD"); for(k=0;k<e.length;k++) { if(e[k].className=='posttdMessage') { s=e[k].innerHTML; while (s.indexOf('[adminred]') != -1) { s=s.replace('[adminred]','<table width="100%" border="0" cellspacing="0" cellpadding="5" style="background-color:#252525; border-top:1px dotted red; border-right:1px dotted red; border-bottom:1px dotted red; border-left:1px dotted red;"><tr><td style="width:50px; height:50px; background-image: url(http://sinners.pp.ua/img/2b.png); background-repeat:no-repeat; background-position:5px 3px;"> </td><td><font style="font-size: 14px; font-family: Verdana; color: red;">'); s=s.replace('[/adminred]','</font></td></tr></table>'); e[k].innerHTML=s;}}} </script><script type="text/javascript" language="javascript"> e=document.getElementsByTagName("TD"); for(k=15; k<e.length;k++) { if(e[k].className=='posttdMessage') { s=e[k].innerHTML; while (s.indexOf('[p.s.]') != -1){ s=s.replace('[p.s.]','<fieldset><legend><font style="font-size: 12px; font-family: Verdana; color: orange;"> P.S </font></legend><font style="font-size: 11px; font-family: Verdana; color: orange;">'); s=s.replace('[/p.s.]','</font></fieldset>'); e[k].innerHTML=s; } } } </script><script type="text/javascript"> e=document.getElementsByTagName("TD"); for(k=0;k<e.length;k++) { if(e[k].className=='posttdMessage') { s=e[k].innerHTML; while (s.indexOf('[Table]') != -1) { s=s.replace('[Table]','<table width="100%" border="0" cellspacing="0" cellpadding="5" style="background-color:161618; border-top:1px dotted #898989; border-right:1px dotted #898989; border-bottom:1px dotted #898989; border-left:1px dotted #898989;"><tr><td style="width:25px; height:25px;background-repeat:no-repeat; background-position:5px 3px;"> </td><td><font style="font-size: 12px; font-family: Verdana; color: 898989;">'); s=s.replace('[/Table]','</font></td></tr></table>'); e[k].innerHTML=s;}}} </script><script type="text/javascript" src="http://csmax.ru/js/forumname.js"></script> </DIV> </DIV> <DIV id="footer"> <DIV id="smf_copyright"> <UL class="reset"> <LI class="copyright"> <SPAN class="smalltext" style="display: inline; visibility: visible; font-family: Verdana,Arial,sans-serif;">$POWERED_BY$ </SPAN></LI> <LI><A id="button_xhtml" href="/" target="_blank" class="new_win" title="Valid XHTML 1.0!"><SPAN>Место сободно</SPAN></A></LI> <LI><A id="button_rss" href="/" class="new_win"><SPAN>Место сободно</SPAN></A></LI> <LI class="last"><A id="button_wap2" href="/" class="new_win"><SPAN>Место сободно</SPAN></A></LI> </UL> </DIV> <DIV id="ds_copyright"> <STRONG>Владелец</STRONG> CsMaX.Ru <P class="smalltext">По всем вопросам обращаться - <A href="http://diz-cs.ru/index/8-8564">zOot_^^</A></P> </DIV> <DIV class="clr"></DIV> </DIV> </DIV> <script type="text/javascript"> links=document.getElementsByTagName('a'); for(i=0;i<links.length;i++){ if(links[i].className=='uLPost','tAuthor','threadAuthorLink','lastPostUserLink'){ user=links[i].innerHTML; $MYINF_3$ }} </script> <STYLE> /* hint menu */ .hint { background:url('http://csmax.ru/diz/fon_blokov1.png'); line-height:10px; color:#ffffff; font-family:verdana,arial,helvetica; font-size:8pt; width:auto; border-top:1px solid #ff0000; border-right:1px solid #ff0000; border-bottom:1px solid #ff0000; border-left:1px solid #ff0000; margin:1px; padding:8px; position:absolute; visibility:hidden; } /* ---------------- */ </STYLE> <script> // Автор Скрипта: http://Sinners.PP.Ua //Hint Start // CLASS : MW_System_Load // Init function MW_System_Load(){ this.wib = screen.width; this.heb = screen.height; this.documes = (document.getElementById || document.createElement || document.getElementsByTagName) ? true : false; this.objects = window.addEventListener || window.attachEvent ? window : document.addEventListener ? document : null; this.types = 'load'; } MW_System_Load.prototype.addsevent = function(func){ if(this.objects.addEventListener){ this.objects.addEventListener(this.types,func,false); return true; } else if (this.objects.attachEvent){ this.objects.attachEvent("on" + this.types,func); } else { return false; } } MW_System_Load.prototype.browser = function(){ this.ver = navigator.appVersion; this.agent = navigator.userAgent.toLowerCase(); this.dom = document.getElementById ? 1:0; this.all = document.all ? 1:0; this.ie5 = (this.ver.indexOf("MSIE 5")>-1 && this.dom) ? 1:0; this.ie6 = (this.ver.indexOf("MSIE 6")>-1 && this.dom) ? 1:0; this.ie4 = (document.all && !this.dom) ? 1:0; this.ie = this.ie4 || this.ie5 || this.ie6; this.opera = this.agent.indexOf("opera")>-1; this.gecko = (this.agent.indexOf("gecko")!=-1) ? 1:0; this.bw = (this.ie || this.opera || this.gecko); return this; } MW_System_Load.prototype.findobj = function(obj){ this.parent = window.document; if(this.parent[obj]){ return this.parent[obj]; } if(this.parent.all && this.parent.all[obj]){ return this.parent.all[obj]; } if(this.parent.layers && this.parent.layers[obj]){ return this.parent.layers[obj]; } if(this.parent.getElementById && this.parent.getElementById(obj)){ return this.parent.getElementById(obj); } return null; } var MW = new MW_System_Load(); function MW_System_Hint(){} MW_System_Hint.prototype.show = function(obj,str){ var hint = MW.findobj('hint'); if(!obj){ return; } if(!MW.documes){ return; } if(!hint){ return; } hint.className = 'hint'; hint.style.left = 15; hint.style.top = 50; obj.onmouseout = function(advance){ hint.style.width = ''; hint.style.visibility = 'hidden'; if(hint.firstChild) hint.removeChild(hint.firstChild); hint.appendChild(document.createTextNode(str)); }; obj.onmousemove = function(advance){ //str = str.replace(/</g,"<"); //str = str.replace(/>/g,">"); hint.style.width = ''; hint.innerHTML = str; vc = document.getElementsByTagName((document.compatMode && document.compatMode=="CSS1Compat") ? "HTML":"BODY")[0]; x = window.event ? event.clientX + vc.scrollLeft : advance.pageX; y = window.event ? event.clientY + vc.scrollTop : advance.pageY; vcwidth = vc.clientWidth ? vc.clientWidth + vc.scrollLeft : window.innerWidth + window.pageXOffset; vcheight = vc.innerHeight ? window.innerHeight + window.pageYOffset : vc.clientHeight + vc.scrollTop; if(hint.offsetWidth>500){ hint.style.width = '200'; } if((x + hint.offsetWidth + 15) > vcwidth){ hint.style.left = x - hint.offsetWidth - 4; } else { hint.style.left = x + 15; } if((y + hint.offsetHeight + 19) > vcheight){ hint.style.top = y - hint.offsetHeight; } else { hint.style.top = y + 25; } //if(typeof(hint.style.MozOpacity)!="undefined"){ hint.style.opacity = '.91'; hint.style.filter = "alpha(opacity:91)"; //} hint.style.visibility = 'visible'; }; } MW_System_Hint.prototype.initialize = function(){ var hint = document.createElement("DIV"); hint.setAttribute('id','hint'); document.getElementsByTagName('body')[0].appendChild(hint); hint.style.visibility = 'hidden'; var hintmarker = ['a','img','img','input','span','div','textarea']; var textmarker = ['title','alt','title','title','title','title','title']; var lenmarker = hintmarker.length; for(var i=0; i<lenmarker; i++) { atr = document.getElementsByTagName(hintmarker[i]); for(var j=0; j<atr.length; j++) if(viewhint=atr[j].getAttribute(textmarker[i])){ atr[j].removeAttribute(textmarker[i]); HINT.show(atr[j],viewhint); } } } var HINT = new MW_System_Hint(); if(MW.objects){ MW.addsevent(HINT.initialize); } //Hint End </script></BODY></html>
Дата: Пт, 23.07.2010, 14:15:06 | Сообщение #
2