Olá, eu queria esse efeito com a caixinha na hora que clica no botão mover apareça então veja o vídeo são três efeitos mais por enquanto vou querer só um depois passo por outro.
Por que eu fiz video? por que vocês não entende em imagens.
Definitvamente nós entendemos sim com imagens, mas é necessário ter uma soma de imagens com a explicação do usuário!Davisnatsu escreveu:Por que eu fiz video? por que vocês não entende em imagens.
$(document).ready(function() {
var forumId = $('.pathname-box a:last').attr('href').substr(2,2).replace("-", "");
var optMove = $('select[name="selected_id"]').html();
$('form[action="/viewforum"]').before('<form action="/modcp?tid=" id="mover" method="post" class="frm-form" style="background: none !important;">
Mover para o fórum<br>
<select name="new_forum"></select>
<input class="button2" type="submit" name="confirm" value="Mover"/><br>
Tópico Fantasma:
<input name="move_leave_shadow" type="checkbox"/>
<input type="hidden" name="tid" value=""/>
<input type="hidden" name="mode" value="move"/>
<input type="hidden" name="f" value="'+forumId+'"/>
<input type="hidden" name="t" value="'+$('input[name="t"]').attr('value')+'"/>
</form>');
html = jQuery('input[name="tid"]:eq(0)').val();
$('input[name="tid"]').val(html);
$('form#mover').attr('action','/modcp?tid='+html+'');
$('select[name="new_forum"]').html(optMove);
$('#mover').hide();
$('.right a img[alt="alt="Mover este tópico"]').click(function(){
$('#mover').slideToggle();
});
});
Aqui está o fórumLegolas escreveu:Poderia dizer onde viu este efeito?
Finalizado! Aqui está:Crazy escreveu:Devido ao novo horário da escola, não poderei lhe entregar de manha, desculpe!
/*
* Mover ajax /tópico - Deu trabalho!!!
* Version: 4.11.2013 -
* Made and Optimizations by Crazy - 2013/11/04
* View more in: http://jscript.forumeiros.com/forum
* Copyright (c) 2013 Crazy - crazybrasil live dot com
* This work is free. You can redistribute it and/or modify it
* under the terms of the WTFPL, Version 2
*/
$(document).ready(function(){
$('.options a img[alt="Mover este tópico"]').click(function( event ){
event.preventDefault();
$('#mover').slideToggle();
});
if($('.post-options .i_icon_ip').length){
var forumId = $('.crumbs a:eq(2)').attr('href').substr(2,2).replace("-", "");
var optMove = $('select[name="selected_id"]').html();
$('#main-content > .main.paged .paged-foot').before('<form action="/modcp?tid=" id="mover" method="post" class="frm-form" style="background: none !important;display:none;float: right">
Mover para o fórum<br />
<select name="new_forum"></select>
<input style="border: 1px solid black;" type="submit" name="confirm" value="Mover"/>
<br />Tópico Fantasma:<input name="move_leave_shadow" type="checkbox" />
<input type="hidden" name="tid" value=""/>
<input type="hidden" name="mode" value="move"/>
<input type="hidden" name="f" value="'+forumId+'"/>
<input type="hidden" name="t" value="'+$('input[name="t"]').attr('value')+'"/>
</form>');
html = $('input[name="tid"]:eq(0)').val();
$('input[name="tid"]').val(html);
$('form#mover').attr('action','/modcp?tid='+html+'');
$('select[name="new_forum"]').html(optMove);
}
});
function envia(){
if($('#text_editor_textarea').val() == ""){
var pegatopics = $('[name="t"]').val();
$('[name="t"]').val(pegatopics);
$('[name="message"]').sceditor('instance').insertText($('.sceditor-container iframe').val()+'
+$("#status").val()+
'+$('#mot').val()+'
'+$('#to').val());
}}
function block(){
if($('#text_editor_textarea').val() == ""){
var pegatopics = $('[name="t"]').val();
$('[name="t"]').val(pegatopics);
$('[name="message"]').sceditor('instance').insertText($('.sceditor-container iframe').val()+'
+$("#status").val()+
'+$('#mot').val()+'
'+$('#to').val());
window.open('/modcp?t='+pegatopics+'&mode=move&mode=lock');
$( "#mover" ).hide();
$( '.options a img[alt="Mover este tópico"]' ).click(function(){
$( "#mover" ).slideToggle();
$( '.options a img[alt="Mover este tópico"]' ).attr('href', '#');
});
}}