Forum Moderators: open

Message Too Old, No Replies

Text fading in and out

         

soccer1970

11:05 pm on Feb 2, 2010 (gmt 0)

10+ Year Member



How do I make text fade in and out like this:

<snipped url>

(scroll down a little)

element.fadeOut() does not seem to be valid javascript when I try it, but it works on this page. What am I missing?

[edited by: whoisgregg at 11:49 pm (utc) on Feb. 2, 2010]
[edit reason] Whoops, no URLs please. See TOS [webmasterworld.com] :) [/edit]

whoisgregg

11:52 pm on Feb 2, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you find a function in another site that doesn't work on your site, they're probably including additional scripts that define that function. Look for <script> tags with an src="" attribute and value to look at the source code of included scripts.

Particularly for special effects, they're probably using one of the big effects libraries out there like Prototype & Scriptaculous, mooTools, or jQuery.

soccer1970

2:00 pm on Feb 3, 2010 (gmt 0)

10+ Year Member



Thanks! Looks like it's jquery. I was hoping it was built-in to javascript, somehow.