Changeset 14082
- Timestamp:
- 2007-05-18T12:19:00+12:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/macros/document.dm
r14072 r14082 198 198 <script type="text/javascript"> 199 199 //get the height and width of the window 200 var myWidth = 0, myHeight = 0;200 var myWidth2 = 0, myHeight = 0; 201 201 if (typeof(window.innerWidth) == 'number') 202 202 \{ 203 203 //Non-IE 204 myWidth = window.innerWidth;204 myWidth2 = window.innerWidth; 205 205 myHeight = window.innerHeight; 206 206 \} … … 208 208 \{ 209 209 //IE 6+ in 'standards compliant mode' 210 myWidth = document.documentElement.clientWidth;210 myWidth2 = document.documentElement.clientWidth; 211 211 myHeight = document.documentElement.clientHeight; 212 212 \} … … 214 214 \{ 215 215 //IE 4 compatible 216 myWidth = document.body.clientWidth;216 myWidth2 = document.body.clientWidth; 217 217 myHeight = document.body.clientHeight; 218 218 \} 219 220 var myWidth = "100%"; 221 myHeight = 800; 219 222 220 223 var img_cover = '_httpcollimg_/_thisOID_/cover.jpg'; 221 224 var doc_url = document.URL; 222 225 doc_url = doc_url.replace(/(&|\\?)book=[a-z]+/gi,''); 223 doc_url += '&book=flashxml'; 224 226 doc_url += '&book=flashxml'; 227 225 228 var flash_plug_html = ""; 226 229 flash_plug_html += '<OBJECT align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" \\n'; … … 232 235 233 236 flash_plug_html += ' <PARAM name="allowScriptAccess" value="always" />\\n'; 234 flash_plug_html += ' <PARAM name="movie" value=" http://www.nzdl.org_httpimg_/Book.swf';237 flash_plug_html += ' <PARAM name="movie" value="_httpimg_/Book.swf'; 235 238 flash_plug_html += '?src_image=' + escape(img_cover); 236 239 flash_plug_html += '&doc_url=' + escape(doc_url);
Note:
See TracChangeset
for help on using the changeset viewer.