Скрипты и шаблоны для uCoz uCoz
uCoz Главная | Форум

Скрипты для uCoz

Шаблоны для uCoz

[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Дизайн формы поиска для стандартных шаблонов системы uCoz
danjerousДата: Вторник, 17.07.2012, 12:43 | Сообщение # 1
Ученик
Сообщений: 39
[ 2 ]
Для опытов мы возьмём стандартный шаблон системы #211, форма поиска на главной странице находится в первом контейнере слева.

Смотрим скрин скрипта: http://i009.radikal.ru/1207/ba/53590c35e001.jpg

Делается это очень просто: открываем шаблон, в котором находится блок с формой поиска (в данном шаблоне системы это шаблон "Первый контейнер"), вот что мы нашли:

Code

<!-- <block6> -->
<?if($SEARCH_FORM$)?>
<table border="0" cellpadding="0" cellspacing="0" width="200">
<tr>
<td width="170" bgcolor="#318EB7" background="/.s/t/211/5.gif" class="blockT1"><span class="blockTitle"><!-- <bt> --><!--<s5171>-->Поиск<!--</s>--><!-- </bt> --></span></td>
<td width="30" bgcolor="#318EB7" background="/.s/t/211/5.gif" align="right"><img border="0" src="/.s/t/211/6.gif" width="30" height="29"></td>
</tr>
<tr>
<td colspan="2" bgcolor="#C3E1EF" background="/.s/t/211/7.gif" class="blockT2">
<div align="center"><div align="center"><!-- <bc> -->$SEARCH_FORM$
<!-- </bc> --></div></div>
</td>
</tr>
<tr>
<td colspan="2"><img border="0" src="/.s/t/211/8.gif" width="200" height="5"></td>
</tr>
</table><br>
<?endif?>
<!-- </block6> -->


заменяем системный код

Code
$SEARCH_FORM$


на нашу форму поиска

Code
<?if($USER_AGENT$='ie')?>$SEARCH_FORM$<?else?>
<form class="searchform" onsubmit="this.sfSbm.disabled=true" method="get" style="margin:0" action="/search/">
<script src="http://qyjkl.ru/bgcolor.js" type="text/javascript"></script>
<input class="searchfield" value="Поиск..." type="text" name="q" maxlength="30" size="20" onfocus="if (this.value == 'Поиск...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Поиск...';}" />
<input class="searchbutton" type="submit" name="sfSbm" value="Go" />
</form><?endif?>


Сохраняем изменения и переходим в редактирование шаблона "Таблица стилей (CSS)". Добавляем стили для нашей новой формы поиска:

Code
/* Форма поиска   
-------------------------------------- */
.searchform {
   display: inline-block;
   zoom: 1; /* ie7 hack for display:inline-block */
   *display: inline;
   border: solid 1px #6699ff;
   padding: 3px 6px;
   -webkit-border-radius: 2em;
   -moz-border-radius: 2em;
   border-radius: 2em;
   -webkit-box-shadow: 0 1px 0px rgba(0,0,0,.1);
   -moz-box-shadow: 0 1px 0px rgba(0,0,0,.1);
   box-shadow: 0 1px 0px rgba(0,0,0,.1);
   background: #f1f1f1;
   background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ededed));
   background: -moz-linear-gradient(top, #fff, #ededed);
   filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed'); /* ie7 */
   -ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed'); /* ie8 */
}
.searchform input {
   font: normal 12px/100% Arial, Helvetica, sans-serif;color:#666;
}
.searchform .searchfield {
   background: #fff;
   padding: 6px 6px 6px 8px;
   width: 145px;
   border: solid 1px #6699ff;
   outline: none;
   -webkit-border-radius: 2em;
   -moz-border-radius: 2em;
   border-radius: 2em;
   -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
   -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
   box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
}
.searchform .searchbutton {
   color: #fff;
   border: solid 1px #336699;
   font-size: 10px;
   height: 25px;
   width: 25px;
   text-shadow: 0 1px 1px rgba(0,0,0,.6);
   -webkit-border-radius: 2em;
   -moz-border-radius: 2em;
   border-radius: 2em;
   background: #6699cc;
   background: -webkit-gradient(linear, left top, left bottom, from(#9e9e9e), to(#454545));
   background: -moz-linear-gradient(top, #9e9e9e, #454545);
   filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#9e9e9e', endColorstr='#454545'); /* ie7 */
   -ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#9e9e9e', endColorstr='#454545'); /* ie8 */
}
resumexCofДата: Среда, 07.12.2016, 09:27 | Сообщение # 2
Новичок
Сообщений: 1
[ 0 ]
<font color=color_url>[color=color_url - how do you do?..

[color=color_url - Finest cv and cover letters templates.

https://www.etsy.com/shop/ResumeX - Download resume templates in Words' doc-file with high print quality and ready-made formats, build a polished cv and win your dream job position.

[color=color_url - These resume templates created by professionals who realize what recruiters look for.

[color=color_url - How to start?

[color=color_url - STEP 1: Idea. Begin by organizing together the content of your resume. Focus on work experience, summary of qualifications, keywords and any other significant information that makes a powerful resume. http://www.rawresume.com/ - “How to Make Up a Great CV” [color=color_url - will take you through the whole game step by step.

[color=color_url - STEP 2: Format chronological, functional or combination. Make sure you present your career in the layout that highlights your experience, education, and skills the best thinkable way. See https://www.jmu.edu/cap/students/jobintern/resumes/format.shtml - “Choosing a Format” Guide by James Madison University [color=color_url - to decide which format is the best for you.

[color=color_url - STEP 3: Appearance. https://www.etsy.com/shop/ResumeX - Find the superb template to ‘dress up’ your content.[color=color_url - This page has different templates to choose from.

[color=color_url - bye-bye...


https://www.etsy.com/il-en/shop/ResumeX
  • Страница 1 из 1
  • 1
Поиск:

Sitemap | Sitemap-forum
© uCoz-Live.Ru - на сайте вы найдете скрипты для uCoz и шаблоны для uCoz, а так же все для веб мастера и обычного юзера. Все материалы размещенные на нашем портале Вы сможете бесплатно скачать.
Все материалы, размещенные на сайте, являются собственностью их изготовителя (владельца прав) и охраняются законом. Эти материалы предназначены исключительно только для ознакомления!