Changeset 14082


Ignore:
Timestamp:
05/18/07 12:19:00 (14 years ago)
Author:
lh92
Message:

change the width of the book application to be variable to the size of the window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/macros/document.dm

    r14072 r14082  
    198198 <script type="text/javascript">
    199199 //get the height and width of the window
    200  var myWidth = 0, myHeight = 0;
     200 var myWidth2 = 0, myHeight = 0;
    201201 if (typeof(window.innerWidth) == 'number')
    202202 \{
    203203    //Non-IE
    204     myWidth = window.innerWidth;
     204    myWidth2 = window.innerWidth;
    205205    myHeight = window.innerHeight;
    206206 \}
     
    208208 \{
    209209    //IE 6+ in 'standards compliant mode'
    210     myWidth = document.documentElement.clientWidth;
     210    myWidth2 = document.documentElement.clientWidth;
    211211    myHeight = document.documentElement.clientHeight;
    212212 \}
     
    214214 \{
    215215    //IE 4 compatible
    216     myWidth = document.body.clientWidth;
     216    myWidth2 = document.body.clientWidth;
    217217    myHeight = document.body.clientHeight;
    218218 \}
     219 
     220 var myWidth = "100%";
     221 myHeight = 800;
    219222 
    220223 var img_cover = '_httpcollimg_/_thisOID_/cover.jpg';
    221224 var doc_url = document.URL;
    222225 doc_url = doc_url.replace(/(&|\\?)book=[a-z]+/gi,'');
    223  doc_url += '&book=flashxml';
    224 
     226 doc_url += '&book=flashxml'; 
     227 
    225228 var flash_plug_html = "";
    226229 flash_plug_html += '<OBJECT align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" \\n';
     
    232235
    233236 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';
    235238 flash_plug_html += '?src_image=' + escape(img_cover);
    236239 flash_plug_html += '&doc_url=' + escape(doc_url);
Note: See TracChangeset for help on using the changeset viewer.