home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 November / PCWorld_2007-11_cd.bin / temacd / imtoodownyoutube / download-youtube-video.exe / preview.xul < prev    next >
Extensible Markup Language  |  2007-07-31  |  7KB  |  180 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?script href="preview.js"?/>
  4. <?include href="playerfileinfos.xul"/>
  5.  
  6. <?include href="preview_about.xul"/>
  7. <?library href="VolumnCtrl.dll"?/>
  8. <?library href="flvplayer.dll"?/>
  9.  
  10. <window id="preview"
  11. width="478"
  12. height="448"
  13. orient="vertical"
  14. align="stretch" 
  15. title="ImTOO FLV Player"
  16. vMargin="0" 
  17. hMargin="0"
  18. center="true"
  19. round="true"
  20. roundx=15
  21. roundy=15
  22. language_prefix="_"
  23. resize="false"
  24. ondropfile="ondropme"
  25. bottomisround=true
  26.  
  27.  
  28.  
  29. >
  30.     <menu id="menupopup" >
  31.                   
  32.                   <item id="play" label="_player_menu_play" enable="false"onclick="playplay"/>
  33.                   <item id="pause" label="_player_menu_pause" enable="false"onclick="playplay"/>
  34.                   <item id="stop" label="_player_menu_stop" enable="false" onclick="playstop"/>
  35.                   <item type="separator"/>
  36.                   <item id="size" label="_player_menu_fullscr" enable="true"onclick="onsize"/>
  37.                   <item type="separator"/>
  38.                   <item id="exit" label="_player_menu_exit" enable="true"  onclick="preview_close"/>
  39.                   
  40.     </menu>
  41.  
  42. <titlebar id="previewtitlebar" transparent="true" image="titlebar.png" height="30" orient="horizontal" align="top" fillmode="1"  vMargin="1" 
  43.     hMargin="0" >
  44.    <spacer width="10"/>
  45.              <vbox height=30>
  46.                     <spacer height=5/>
  47.                     <static background-image="player.png" 
  48.                     height="16" width="16" align=top
  49.                     transparent="true" sizetoimage="true" />
  50.             </vbox>
  51.             <spacer width=10/>
  52.     <vbox height=30>
  53.         <spacer height=1/>
  54.         <static label="ImTOO FLV Player" width="368" align="top" text-align=left transparent="true" font-color="RGB(0,0,0)" font-size=14 font-family=Tahoma font-bold="true"/>
  55.     </vbox>
  56.     <vbox height=30>
  57.         <spacer height=6/>
  58.         <button image="window_min.png" align="top" transparent="true" height=20 width=20" enable="true" onclick="preview.Minimize()"/>
  59.     </vbox>
  60.     <vbox height=30>
  61.         <spacer height=6/>
  62.         <button image="window_max.png" align="top" transparent="true" enable="false" height=20 width=20 onclick="preview.Maximize()"/>
  63.     </vbox>
  64.     <vbox height=30>
  65.         <spacer height=6/>
  66.         <button image="window_close.png"   transparent="true" height=20 width=20 align="top" onclick="preview_close"/>
  67.     </vbox>
  68.     <spacer width="10" align="right"/>
  69. </titlebar>
  70.  
  71.  <panel image="background_sub.png"  align="stretch" transparent="true"  vMargin="0" hMargin="0">
  72.  <panel image="player-background.png"  align="stretch" vMargin="0">
  73.  <panel   height="25" transparent="true"  orient="horizontal" align="top" image=""  >
  74.  <spacer width="8" align="left"/>
  75.      <menubar  orient="horizontal" align="top" width="450" height="25" font-size="12"  transparent="true" >
  76.      <menu  label="_player_menu_file">
  77.          <item id="menuofopenfile" label="_player_menu_openfile" onclick="showdir1"/>
  78.          <item id="menuoffileinfo"   label="_player_menu_fileinfo" enable="false"  onclick="getfileinfos(playerpath)"/> 
  79.          <item type="separator"/>
  80.          <item id="menuofexit"   label="_player_menu_exit"   onclick="preview_close"/>
  81.      </menu>
  82.  
  83.      <menu  label="_player_menu_view" >
  84.          <item id="menuofplay" label="_player_menu_play" onclick="playplay" enable="false"/>
  85.          <item id="menuofpause" label="_player_menu_pause" onclick="playplay" enable="false"/>
  86.          <item id="menuofstop" label="_player_menu_stop" onclick="playstop" enable="false" /> 
  87.          <item type="separator"/>
  88.          <item id="menuoffullscreen" label="_player_menu_fullscr" enable="false" onclick="onsize"/>
  89.         
  90.      </menu>
  91.  
  92.      <menu id="tools" label="_flvmain_menu_tools" >
  93.          <menu id="language" label="_flvmain_menu_language" >
  94.              <item id="english" label="_flvmain_menu_eng" width=400 transparent=true onclick="changeenglish"/>
  95.              <item id="chinese" label="_flvmain_menu_chs" width=400 transparent=true onclick="changechinese"/>
  96.              <item id="german"  label="_flvmain_menu_deu" width=400 transparent=true  onclick="changegerman"/>
  97.              <item id="japanese" label="_flvmain_menu_jpn" width=400 transparent=true onclick="changejapan"/>
  98.          </menu>
  99.          <menu id="skin" label="_flvmain_menu_change_skin">
  100.              <item id="newskin" label="_flvmain_menu_skin_red" onclick="changenewskin"/>
  101.              <item id="greenskin" label="_flvmain_menu_skin_green" onclick="changegreen"/>
  102.          </menu>
  103.      </menu>
  104.      
  105.          <menu id="" label="_player_menu_help">
  106.              <item id="menuofabouthelp" label="_player_menu_about" onclick="showpreview_about"/>
  107.          </menu>
  108.      </menubar>
  109.      </panel>
  110.  
  111. <spacer height=5/>
  112. <hbox>
  113. <panel style="" align="center" width="446" height="346" transparent="true"  >
  114. <flvplayer id=player1 background-image="black.png"  align="stretch" width=386 height=342 onrightclick="rclick" ondoubleclick="doubleclick"/>
  115.  
  116. </panel>
  117. </hbox>
  118.  
  119. <hbox height=28  vMargin="0" hMargin="0"  align=top>
  120.  
  121. <spacer width="12" align="left"/>
  122. <vbox height=28 >
  123. <button id="play111" image="player-play.png" label=""  align=center tooltip-text="_player_btn_tooltip_play" width="25" height="19" enable="false"  onclick="playplay"/>
  124. </vbox>
  125.  
  126. <spacer width=4/>
  127. <vbox height=28>
  128. <button id="playstop" image="player-stop.png" label="" align=center tooltip-text="_player_btn_tooltip_stop" width="25" height=19  enable="false"  onclick="playstop()"/>
  129. </vbox>
  130. <spacer width=8/>
  131.  
  132.     <vbox height=28>
  133.         <static background-image="getiao.png" width=1 height=13 align=center transparent=true/>
  134.     </vbox>
  135.     <spacer width=3/>
  136.     <vbox height=28>
  137.     <static id="curplay" width="50" align="center"  transparent="true"/>
  138.     </vbox>
  139. <spacer width=6/>
  140.     <vbox height=28>
  141.     <!--
  142.     <sliderctrlv2 id="slider1"  align="center"  border="false" width=190 height="20"  thumb-image="sliderblock.png" 
  143.                              channel-image="player-ProgressBar.png"  onchange="SliderChange" />
  144.     -->
  145.     
  146.     <VolumnCtrl id=slider1 width=190 height=20 background-image="player-ProgressBar.png" foreground-image="player-ProgressFore.png" 
  147.     align="center" thumb-image="player-SliderBlock.png" onchange="SliderChange"/>
  148.     
  149.     </vbox>
  150.     <spacer width=6/>
  151.     <vbox height=28>
  152.         <static id="totalplay" width="50" align="center" transparent="true"/>
  153.     </vbox>
  154.     
  155.     <vbox height=28>
  156.         <static background-image="getiao.png" width=1 height=13 align=center transparent=true/>
  157.     </vbox>
  158.     <spacer width=3/>
  159.     
  160.     <spacer width=8/>
  161.         <vbox height=28 hMargin=0 vMargin=0 >
  162.         <button  id="volume"  label="" tooltip-text=""  align="center"    image="volume.png" width=18 height=16  transparent="true" enable="false" onclick="openvolume"/>
  163.     </vbox>
  164.     
  165.     <spacer width=5/>
  166.     <vbox height=28>
  167.         <VolumnCtrl id=v1 background-image="vol-capacity-nor.png" foreground-image="vol-capacity-max.png" align="center" 
  168.         thumb-image="vol-sliderblock.png" height=14 width=41  onchange="changevolume"/>
  169.         
  170.     </vbox>
  171.  
  172.  
  173. </hbox>
  174.  
  175.  
  176. </panel>    
  177. <static id="" align="bottom" height=2/>        
  178. </panel>                    
  179.  
  180. </window>