• Page 1 of 1
  • 1
UcozBaze All Scripts And Templates » Scripts and Coding » Other » Контактная форма на jQuery для Ucoz (Контактная форма на jQuery для Ucoz)
Контактная форма на jQuery для Ucoz
AdiDate: Thursday, 2012-12-27, 0:00 AM | Message # 1
Group: Member
Messages: 179
3


Отличная контактная форма для обратной связи, думаю вам подойдёт

Установка:

Разметка HTML :

<form id="form" class="blocks" action="#" method="post">   
<p>   
<label>Имя:</label>   
<input type="text" class="text" name="name" />   
</p>   
<p>   
<label>Компания:</label>   
<input type="text" class="text" name="company" />   
</p>   
<p>   
<label>Ваш e-mail:</label>   
<input type="text" class="text" name="email" />   
</p>   
<p>   
<label>Телефон:</label>   
<input type="text" class="text" name="phone" />   
</p>   
<p class="area">   
<label>Сообщение:</label>   
<textarea class="textarea" name="message"></textarea>   
</p>   
<p>   
<label> </label>   
<input type="submit" class="btn" value="Отправить" />   
</p>   
   </form>


Добавить в CSS :

.blocks p {   
margin-bottom:15px;   
position:relative;   
}   
     
.btn {   
display:block;   
float:left;   
height:31px;   
line-height:31px;   
padding:0 10px;   
background:url(/images/bgbtn.jpg) repeat-x;   
color:#565e62;   
font-weight:bold;   
font-size:11px;   
border:1px solid #e1e0df;   
outline:none;   
}   
     
.text,   
.textarea {   
padding:5px 10px;   
height:27px;   
border:1px solid #ddd;   
color:#333;   
background:url(/images/bginput.jpg) repeat-x bottom #fff;   
position:relative;   
z-index:2;   
}   
     
.text {   
width:220px;   
}   
     
.textarea {   
height:150px;   
width:350px;   
}   
     
.blocks label {   
float:left;   
width:100px;   
line-height:37px;   
text-align:right;   
margin-right:15px;   
font-weight:bold;   
color:#666;   
}   
     
.blocks label.error,   
.blocks label.ok {   
position:absolute;   
z-index:1;   
top:-4px;   
left:110px;   
padding:5px 15px 5px 280px;   
     
/* Reseting previous label values */   
width:auto;   
text-align:left;   
margin:0;   
background-repeat:no-repeat;   
background-position:257px 16px;   
}   
     
.blocks label.ok {   
background-image:url(/images/icook.gif);   
background-color:#deefca;   
color:#577530;   
}   
     
.blocks label.error {   
background-image:url(/images/icofail.gif);   
background-color:#f5d6d7;   
color:#c81925;   
}   
     
.area label.ok,   
.area label.error {   
height:163px;   
padding-left:410px;   
background-position:387px 16px;   
}   
     
/* CSS3 */   
.btn, .text, .textarea, .blocks label.error, .blocks label.ok {   
-moz-border-radius:8px;   
-webkit-border-radius:8px;   
border-radius:8px;   
}

jQuery :   
Выделить всё
$(function(){   
     
   $("#form").validate({   
   rules: {   
   name: {   
   required: true,   
   minlength: 3   
   },   
   company: {   
   required: true   
   },   
   phone: {   
   required: true,   
   number: true,   
   minlength: 6   
   },   
   email: {   
   required: true,   
   email: true   
   },   
   message: {   
   required: true   
   }   
   },   
   messages: {   
   name: {   
   required: 'Обязательное поле',   
   minlength: 'Мин. длина: 3'   
   },   
   company: {   
   required: 'Обязательное поле'   
   },   
   phone: {   
   required: 'Обязательное поле',   
   number: 'Недопустимый номер',   
   minlength: 'Мин. длина: 6'   
   },   
   email: 'Недопустимый e-mail',   
   message: {   
   required: 'Обязательное поле'   
   }   
   },   
   success: function(label) {   
   label.html('OK').removeClass('error').addClass('ok');   
   setTimeout(function(){   
   label.fadeOut(500);   
   }, 2000)   
   }   
   });   
     
});


 
Message


Отличная контактная форма для обратной связи, думаю вам подойдёт

Установка:

Разметка HTML :

<form id="form" class="blocks" action="#" method="post">   
<p>   
<label>Имя:</label>   
<input type="text" class="text" name="name" />   
</p>   
<p>   
<label>Компания:</label>   
<input type="text" class="text" name="company" />   
</p>   
<p>   
<label>Ваш e-mail:</label>   
<input type="text" class="text" name="email" />   
</p>   
<p>   
<label>Телефон:</label>   
<input type="text" class="text" name="phone" />   
</p>   
<p class="area">   
<label>Сообщение:</label>   
<textarea class="textarea" name="message"></textarea>   
</p>   
<p>   
<label> </label>   
<input type="submit" class="btn" value="Отправить" />   
</p>   
   </form>


Добавить в CSS :

.blocks p {   
margin-bottom:15px;   
position:relative;   
}   
     
.btn {   
display:block;   
float:left;   
height:31px;   
line-height:31px;   
padding:0 10px;   
background:url(/images/bgbtn.jpg) repeat-x;   
color:#565e62;   
font-weight:bold;   
font-size:11px;   
border:1px solid #e1e0df;   
outline:none;   
}   
     
.text,   
.textarea {   
padding:5px 10px;   
height:27px;   
border:1px solid #ddd;   
color:#333;   
background:url(/images/bginput.jpg) repeat-x bottom #fff;   
position:relative;   
z-index:2;   
}   
     
.text {   
width:220px;   
}   
     
