span.scrolled
Defines CSS properties for the span tag with class "scrolled". It is inserted in the jQuery code: <span class="scrolled">
.scroll() is a jQuery browser event.
pritaeas
Posting Prodigy
9,317 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,467
Skill Endorsements: 86
hello,
the second question is the quickest to answer...Yes scroll is a standard jquery event. http://api.jquery.com/category/events/
First question...
What is happening here is when you move the scroll bar within the div with the ID of "news", the jquery scroll event triggers and the funtion $('#header'.append(.....) will exectute. If you look at that function, it appends the span element with a class called "scrolled" to the HTML element with an ID of "header". If we look in the CSS, it changes the background color to red.
JorgeM
Industrious Poster
4,028 posts since Dec 2011
Reputation Points: 297
Solved Threads: 549
Skill Endorsements: 115