Скрипт Кнопки для ucoz скачать с хинтом размера файла для юкоза
Установка:
ПУ---> Управ. дизайном---> Каталог файлов---> Страница мат. и коммент. к нему---> Находим:
Code
<td width="85%">
<?if($FILE_URL$ || $RFILE_URL$ || $SCREEN_URL$)?>[ <?if($FILE_URL$)?><a href="$FILE_URL$"><!--<s5223>-->Скачать с сервера<!--</s>--></a> ($FILE_SIZE$)<?endif?>
<?if($RFILE_URL$)?> · <a href="$RFILE_URL$" target="_blank"><!--<s5224>-->Скачать удаленно<!--</s>--></a> ($RFILE_SIZE$)<?endif?>
<?if($SCREEN_URL$)?> · <a href="$SCREEN_URL$" target="_blank"><!--<s5187>-->Скриншот<!--</s>--></a><?endif?> ]<?endif?>
</td>
<?if($FILE_URL$ || $RFILE_URL$ || $SCREEN_URL$)?>[ <?if($FILE_URL$)?><a href="$FILE_URL$"><!--<s5223>-->Скачать с сервера<!--</s>--></a> ($FILE_SIZE$)<?endif?>
<?if($RFILE_URL$)?> · <a href="$RFILE_URL$" target="_blank"><!--<s5224>-->Скачать удаленно<!--</s>--></a> ($RFILE_SIZE$)<?endif?>
<?if($SCREEN_URL$)?> · <a href="$SCREEN_URL$" target="_blank"><!--<s5187>-->Скриншот<!--</s>--></a><?endif?> ]<?endif?>
</td>
И заменяем на:
Code
<td width="85%" style="padding:2px">
<?if($FILE_URL$ || $RFILE_URL$ || $SCREEN_URL$)?><?if($FILE_URL$)?><a href="$FILE_URL$" title="Размер $FILE_SIZE$" class="north"><img src="http://www.csomsk.ru/1-ucoz/pm/file.png" border="0" alt="Размер $FILE_SIZE$" / width="222" height="49"></a><?endif?>
<script src="http://www.csomsk.ru/1-ucoz/pm/jquery.tipsy_kracivii_vid_title_dli_ccilok.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$('.north').tipsy({gravity: 'n'});
$('.south').tipsy({gravity: 's'});
$('.east').tipsy({gravity: 'e'});
$('.west').tipsy({gravity: 'w'});
});
</script>
<?if($RFILE_URL$)?> · <a href="$RFILE_URL$" target="_blank"><img src="http://www.csomsk.ru/1-ucoz/pm/file.png" border="0" alt="$RFILE_SIZE$" / width="222" height="49"></a><?endif?>
<?if($SCREEN_URL$)?> · <a href="$SCREEN_URL$" target="_blank"><!--<s5187>-->Скриншот<!--</s>--></a><?endif?><?endif?>
</td>
<style>.tooltip span:before {
border-top-color: #CCCCCC;
bottom: -9px;
}
.tipsy {
background-image: url("http://www.csomsk.ru/1-ucoz/pm/tipsy_kracivii_vid_title_dli_ccilok.gif");
background-repeat: no-repeat;
font-size: 11px;
opacity: 0.9;
padding: 5px;
}
.tipsy-inner {
background-color: black;
color: white;
max-width: 200px;
padding: 5px 8px 4px;
text-align: center;
}
.tipsy-inner {
border-radius: 3px 3px 3px 3px;
}
.tipsy-north {
background-position: center top;
}
.tipsy-south {
background-position: center bottom;
}
.tipsy-east {
background-position: right center;
}
.tipsy-west {
background-position: left center;
}</style>
<?if($FILE_URL$ || $RFILE_URL$ || $SCREEN_URL$)?><?if($FILE_URL$)?><a href="$FILE_URL$" title="Размер $FILE_SIZE$" class="north"><img src="http://www.csomsk.ru/1-ucoz/pm/file.png" border="0" alt="Размер $FILE_SIZE$" / width="222" height="49"></a><?endif?>
<script src="http://www.csomsk.ru/1-ucoz/pm/jquery.tipsy_kracivii_vid_title_dli_ccilok.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$('.north').tipsy({gravity: 'n'});
$('.south').tipsy({gravity: 's'});
$('.east').tipsy({gravity: 'e'});
$('.west').tipsy({gravity: 'w'});
});
</script>
<?if($RFILE_URL$)?> · <a href="$RFILE_URL$" target="_blank"><img src="http://www.csomsk.ru/1-ucoz/pm/file.png" border="0" alt="$RFILE_SIZE$" / width="222" height="49"></a><?endif?>
<?if($SCREEN_URL$)?> · <a href="$SCREEN_URL$" target="_blank"><!--<s5187>-->Скриншот<!--</s>--></a><?endif?><?endif?>
</td>
<style>.tooltip span:before {
border-top-color: #CCCCCC;
bottom: -9px;
}
.tipsy {
background-image: url("http://www.csomsk.ru/1-ucoz/pm/tipsy_kracivii_vid_title_dli_ccilok.gif");
background-repeat: no-repeat;
font-size: 11px;
opacity: 0.9;
padding: 5px;
}
.tipsy-inner {
background-color: black;
color: white;
max-width: 200px;
padding: 5px 8px 4px;
text-align: center;
}
.tipsy-inner {
border-radius: 3px 3px 3px 3px;
}
.tipsy-north {
background-position: center top;
}
.tipsy-south {
background-position: center bottom;
}
.tipsy-east {
background-position: right center;
}
.tipsy-west {
background-position: left center;
}</style>
Категория:
Кнопки для uCoz
Просмотров:
1091