.textarea {   
height:150px;   
width:350px;   
}   
     
.blocks label {   
float:left;   
width:100px;   
line-height:37px;   
text-align:right;   
margin-right:15px;   
font-weight:bold;   
color:#666;   
}   
     
.blocks label.error,   
.blocks label.ok {   
position:absolute;   
z-index:1;   
top:-4px;   
left:110px;   
padding:5px 15px 5px 280px;   
     
/* Reseting previous label values */   
width:auto;   
text-align:left;   
margin:0;   
background-repeat:no-repeat;   
background-position:257px 16px;   
}   
     
.blocks label.ok {   
background-image:url(/images/icook.gif);   
background-color:#deefca;   
color:#577530;   
}   
     
.blocks label.error {   
background-image:url(/images/icofail.gif);   
background-color:#f5d6d7;   
color:#c81925;   
}   
     
.area label.ok,   
.area label.error {   
height:163px;   
padding-left:410px;   
background-position:387px 16px;   
}   
     
/* CSS3 */   
.btn, .text, .textarea, .blocks label.error, .blocks label.ok {   
-moz-border-radius:8px;   
-webkit-border-radius:8px;   
border-radius:8px;   
}

jQuery :   
Выделить всё
$(function(){   
     
   $("#form").validate({   
   rules: {   
   name: {   
   required: true,   
   minlength: 3   
   },   
   company: {   
   required: true   
   },   
   phone: {   
   required: true,   
   number: true,   
   minlength: 6   
   },   
   email: {   
   required: true,   
   email: true   
   },   
   message: {   
   required: true   
   }   
   },   
   messages: {   
   name: {   
   required: 'Обязательное поле',   
   minlength: 'Мин. длина: 3'   
   },   
   company: {   
   required: 'Обязательное поле'   
   },   
   phone: {   
   required: 'Обязательное поле',   
   number: 'Недопустимый номер',   
   minlength: 'Мин. длина: 6'   
   },   
   email: 'Недопустимый e-mail',   
   message: {   
   required: 'Обязательное поле'   
   }   
   },   
   success: function(label) {   
   label.html('OK').removeClass('error').addClass('ok');   
   setTimeout(function(){   
   label.fadeOut(500);   
   }, 2000)   
   }   
   });   
     
});

Author - Adi
Date Added - 2012-12-27 в 0:00 AM
UcozBaze All Scripts And Templates » Scripts and Coding » Other » Контактная форма на jQuery для Ucoz (Контактная форма на jQuery для Ucoz)
  • Page 1 of 1
  • 1
Search:
                                                               
Statistics Forum
New Posts Popular topic Top Forum Users New User

type list papuošalai: pirkti pagamintus ar užsisakyti individualiai (0)
type list valiklių vežimėlis (0)
type list vonios sprendimai (0)
type list šiluma ir šaltis namuose (0)
type list biuro popierius (0)
type list kokiomis kaldromis miegate (0)
type list power bank įkroviklis (0)
type list vaikams pagalvės (0)
type list vartų automatika (0)
type list geriausi pirkiniai (0)
type list ekologiški, tvarūs daiktai kasdienai (0)
type list stovykla Lietuvoje (0)
type list namų apsauga (0)
type list šilumos siurblys oras vanduo (0)
type list powerbank išorinė baterija (0)
type list automobilių numelio rėmeliai (0)
type list pensijų pakopos (0)

type list Skaiciuojam nuo 1 iki 1000 ! (558)
type list Forum SignatureBar (60)
type list Avatars (23)
type list Juokingos Fotkes :) (19)
type list Kaip pakeisti paveiksla mazas? (19)
type list Mini-Chatas islendantis is sono ucoz (15)
type list Mp3-Tau.do.am (13)
type list Шаблон форума для ucoz For-css (12)
type list Apklausa Jūsų Svetainei New ucoz (11)
type list Ucoz script - favicon (11)
type list Megsti samp? Ateik cia (10)
type list Button scrolling up ucoz (10)
type list Slider KinoPlius Help to setup :) (10)
type list Money for the forum ucoz (9)
type list KinoPlius (9)
type list Puslapis "Atliekami techniniai darbai" Ucoz scriptas (9)
type list SexMergytes.do.am (9)
type list 11.17.2011 (9)
type list User personal Page ucoz (8)
interout
Forum Posts: 1027
Comments: 51
Reputation: 83
Rank:
GoblinaS
Forum Posts: 380
Comments: 15
Reputation: 25
Rank:
Adi
Forum Posts: 179
Comments: 11
Reputation: 23
Rank:
Esquire
Forum Posts: 147
Comments: 8
Reputation: 5
Rank:
BAtman
Forum Posts: 129
Comments: 1
Reputation: 18
Rank:
WaSHkaZ
Forum Posts: 83
Comments: 0
Reputation: 3
Rank:
Skacikas
Forum Posts: 71
Comments: 0
Reputation: 12
Rank:
meskis
Forum Posts: 51
Comments: 0
Reputation: 25
Rank:
Gytenas
Forum Posts: 51
Comments: 0
Reputation: 1
Rank:
vicka
Forum Posts: 50
Comments: 1
Reputation: 4
Rank:
jokerzvobscure
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
dubroviena008
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
w4bzero
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
infoebrasha
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
karilekamo
Forum Posts: 12
Comments: 0
Reputation: 0
Rank:
zoro
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
pebotapple
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
aressvi
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
eddison_martin3
Forum Posts: 2
Comments: 0
Reputation: 0
Rank:
mariuspijunas
Forum Posts: 20
Comments: 0
Reputation: 0
Rank:


Site design by uCozBaze
uCozBaze © 2011-2016