i would like to have a script where you click the reply button and it scrolls you down to reply in the quick reply. Is there any scripts?
Thank you
Thank you
Last edited by teliosmetonma1 on December 22nd 2018, 11:25 am; edited 1 time in total
 Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
It does what he wants yes but he only wants the autoscroll to the editor. Not the autopost with ajax.Draxion wrote:The code I gave you does that function. I use it myself.
 Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
<a href="{U_POST_REPLY_TOPIC}" ><img src="{REPLY_IMG}" class="i_reply" alt="{L_POST_REPLY_TOPIC}" /></a>
<a href="#scroll-down" ><img src="{REPLY_IMG}" class="i_reply" alt="{L_POST_REPLY_TOPIC}" /></a>
<a name="quickreply"></a>
{QUICK_REPLY_FORM}
<a id="scroll-down" name="quickreply"></a>
{QUICK_REPLY_FORM}
$(function(){
$('a[href*="mode=reply"]').attr({'id':'pressButton','href':'#'});
$("a#pressButton").click(function() {
$('html,body').animate({
scrollTop: $("form#quick_reply").offset().top},
'slow');
});
});
 Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
Problem solved & topic archived.
|