top



how can I add to my forum croll to top no back to top ????

That would require jQuey to do the job.

Code:
<script type='text/javascript'>
$("a.totop").click(function(){
    $("html, body").animate({scrollTop: "0px"}, "slow");
    return false;
});
</script>
This should do the trick. You can always change the class a.totop to anything else that you want for your class, something CSS like. Wink

has not entering foto??

Here's a full code, with the jQuery root file from the jQuery site, http://jquery.com.

Code:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.js"></script>
<script type='text/javascript'>
$("a.gotop").click(function(){
    $("html, body").animate({scrollTop: "0px"}, "slow");
    return false;
});
</script>
<a href="#" class="gotop"><img class="gotop" src="http://png-4.findicons.com/files/icons/1688/web_blog/48/arrow_up.png" /></a>
It should be working.

I think Japorized's code has some errors here. Here's your new jQuery:

Code:
jQuery(document).ready(function() { // Not run before document is loaded
  jQuery('a.gotop').click(function() { // When an link with the class gotop is clicked
    jQuery('html, body').animate({scrollTop:0}, 'slow'); // Animates
  }); // Click end
}); // Ready end

Why would you set an class to the image too when the class so clearly is marked as an link? wow!

@Evil: Whoops... Silly me for not noticing that I missed out the $(document).ready(function() { part...

And what was your last sentence about? I'm sorry but some of your articles are used incorrectly and that made me blur. Razz

Japorized wrote:@Evil: Whoops... Silly me for not noticing that I missed out the $(document).ready(function() { part...

yeah,if you dont use it it will mess things up.