: PhpBB3 :
- Código:
/*---/ Contador de Caracteres para o título /---*/
#number strong {
width: 200px;
margin-left: 30px;
margin-top: -20px;
}
/*---/ Creditos: 2012 Staffer Group BR /---*/
/*---/ http://staffergroupbr.stuning.net /---*/
- Código:
$(document).ready(function() {
$('#postingbox .inner .fields1 dl dd input[type="text"]').addClass("subject");
});
$(document).ready(function() {
$('.subject').after("<div id='number' style='color: #FF0000; font-size: 10px;'><strong style='width: 32px; display: inline-block;'>10</strong></div>");
});
$(document).ready(function() {
$('.subject').keyup(function(){
var t=this.value.length;
var i=jQuery('#number strong');
if(t<10&&t>0){
var l=t-10;i.html(l*-1);
}
else if(t>9){
i.html('  <i><span style="color: #6fa8dc;">Ok!</span></i>')
}else{i.html('')};
});
});
$(document).ready(function() {
$('.subject').after("<div id='alerta-10' style='font-size: 11px; margin-left: 0px; width: 300px;'><strong style='width: 500px; color: red;'>Atenção:</strong> <strong style='color: black; width: 500px;'>O Número Mínimo de Letras é 10.</strong></div>");
});
Desenvolvido por D'Leandro™ | [F]lames | SGBR™ | SP-Design
Editado e Postado por 2012 © Staffer Group BR™
Editado e Postado por 2012 © Staffer Group BR™