Всем привет
На картинке все показано, что не так поняли, поясните.
Картинка
Адрес форума: megatrollka.ru
HTML верх
Код:<style> .punbb table Div.icon {float: left; display: block; width: 30px; height: 25px; border-style: none; background-image: url(http://img.megatorrents.kz/forum/images/folder.gif); background-repeat: no-repeat; position: relative; margin-right: 0px;} TR.inew Div.icon { background: url(http://img.megatorrents.kz/forum/images/folder_new.gif) no-repeat;} TR.isticky Div.icon { background: url(http://img.megatorrents.kz/forum/images/folder_sticky_new.gif) no-repeat;} TR.iclosed Div.icon { background: url(http://img.megatorrents.kz/forum/images/folder_lock.gif) no-repeat;} </style> <style type="text/css"> #messanger { position:fixed; right:10%; top:91%; z-index:100; width:260px; border: 2px solid #696969; -moz-border-radius: 8px;border-radius: 8px;khtml-border-radius:8px;-webkit-border-radius:8px; box-shadow: 5px 5px 5px #9C9C9C; -moz-box-shadow: 5px 5px 5px #9C9C9C; -webkit-box-shadow: 5px 5px 5px #9C9C9C; filter: progid:DXImageTransform.Microsoft.Shadow(color='#9C9C9C', direction=145, strength=7);} #closer{background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0.41, #1F1F1F),color-stop(0.94, #D7E3E3)); background-image: -moz-linear-gradient(center bottom,#1F1F1F 41%,#D7E3E3 94%); background-image: -o-linear-gradient(top,#D7E3E3,#1F1F1F); color: lime; -moz-border-radius: 9000em;border-radius: 9000em;khtml-border-radius:9000em;-webkit-border-radius:9000em;cursor: pointer;float: right;font-size: 15px; border: 2px solid #696969; } #closer:hover {color: #FF4500; } </style> <style> .punbb table Div.icon {float: left; display: block; width: 30px; height: 25px; border-style: none; background-image: url(http://img.megatorrents.kz/forum/images/folder.gif); background-repeat: no-repeat; position: relative; margin-right: 0px;} TR.inew Div.icon { background: url(http://img.megatorrents.kz/forum/images/folder_new.gif) no-repeat;} TR.isticky Div.icon { background: url(http://img.megatorrents.kz/forum/images/folder_sticky_new.gif) no-repeat;} TR.iclosed Div.icon { background: url(http://img.megatorrents.kz/forum/images/folder_lock.gif) no-repeat;} </style> <style type="text/css"> #messanger { position:fixed; right:10%; top:65%; z-index:100; width:260px; border: 2px solid #696969; -moz-border-radius: 8px;border-radius: 8px;khtml-border-radius:8px;-webkit-border-radius:8px; box-shadow: 5px 5px 5px #9C9C9C; -moz-box-shadow: 5px 5px 5px #9C9C9C; -webkit-box-shadow: 5px 5px 5px #9C9C9C; filter: progid:DXImageTransform.Microsoft.Shadow(color='#9C9C9C', direction=145, strength=7);} #closer{background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0.41, #1F1F1F),color-stop(0.94, #D7E3E3)); background-image: -moz-linear-gradient(center bottom,#1F1F1F 41%,#D7E3E3 94%); background-image: -o-linear-gradient(top,#D7E3E3,#1F1F1F); color: lime; -moz-border-radius: 9000em;border-radius: 9000em;khtml-border-radius:9000em;-webkit-border-radius:9000em;cursor: pointer;float: right;font-size: 15px; border: 2px solid #696969; } #closer:hover {color: #FF4500; } </style> <style> .pa-title {margin: 0 0 -14px -15px;} .punbb .post h3 span, .punbb .post-body, .punbb .post-links {margin-left: 18em !important;} .punbb .post-links ul {margin-left: -19em !important;} .punbb .post .post-author {width: 18em !important;} </style> <style type="text/css"> #pun-title h1 span {display: none;} </style> <style type="text/css"> .pa-adnote{ text-align: center;} .pa-from{ text-align: center;} .pa-reg{ text-align: center;} .pa-posts{ text-align: left;} .pa-reputation{ text-align: center;} .pa-sex{ text-align: center;} .pa-icq{ text-align: center;} .pa-ip{ text-align: center;} .pa-online{ text-align: center;} .pa-age{ text-align: center;} .pa-mailagent{ text-align: center;} .pa-reg { text-align: center;} .pa-avatar, .pa-title, .pa-author { text-align: center;} .pa-time-visit{ text-align: left;} .pa-last-visit{ text-align: left;} .pa-fld1{ text-align: left;} .pa-fld2{ text-align: left;} .pa-fld3{ text-align: left;} </style> <style type="text/css"> #pun-title h1 span {display: none;} </style>
HTML низ
Код:<script type="text/javascript"> var a = document.getElementsByTagName("a") for (i=0; i<a.length; i++){ if(a[i].title == "Позитивное сообщение"){ a[i].innerHTML = '<img src="http://fotohost.kz/out.php/i549320_2.png" title="+" />' } if(a[i].title == "Негативное сообщение"){ a[i].innerHTML = '<img src="http://fotohost.kz/out.php/i549319_1.png" title="-" />' } } </script> <script type="text/javascript"> var img = document.getElementsByTagName("img") for (i=0; i<img.length; i++){ if(img[i].alt == "+") img[i].src = "http://fotohost.kz/out.php/i549320_2.png" if(img[i].alt == "-") img[i].src = "http://fotohost.kz/out.php/i549319_1.png" } </script> <script type="text/javascript"> if (document.getElementById('pun-status').innerHTML.indexOf("Гость")!=-1){ if (document.URL.indexOf("profile.php")!=-1){ document.getElementById('pun-status').innerHTML="<div id=pun-status class=section><p class=container><span class=item1>Вы не имеете права доступа к этой странице</span></p></div>" document.getElementById('pun-main').style.display="none" }} </script> <script> <!-- userof="Хомячки" str = document.getElementById("navuserlist").innerHTML if( (pos=str.indexOf("Участники")) != -1 ) document.getElementById("navuserlist").innerHTML=str.substring(0,pos)+userof+str.substring(pos+9,str.length-1) --> </script> <script> <!-- pravilof="Правила" str = document.getElementById("navrules").innerHTML pos = str.indexOf("Правила") document.getElementById("navrules").innerHTML=str.substring(0,pos)+pravilof+str.substring(pos+14,str.length-1) --> </script> <script> <!-- godof="Админка" str = document.getElementById("navadmin").innerHTML pos = str.indexOf("Администрирование") document.getElementById("navadmin").innerHTML=str.substring(0,pos)+godof+str.substring(pos+17,str.length-1) --> </script> <script> <!-- valiof="Свалить" str = document.getElementById("navlogout").innerHTML pos = str.indexOf("Выход") document.getElementById("navlogout").innerHTML=str.substring(0,pos)+valiof+str.substring(pos+5,str.length-1) --> </script> <script> <!-- vxodiof="Зайти в святыню" str = document.getElementById("navlogin").innerHTML pos = str.indexOf("Войти") document.getElementById("navlogin").innerHTML=str.substring(0,pos)+vxodiof+str.substring(pos+5,str.length-1) --> </script> <script> <!-- regof="Зарегаца" str = document.getElementById("navregister").innerHTML pos = str.indexOf("Регистрация") document.getElementById("navregister").innerHTML=str.substring(0,pos)+regof+str.substring(pos+18,str.length-1) --> </script> <head> <link rel="HORTCUT ICON" href="http://fotohost.kz/out.php/i536003_.png"> </head> <!-- Система оповещения о личных сообщениях--> <script type="text/javascript"> if((document.getElementById("navpm").innerHTML.indexOf("(") != -1) && (document.URL.indexOf("messages.php") == -1)) {document.write('<div id="messanger" class="container" style="padding: 15px; text-align: right; background-color: #ebeaf0;"><span><img style="border: 2px solid #696969;" align="left" src="'+UserAvatar+'" width="60" height="60" alt="">Привет, <strong>'+UserLogin+'</strong><br>у Вас новое личное сообщение</span><br /><br /> <ul class="pisma"></ul><audio autoplay="autoplay"><source src="http://irpi.jr1.ru/ku-ku.ogg" type="audio/ogg; codecs=vorbis"><source src="http://promobil.kiev.ua/uploads/files/1188937250_icq.mp3" type="audio/mpeg"></audio><br /><span id="closer" ><strong> X </strong></span></div>');} $.get('messages.php','',processMessage); function processMessage(data){ $(data).find('tr.icon').each(function(){ var QMess=$(this).find('div.tclcon a').text();var QLink=$(this).find('div.tclcon a').attr('href'); var Qautor=$(this).find('td.tc2 a').text();var QProf=$(this).find('td.tc2 a').attr('href'); $('.pisma').append('<li><a onclick=\'window.open(href="'+QLink+'"); return false\' class="mess" href="'+QLink+'">'+QMess+'</a> от <a onclick=\'window.open(href="'+QProf+'"); return false\' class="mess" href="'+QProf+'">'+Qautor+'</a></li>'); $('.mess').click(function(){ $('#messanger').toggle();}); });} $('#closer').click(function(){ $('#messanger').toggle();}); </script> <div id="Nulll" style="display:none;"></div><script> $(document).ready(function() {$("#Nulll").load(document.URL+"#pun-navlinks #navindex");}); </script> <script type="text/javascript"> if (GroupID==3){ if (document.URL.indexOf("profile.php")!=-1){ document.getElementById('pun-status').innerHTML="<div id=pun-status class=section><p class=container><span class=item1>Ув. гость, что вы забыли в профиле нашего пользователя? Идите регистрируйтесь или входите по своим никнеймом.</span></p></div>" document.getElementById('pun-main').style.display="none" }} </script> <style> .punbb .post-rating a.green, .punbb .post-rating a.red{ font-weight:700!important; } .punbb .post-rating a.green, .pa-respect span.C1{color:#228B22} .punbb .post-rating a.red, .pa-respect span.C2{color:red} </style> <script type="text/javascript"> var a='<img style="margin:-4px" src="http://fotohost.kz/out.php/i549320_2.png" alt=""/>'; var b='<img style="margin:-4px" src="http://fotohost.kz/out.php/i549319_1.png" alt=""/>' $(".post").each(function(){ $(this).find("a[href*='&v=1&code=']").html(a); var c=$(this).find(".pa-respect span:first");//c.html( c.html(c.html().replace(/^(.+?\/)(-[0-9]+)\]/img,"<span class=C1>$1</span><span class=C2>$2</span>]")) $(this).find("a[href*='&v=0&code=']").html(b); var d=$(this).find(".post-rating a") if(d.html().replace(/[0-9]*/img,"")=='+'){d.addClass("green")} if(d.html().replace(/[0-9]*/img,"")=='-'){d.addClass("red")} }); </script> <!-- HotLog --> <script type="text/javascript" language="javascript"> hotlog_js="1.0"; hotlog_r=""+Math.random()+"&s=2234069&im=464&r="+ escape(document.referrer)+"&pg="+escape(window.location.href); </script> <script type="text/javascript" language="javascript1.1"> hotlog_js="1.1"; hotlog_r+="&j="+(navigator.javaEnabled()?"Y":"N"); </script> <script type="text/javascript" language="javascript1.2"> hotlog_js="1.2"; hotlog_r+="&wh="+screen.width+"x"+screen.height+"&px="+ (((navigator.appName.substring(0,3)=="Mic"))?screen.colorDepth:screen.pixelDepth); </script> <script type="text/javascript" language="javascript1.3"> hotlog_js="1.3"; </script> <script type="text/javascript" language="javascript"> hotlog_r+="&js="+hotlog_js; document.write('<a href="http://click.hotlog.ru/?2234069" target="_blank"><img '+ 'src="http://hit40.hotlog.ru/cgi-bin/hotlog/count?'+ hotlog_r+'" border="0" width="88" height="31" title="HotLog: показано количество посетителей за сегодня и всего" alt="HotLog"><\/a>'); </script> <noscript> <a href="http://click.hotlog.ru/?2234069" target="_blank"><img src="http://hit40.hotlog.ru/cgi-bin/hotlog/count?s=2234069&im=464" border="0" width="88" height="31" title="HotLog: показано количество посетителей за сегодня и всего" alt="HotLog"></a> </noscript> <!-- /HotLog --> <meta name='yandex-verification' content='79233a2ce9fe8c6f' />
Отредактировано 1254а (2012-05-30 18:50:02)