equal
deleted
inserted
replaced
450 object.MozOpacity = (opacity / 100); |
450 object.MozOpacity = (opacity / 100); |
451 object.KhtmlOpacity = (opacity / 100); |
451 object.KhtmlOpacity = (opacity / 100); |
452 object.filter = "alpha(opacity=" + opacity + ")"; |
452 object.filter = "alpha(opacity=" + opacity + ")"; |
453 } |
453 } |
454 |
454 |
455 function getScrollOffset() |
455 function getScrollOffset(el) |
456 { |
456 { |
457 var position; |
457 var position; |
458 if (self.pageYOffset) |
458 var s = el || self; |
|
459 el = el || document; |
|
460 if ( el.scrollTop ) |
|
461 { |
|
462 position = el.scrollTop; |
|
463 } |
|
464 else if (s.pageYOffset) |
459 { |
465 { |
460 position = self.pageYOffset; |
466 position = self.pageYOffset; |
461 } |
467 } |
462 else if (document.documentElement && document.documentElement.scrollTop) |
468 else if (document.documentElement && document.documentElement.scrollTop) |
463 { |
469 { |