@@ -13,10 +13,6 @@ ThreeOhScroll.pc = navigator.platform == "Win32"
13
13
// you set the number of pixels that the desc tag will be permanently.
14
14
ThreeOhScroll . ie4pcDescWidth = 100
15
15
16
- // i have no idea why this number is necessary, it just is. it is related to how far the scroller is from the top of the window
17
- // in mozilla, but you will have to play with it to get it just right.
18
- ThreeOhScroll . mozAdjust = ThreeOhScroll . mo5 ? 75 : 0
19
-
20
16
// this is how long it should take the scroller to animate when the user clicks a marker (in milliseconds)
21
17
ThreeOhScroll . aniLen = 250
22
18
@@ -32,13 +28,13 @@ function ThreeOhScroll(id)
32
28
this . clipH = parseInt ( this . container . style . height )
33
29
this . PTags = ypGetDescendantsByTagName ( "P" , this . content )
34
30
var lastP = this . PTags [ this . PTags . length - 1 ]
35
- var lastPTop = lastP . offsetTop - ThreeOhScroll . mozAdjust
31
+ var lastPTop = lastP . offsetTop ;
36
32
this . docH = lastPTop + Math . max ( lastP . offsetHeight , this . clipH )
37
33
this . scrollH = this . docH - this . clipH
38
34
this . markersMax = parseInt ( this . markers . style . height ) - 7
39
35
this . thumbMax = parseInt ( this . thumbContainer . style . height ) - this . thumbImg . height
40
36
this . arrowMax = parseInt ( this . arrowContainer . style . height ) - this . arrowImg . height
41
-
37
+
42
38
this . gRef = "ThreeOhScroll_" + id
43
39
eval ( this . gRef + "=this" )
44
40
this . thumb . obj = this
@@ -57,14 +53,14 @@ ThreeOhScroll.prototype.initMarkers = function() {
57
53
var shtml = "" , sTitle , iTop
58
54
for ( var i = 0 ; i < this . PTags . length ; i ++ ) {
59
55
sTitle = this . PTags [ i ] . getAttribute ( "description" )
60
- pTop = this . PTags [ i ] . offsetTop - ThreeOhScroll . mozAdjust
56
+ pTop = this . PTags [ i ] . offsetTop ;
61
57
iTop = Math . round ( pTop * this . markersMax / this . scrollH )
62
58
if ( sTitle && sTitle != "" && sTitle != null ) {
63
59
shtml += "<div id='" + this . id + "_marker_" + i + "' "
64
60
shtml += "style='position:absolute; left:2px; top:" + ( iTop + 2 ) + "px; "
65
61
shtml += "width:5px; height:3px; clip:rect(0 5 3 0); background-color:#CCCCCC; z-index:3;'></div>"
66
62
shtml += "<div style='position:absolute; left:0px; top:" + iTop + "px; "
67
- shtml += "cursor:pointer; cursor:hand; width:9px; height:7px; clip:rect(0 9 7 0); z-index:4;' "
63
+ shtml += "cursor:pointer; cursor:hand; width:9px; height:7px; clip:rect(0 9 7 0); z-index:4;' "
68
64
shtml += "onmousedown='" + this . gRef + ".scrollTo(" + pTop + ")' "
69
65
shtml += "onmouseover='" + this . gRef + ".toggleMarker(this, " + i + ", 1)' "
70
66
shtml += "onmouseout='" + this . gRef + ".toggleMarker(this, " + i + ", 0)' "
0 commit comments