[thelist] Javascript for 'to top' if page is long, otherwise not

VOLKAN ÖZÇELİK volkan.ozcelik at gmail.com
Fri Nov 18 12:00:41 CST 2005


You may use something that takes the scroll offset on window's onscroll.

If scrollTop is a positive number -> display the link
else -> hide the link.

I think Opera does not have support for window.onscroll -- not quite
sure though.

HTH,
--
Volkan Ozcelik
+>Yep! I'm blogging! : http://www.volkanozcelik.com/volkanozcelik/blog/
+> My projects/studies/trials/errors : http://www.sarmal.com/



More information about the thelist mailing list