﻿// JScript 文件

  function showFlash()
  {
  
  document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='778' height='185'>\n");
              document.write(" <param name='movie' value='ass/xg.swf' />\n");
              document.write(" <param name='quality' value='high' />\n");
              document.write(" <param name='wmode' value='transparent' />");
              document.write("<embed src='ass/xg.swf' width='778' height='185'  pluginspage='http://www.macromedia.com/go/getflashplayer' ></embed>\n");
  document.write("</object>");
  
  }
  
   function DisplayFlash(w,h,name)
  {
  
  document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='" + w + "' height='"+ h +"'>\n");
              document.write(" <param name='movie' value='"+ name +"' />\n");
              document.write(" <param name='quality' value='high' />\n");
              document.write(" <param name='wmode' value='transparent' />");
              document.write("<embed src='"+ name +"' width='"+ w +"' height='"+ h +"'  pluginspage='http://www.macromedia.com/go/getflashplayer' ></embed>\n");
  document.write("</object>");
  
  } 


 function Flash( name,w,h)
 {
            document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0'  width='" + w +"'  height='" + h +"'> \n  ");
            
            document.write(" <param name='movie' value='"+ name +"' />\n");

            document.write(" <param name='quality' value='high' />\n");
            
            document.write(" <param name='wmode' value='transparent' />");

            document.write("<embed src='"+ name + "'   width='"+ w +"'   height='"+ h +"'   quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' ");
            
            document.write("</embed></object>\n");
  }
  
  function NewsFlash(focus_width,focus_height,pics,links,texts)
  {
     //设置FLASH在页面的宽度
    //int focus_width = 170;
   
     //设置FLASH在页面的高度
    //int focus_height = 164;

    //设置FLASH新闻标题内容的高度
    var text_height = 20;
   
    var swf_height = focus_height + text_height;

     document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'  width='" +focus_width +"'   height='" + swf_height + "'   align='left'   hspace='0'> ");

    document.write("<param name='allowScriptAccess'  value='sameDomain'><param name='movie'  value='ass\\pixviewer.swf'> ");

    document.write("<param name='quality'  value='high'><param name='bgcolor'  value='#F0F0F0'> ");

    document.write("<param name='menu'  value='false'><param name=wmode value='opaque'> ");

    document.write("<param name='FlashVars'  value='pics="+ pics +"&links="+ links +"&texts="+texts +"&borderwidth="+ focus_width +"&borderheight="+ focus_height +"&textheight="+ text_height +"'>");

    document.write("<embed src='ass\\pixviewer.swf'  wmode='opaque'   FlashVars='pics="+ pics +"&links="+ links +"&texts="+ texts +"&borderwidth="+ focus_width +"&borderheight=" + focus_height +"&textheight=" + text_height +"'   menu='false'  bgcolor='#F0F0F0'  quality='high'  width='" + focus_width +"'  height='" + swf_height +"'   allowScriptAccess='sameDomain'  type='application/x-shockwave-flash'  pluginspage='http://www.macromedia.com/go/getflashplayer'  />");

    document.write("</object>");
  }
