Mercurial > hg > digilib-old
comparison client/digitallibrary/navigation.js @ 199:21789f3f7251
Corrected Problems with innerWidth and about:blank for Safari.
author | robcast |
---|---|
date | Wed, 14 Jan 2004 12:06:53 +0100 |
parents | 28f96364040f |
children | 7349d58cd391 |
comparison
equal
deleted
inserted
replaced
198:d6a3b6aaa203 | 199:21789f3f7251 |
---|---|
116 } | 116 } |
117 } | 117 } |
118 | 118 |
119 } | 119 } |
120 | 120 |
121 if ( document.body ) { | 121 // window size |
122 queryString += "&dw=" + (document.body.clientWidth-30) + "&dh=" + (document.body.clientHeight-30); | 122 var wwidth, wheight; |
123 } else { | 123 if (self.innerHeight) // all except Explorer |
124 queryString += "&dw=" + (innerWidth-30) + "&dh=" + (innerHeight-30); | 124 { |
125 } | 125 wwidth = self.innerWidth; |
126 wheight = self.innerHeight; | |
127 } | |
128 else if (document.documentElement && document.documentElement.clientHeight) | |
129 // Explorer 6 Strict Mode | |
130 { | |
131 wwidth = document.documentElement.clientWidth; | |
132 wheight = document.documentElement.clientHeight; | |
133 } | |
134 else if (document.body) // other Explorers | |
135 { | |
136 wwidth = document.body.clientWidth; | |
137 wheight = document.body.clientHeight; | |
138 } | |
139 queryString += "&dw=" + (wwidth-30) + "&dh=" + (wheight-30); | |
126 | 140 |
127 queryString += "&lv=1"; | 141 queryString += "&lv=1"; |
128 | 142 |
129 queryString = queryString.slice(1); | 143 queryString = queryString.slice(1); |
130 | 144 |