Here is a JavaScript. This is working good in chrome but not working in Firefox and IE when it is inside blogger
if (document.body.scrollTop > 5) {
var header = document.getElementsByClassName("header")[0];
header.className = "header down"
}
and i have also trie it
if (document.getElementsByTagName('body')[0].scrollTop > 5) {
var header = document.getElementsByClassName("header")[0];
header.className = "header down"
}
Please tell how it will work in Firefox and IE. Please only JavaScript and No J Query.