Imagem: acho que não precisa
Fórum: http://staffergroupbr.stuning.net/
JScript escreveu:Ok amigo, obrigado por me informar!
Onde [Tutorial} seria o prefixo do título do tópico.[Tutorial] Adicionar chat staff
;function tagprefixo(){jQuery('input[name=subject]').val(jQuery('select[name=tags4]').val()+jQuery('input[name=subject]').val())};jQuery(document).ready(function(){jQuery('input[onkeypress="if (event.keyCode==13){return false}"]').before('<select name=tags4 onchange=tagprefixo()><option value="">(Sem pré-fixo)</option><option value=[Presentacion]>Presentacion</option><option value=[Download]>Download</option><option value=[Musica]>Musica</option><option value=[Duda]>Duda</option><option value=[Evento]>Evento</option><option value=[Entrega]>Entrega</option><option value=[Pelicula]>Pelicula</option><option value=[Hablar de juegos]>Juegos</option><option value=[Imagen]>Imagen</option><option value=[Noticia]>Noticia</option><option value=[Offtopic]>Offtopic</option><option value=[Pedido]>Pedido</option><option value=[Recado]>Recado</option><option value=[Reglas]>Reglas</option><option value=[Sugerencia]>Sugerencia</option><option value=[Serie online]>Serie online</option><option value=[Tutorial]>Tutorial</option><option value=[Video]>Vídeo</option></select> <img src=http://2img.net/i/fa/wysiwyg/separator.png style=vertical-align:middle> ')});jQuery(document).ready(function(){var mode=jQuery('input[value=reply]').val();if(mode=='reply'){jQuery('select[name=tags4]').css('display','none')}else if(mode=='quote'){jQuery('select[name=tags4]').css('display','none')}});
<script>;function tagprefixo(){jQuery('input[name=subject]').val(jQuery('select[name=tags4]').val()+jQuery('input[name=subject]').val())};jQuery(document).ready(function(){jQuery('input[onkeypress="if (event.keyCode==13){return false}"]').before('<select name=tags4 onchange=tagprefixo()><option value="">(Sem pré-fixo)</option><option value=[Presentacion]>Presentacion</option><option value=[Download]>Download</option><option value=[Musica]>Musica</option><option value=[Duda]>Duda</option><option value=[Evento]>Evento</option><option value=[Entrega]>Entrega</option><option value=[Pelicula]>Pelicula</option><option value=[Hablar de juegos]>Juegos</option><option value=[Imagen]>Imagen</option><option value=[Noticia]>Noticia</option><option value=[Offtopic]>Offtopic</option><option value=[Pedido]>Pedido</option><option value=[Recado]>Recado</option><option value=[Reglas]>Reglas</option><option value=[Sugerencia]>Sugerencia</option><option value=[Serie online]>Serie online</option><option value=[Tutorial]>Tutorial</option><option value=[Video]>Vídeo</option></select> <img src=http://2img.net/i/fa/wysiwyg/separator.png style=vertical-align:middle> ')});jQuery(document).ready(function(){var mode=jQuery('input[value=reply]').val();if(mode=='reply'){jQuery('select[name=tags4]').css('display','none')}else if(mode=='quote'){jQuery('select[name=tags4]').css('display','none')}});</script>
Cʀɑzy escreveu:JScript -> Não existe autor, ou pelo menos, só vejo as pessoas compartilhando o código. Em resumo, um plageia do outro fingindo ser o criador, não há como eu saber qual é.
JScript escreveu:Tranquilo então, o importante é que deixamos os comentários sobre o assunto no tópico!
<script type="text/javascript">
/***
* Sistema de prefixos criado por Legolas
* http://jscript.forumeiros.com/forum
* Não remover os créditos!
*/
function prefixo(o,c){var t=jQuery('input[name="subject"]');t.val(t.val().substring(0,t[0].selectionStart)+o+t.val().substring(t[0].selectionStart,t[0].selectionEnd)+c+t.val().substring(t[0].selectionEnd,t.val().length))};
function escolha(opt) {
switch(opt) {
case 'pref1': prefixo('[Prefixo 1]','');number_of_refresh=0;timer_count=0;break;
case 'pref2': prefixo('[Prefixo 2]','');number_of_refresh=0;timer_count=0;break;
case 'pref3': prefixo('Prefixo 3','');number_of_refresh=0;timer_count=0;break;
}
}
$(document).ready(function(){
$('input[onkeypress="if (event.keyCode==13){return false}"]').before('<select onchange=escolha(this.value)><option value="">Prefixos</option><option value="pref1">Prefixo 1</option><option value="pref2">Prefixo 2</option><option value="pref3">Prefixo 3</option></select>');
});
</script>
<option value="pref1">Prefixo 1</option>
case 'pref1': prefixo('[Prefixo 1]','');number_of_refresh=0;timer_count=0;break;
dl input[name="subject"] {
width: 75%!important;
}
<script type="text/javascript">
/***
* Sistema de prefixos criado por Legolas
* http://jscript.forumeiros.com/forum
* Não remover os créditos!
*/
jQuery(document).ready(function(){
jQuery('[value="Enviar"]').click(function(){
jQuery('input[name="subject"]').val(''+jQuery('#pref').val()+' '+jQuery('[name="subject"]').val()+'');
});
});
jQuery(document).ready(function(){
jQuery('input[onkeypress="if (event.keyCode==13){return false}"]').before('<select id="pref"><option value="">Prefixos</option><option value="[Prefixo 1]">Prefixo 1</option><option value="[Prefixo 2]">Prefixo 2</option><option value="[Prefixo 3]">Prefixo 3</option></select>');
});
</script>