<META NAME="GENERATOR" http-equiv="Content-Type" CONTENT="text/javascript;charset=gb2312">



<script type="text/javascript">  
//------------------------------窗口函数---------------------------------------------
var VoiceObj = new ActiveXObject("Sapi.SpVoice");// 调用语音库--------------------------

while (true) {   
    try {   
    var w = 800, h = 605;   
        window.resizeTo(w, h);   
        window.moveTo((window.screen.width - w) / 2, (window.screen.height - h) / 3);   
        break;   
    } catch (e) { continue; }   
} 
//------------------------------窗口函数---------------------------------------------  
</script>  

<script type="text/javascript">//=================================================兼容win7、vasta系统
　　// 获取 Windows 版本
　　function GetSystemVersion()
　　{
　　var os = GetObject("winmgmts:").InstancesOf("Win32_OperatingSystem");
　　for(var e = new Enumerator(os); !e.atEnd(); e.moveNext())
　　{
　　var v = e.item().Version;
　　var ss = v.split('.');
　　return ss[0] + ss[1];
　　}
　　return -1;
　　}
　　// 判断是否是 vista 或以上版本系统
　　if (GetSystemVersion() >= 60)
　　{
　　var cmd = location.pathname;
　　if (cmd.substring(cmd.length-4) != ".HTA") // 通过扩展名的大小写，来区分第几次运行 hta
　　{
　　var Shell = new ActiveXObject("Shell.Application");
　　// 以 runas 方式重新启动该 hta
　　Shell.ShellExecute ("mshta.exe", "\"" + cmd.substring(0, cmd.length-4) + ".HTA\"", "", "runas", 1);
　　// 退出当前 hta
　　window.close();
　　exit(0);
　　}
　　}//=================================================兼容win7、vasta系统
　　</script>



<head>

　　<hta:application ID="oHTA" 
border="none"
maximizebutton="no"
borderstyle="raised" 
caption="no" 

icon="ic/12.ico" 
minimizebutton="yes" 
showintaskbar="yes" 
singleinstance="yes" 
sysmenu="yes" 
version="1.0" 
scroll="no"
/>

<!----------------------------- CSS样式 1------------------------------------------------!>


<style type="text/css"> 
<!-- 
.11{background-image:   url(image/小横条.png);  } 
--> 
</style> 

<style type="text/css"> 
<!--
.14{cursor:url(ic/normal.ani); background-color:#cf15d1; height:23; width:40;
 color:#025549;border:0 solid;}
-->
</style> 
<style type="text/css"> 
<!--
.a14{cursor:url(ic/normal.ani); background-color:#cf15d1; height:23; width:40;
 color:#025549;border:0 solid;}
-->
</style> 


<style type="text/css"> 
<!--
.15{cursor:url(ic/normal.ani); background-color:#a9c2d6; height:23; width:40;
 color:#025549;}
-->
</style> 

<style type="text/css"> 
<!--
.16{cursor:url(ic/normal.ani); background-color:#a9c2d6; height:23; width:27; 
color:#025549;font-size:0.77em;}
-->
</style> 




<style type="text/css" name="stylePage"> 
<!--
.17{cursor:url(ic/GiveItem.cur); background="";padding:0px;margin-top:0px;vertical-align:top;
border-top:0px solid;border-bottom:0px solid;border-left:0px solid;border-right:0px solid;
overflow:hidden;width:342px; height:530;allowtransparency=true;frameborder:0;line-height:40px;
font-family:宋体;font-size:19px;word-wrap:normal; }
-->
</style> 


<style type="text/css"> 
<!--
.18{cursor:url(ic/GiveItem.cur); background="";padding:0px;margin-top:0px;vertical-align:top;
border-top:0px solid;border-bottom:0px solid;border-left:0px solid;border-right:0px solid;
overflow:hidden;width:50px; height:20;allowtransparency=true;frameborder:0;
font-family:arial;word-wrap:normal; }
-->
</style> 

<style type="text/css"> 
<!--
.19{cursor:url(ic/GiveItem.cur); filter:alpha(opacity=0);visibility:hidden }//0000000000000000000000000000000000000000000000000000000000000000
-->
</style> 

<style type="text/css"> 
<!--
.20{cursor:url(ic/normal.ani); background-color:#a9c2d6; height:23; width:60;
 color:#025549;}
-->
</style> 

<style type="text/css"> 
<!--
.21{cursor:url(ic/normal.ani); background-color:#a2bbd1; 
 color:#0a6557;}
-->
</style> 

<style type="text/css"> 
<!--
.22{cursor:url(ic/normal.ani); 
color:#000000;font-size:0.77em;}
-->
</style> 


<style>   
  .drag{position:relative}   
  </style>   

<!----------------------------- CSS样式 1------------------------------------------------!>





<!----------------------------- CSS样式 2------------------------------------------------!>


<style type="text/css"> 
<!-- 
.112{background-image:   url(image/小横条.png);  } 
--> 
</style> 

<style type="text/css"> 
<!--
.142{cursor:url(ic/normal.ani); background-color:#cf15d1; height:23; width:40;
 color:#025549;border:0 solid;}
-->
</style> 
<style type="text/css"> 
<!--
.a142{cursor:url(ic/normal.ani); background-color:#cf15d1; height:23; width:40;
 color:#025549;border:0 solid;}
-->
</style> 


<style type="text/css"> 
<!--
.152{cursor:url(ic/normal.ani); background-color:#ca883e; height:23; width:40;
 color:#000000;}
-->
</style> 

<style type="text/css"> 
<!--
.162{cursor:url(ic/normal.ani); background-color:#ca883e; height:23; width:27; 
color:#000000;font-size:0.77em;}
-->
</style> 




<style type="text/css" name="stylePage"> 
<!--
.172{cursor:url(ic/GiveItem.cur); background="";padding:0px;margin-top:0px;vertical-align:top;
border-top:0px solid;border-bottom:0px solid;border-left:0px solid;border-right:0px solid;
overflow:hidden;width:342px; height:530;allowtransparency=true;frameborder:0;line-height:40px;
font-family:宋体;font-size:19px;word-wrap:normal; }
-->
</style> 


<style type="text/css"> 
<!--
.182{cursor:url(ic/GiveItem.cur); background="";padding:0px;margin-top:0px;vertical-align:top;
border-top:0px solid;border-bottom:0px solid;border-left:0px solid;border-right:0px solid;
overflow:hidden;width:50px; height:20;allowtransparency=true;frameborder:0;
font-family:arial;word-wrap:normal; }
-->
</style> 

<style type="text/css"> 
<!--
.192{cursor:url(ic/GiveItem.cur); filter:alpha(opacity=0);visibility:hidden }//0000000000000000000000000000000000000000000000000000000000000000
-->
</style> 

<style type="text/css"> 
<!--
.202{cursor:url(ic/normal.ani); background-color:#ca883e; height:23; width:60;
 color:#000000;}
-->
</style> 

<style type="text/css"> 
<!--
.212{cursor:url(ic/normal.ani);background-color:#ca883e;  
 color:#000000;}
-->
</style> 

<style>   
  .drag2{position:relative}   
  </style>   

<!----------------------------- CSS样式 2------------------------------------------------!>



</head>
<title>剑侠阅读 d2.1</title>



<body name="image1" id="image1" background="image/bg1.jpg" onkeydown="onkeydown1()" 
style="cursor:url(ic/GiveItem.cur)" ondblclick="max()"   >    

<!--flash播放器------------------------------------------------------------------------!>
<div  name="flash1" id="flash1" style="top:0px;left:0px;position:absolute;z-index:10">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 

codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" 

WIDTH="800" HEIGHT="600" id="myMovieName"> 

<PARAM NAME=movie VALUE="image/logo.swf"> 

<PARAM NAME=quality VALUE=high> 
<PARAM NAME=loop VALUE=false> 
<PARAM NAME=bgcolor VALUE=#FFFFFF> 
<param name="WMODE" value="transparent">
</OBJECT> </div>


<SCRIPT FOR="window" EVENT="OnQuit()" LANGUAGE="JavaScript">
	// Clean up voice object
	delete VoiceObj;
</SCRIPT>

<script>//=====================================================按下滚轮拖动移动


var abc=false; //是否可以移动

var m_left;

var m_top;

var w_left;

var w_top;

document.onmousedown=function()

{if (event.button==4){

  abc=true;

  w_left=window.screenLeft;

  w_top =window.screenTop;

  m_left=event.screenX;

  m_top =event.screenY;}

}

document.onmousemove=function()        //移动窗口 

{


        if(abc){

        var m_left1=event.screenX;

        var m_top1 =event.screenY;

        var w_left1=w_left-(m_left-m_left1);

        var w_top1 =w_top-(m_top-m_top1);
 
   window.moveTo(w_left1,w_top1);


        }

}

document.onmouseup=function()

{abc=false;

}
//=============================================按下滚轮拖动移动
</script>


<script language="javascript" id=clientEventHandlersJS>




// -----------------------------------窗口拖动-------------------------------------------------




//--------------------------------------------------------------------------窗口拖动




var yinyue=0;
// --------- 关闭logo  -----------------------------------------
function closeLogo(){
    if (yinyue==0)
	{MPlayer1.URL="music/1.m3u";}
	yinyue=1;
	
	document.getElementById("MPlayer1").settings.volume=(musicV.style.pixelLeft-567)*100/43; //调整背景音量
	
	
    document.getElementById("flash1").style.display= "none";    // 
    //document.body.removeChild(flash1);// 删除flash层   打开文章 则关闭flash

    document.getElementById("logoB").style.display= "none"; 
   
    document.getElementById("logo1").style.display= "none"; 
	document.getElementById("logo2").style.display= "none"; 
	document.getElementById("logo3").style.display= "none"; 
	//document.body.removeChild(logoDiv);// 删除logo层  
	
	
	//document.getElementById("logo5").style.display= "block"; 
	document.getElementById("idsVoices").style.display= "block"; // 显示select框
    document.getElementById("lx").style.display= "block";        // 显示超链接
	
	
	page1.value="名称：剑侠语音阅读器\n版本：d2.0\n功能：阅读txt格式文本\n     语音朗读、自动翻页\n     柔和背景、放大字体\n     背景音乐、保存书签\n按键：左右导航键翻页、按住可快速翻页\n     上下导航键调节语音音量        \n     鼠标滚轮拖动窗口    \n     直接输入页码跳转、回车跳过动画\n作者：独孤剑客\n主页：\n邮箱：402707486@qq.com"}
// --------- 关闭logo  -----------------------------------------

// --------- 关闭背景  -----------------------------------------





// 说明：指定位置显示图片 --------------------// 
function reP(){
    document.getElementById('oImg').style.display = "block";
}
function reN(){
    document.getElementById('oImg').style.display = "none";
}
// 说明：指定位置显示图片 -----------------------// 


// 说明：屏蔽鼠标右键 -------------------------// 
/*
function hideContextMenu2()
{
    
		window.event.returnValue=false;
}
document.oncontextmenu=hideContextMenu2;
*/
// 说明：屏蔽鼠标右键 ----------------------// 





// 最小化----------------------------------------
var minKey=0;
function min(){
reP();
while (true) {   
    try {   
    var w1 = 140, h1 = 27;   
        window.resizeTo(w1, h1);   
        window.moveTo(0, (window.screen.height-57));   
        break;   
    } catch (e) { continue; }   
} 
minKey=1;
}
//window.screen.height-window.screen.availHeight
// 最小化----------------------------------------



// 最大化----------------------------------------
function max(){
if (minKey==1){
reN();
while (true) {   
    try {   
    var w = 800, h = 605;   
        window.resizeTo(w, h);   
        window.moveTo((window.screen.width - w) / 2, (window.screen.height - h) / 3);   
        break;   
    } catch (e) { continue; }   
} 
minKey=0;
}
}

// 最大化----------------------------------------






// 说明：获取外部txt文件 ------------------------------//   
var arr;
function getTxt() {

 document.getElementById("lx").style.display= "none";        // 隐藏超链接 

var arr="";
var forReading=1;
fso=new ActiveXObject("Scripting.FileSystemObject");

//var f=fso.GetFile(file1.value);
//f.Copy("myBook/一.txt");

ts=fso.OpenTextFile(document.getElementById("file1").value,forReading,true);
arr=ts.ReadAll();

arr=arr.replace(/(\n[\s|\t]*\r*\n)/g,'\n'); // 除去空行


//arr=arr.replace(/(^\s*)|(\s*$)/g,"");   // 除去空格


//arr=arr.replace(/\s/g,"");        // 除去一切 格
var strArry=new Array();
arrA=arr.split("\n");
for(z=0;z<arrA.length;z++)    //每17个字分为一组，添加\n保存到数组，原\n保留。
{
arrAy=arrA[z].toString();
for(x=0;x<arrAy.length;x+=17)
{
str=arrAy.substring(x,x+17);
strArry.push(str+"\n");
}
}

strArry=strArry.join("");






return(strArry);


}


function del(){         // 清除file1.value
document.getElementById("span1").innerHTML=
"<input type=file id=file1 name=file1 class=19 hidefocus  onchange=getTxt();writeTxt()>";
f++;
}

// 说明：获取外部txt文件 -----------------//  


// 说明：将文本强制按字数换行 -------------------//  

var arr1="";
var len=0;   // 每行字节
var openKey=0;


                                  //已经不用这个函数了。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
function writeTxt1(){            // 占用CPU太严重，有待优化！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！



arr=getTxt();
arr1="";
var cols=document.getElementById("page1").cols;
cols=2*cols; // 每行最大字节数
for(i=0;i<arr.length;i++){

arr1+=arr.charAt(i);

if((arr.charCodeAt(i)>127)||(arr.charCodeAt(i)==94)){len+=2;} // 如果是全角 长度加2

if(arr.charCodeAt(i)<=127){len+=1;} // 如果是半角 长度加1
if(arr.charAt(i)=="\n"){len=0;}     // 如果存在回车换行 长度清零
if ((len==34)||((len==33)&&(arr.charCodeAt(i+1)>127))){len=0;arr1+="\n";} // 说明：若长度达到34 或33且下个字为双字节 则添加换行符


//if(arr.charCodeAt(i)<=128){len+=2;}
}
return(arr1); 
               
}                                   // 占用CPU太严重，有待优化！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！

// 说明：将文本强制按字数换行 --------------------------//  




/*
function stopError() {//==============================================忽略错误
return true;
}
window.onerror=stopError;
*/




// 说明：分割已经标记换行符的txt文本、并按行显示在页面 -----------------------//   
var pageI=1;
var pageJ=2;

var str;
var strArry;
var strArry1;
var strArry2;
var goKey=0;

function writeTxt(){


openKey=1;  // 打开文章 则可以阅读
goKey=1;    // 打开文章 则可以翻页
strArry1="";
strArry2="";
pageI=1;                          // 初始化页码
pageJ=2;

if (readKey==1){r=0;}

text1.value="— "+pageI+" —";
text2.value="— "+pageJ+" —";


strArry=getTxt();
strArry=strArry.split("\n");


var pp=strArry.length/13; //得到总页码数
if(pp>parseInt(pp)){pp=parseInt(pp)+1;  }       //得到总页码数
else pp=pp=parseInt(pp);
zongY.value="共"+pp+"页";



for(m=((pageJ-2)*13);m<=(pageI*13-1);m++)
{
if (strArry[m]==undefined){strArry[m]="";}
strArry1+=(strArry[m]+"\n");
}

document.getElementById("page1").value=strArry1;   // 第一页内容

for(n=(pageI*13);n<=(pageJ*13-1);n++)
{
if (strArry[n]==undefined){strArry[n]="";}
strArry2+=(strArry[n]+"\n");
}
document.getElementById("page2").value=strArry2;   // 第二页内容

pageKey=0;    // 关闭自动翻页
stopRead() // 初始化语音--------------------------------
readKey=0;
}
// 说明：分割已经标记换行符的txt文本、并按行显示在页面--------------- //   


// 说明：语音阅读函数 ----------------------------------//  


var r=0;
var readKey=0;
var key1 ;
var key2 ;
var key3 ;
var key4 ;
var key5 ;
var wavL;
var m=1;
var stopKey=0;




function readTxt() {
	ReadType=0;
    if (read1.value=="语音阅读"){
	if ((page1.value!="")||(page2.value!="")){
	//read1.disabled=true;  // 点击阅读 则阅读按钮禁止再次点击
     readKey=1;
     var page=page1.value+page2.value;
		// Speak the string in the edit box
		try
		{
			VoiceObj.Rate=2;
			VoiceObj.Speak( page, 1 );
                       document.getElementById("zan").style.display= "block";  //开始阅读 ，则显示暂停按钮
			// pageKey=1;
			
		}
		catch(exception)
		{
			alert("Speak error");
		}
	}
	 read1.value="关闭语音";
	 return;
  }
 
  if (read1.value=="关闭语音"){
    //read1.disabled=false; // 点击停止阅读 则恢复阅读按钮点击功能
    stopKey=1;
	
    VoiceObj.Speak( "", 2 );
    readKey=0;
	
	read1.value="语音阅读";
        zan.value="暂停";         //点击停止阅读，则暂停按钮恢复“暂停”
         VoiceObj.Resume();        //点击停止阅读，则取消暂停状态。
         document.getElementById("zan").style.display= "none";  //停止阅读 ，则隐藏暂停按钮

	return;
  }
}

function stopRead(){
if(readKey==1){
// read1.disabled=false; // 点击停止阅读 则恢复阅读按钮点击功能
stopKey=1;

VoiceObj.Speak( "", 2 );
readKey=0;
read1.value="语音阅读"
zan.value="暂停";         //点击停止阅读，则暂停按钮恢复“暂停”
         VoiceObj.Resume();        //点击停止阅读，则取消暂停状态。
         document.getElementById("zan").style.display= "none";  //停止阅读 ，则隐藏暂停按钮
pageKey=0;
}
}


// 说明：自动翻页函数----------------============================ //
var ReadType=0;
function VoiceObj::EndStream() {
	if(ReadType==2) {ReadType=0;return;}
	if(ReadType==1) {ReadType=2;return;}      // 若手动翻页goRight() 之后，导致readtype=1，接着赋值readtype=2，手动翻页之后紧着接会触发一次此函数---
	                                                              //---这时由于readtype=2，禁止了再次翻页，并赋值readtype=0，恢复下次可以翻页。
	if(read1.value=="关闭语音" && !ReadType) {   // 第一次自动翻页 产生事件 !ReadType，导致readtype=2 ，goRight(1),接着也会再次触发此函数，---
		ReadType=2;                                                       //--但是由于此时readtype=2 ，禁止了再次翻页，并赋值readtype=0，恢复自动翻页功能
		goRight(1);   
	}
}


 




// 说明：键盘控制函数---------------- //  

function onkeydown1(){
	if(event.keyCode==39)goRight();//右方向键翻页
	if(event.keyCode==37)goLeft();//左方向键翻页
        if(event.keyCode==38)IncVol();//上方向键增加音量
        if(event.keyCode==40){DecVol();}//下方向键减小音量
	if(event.keyCode==13){closeLogo(); InitializeControls();}// 回车
}


// 说明：自动            阅读函数 ---------------------//  
function zireadTxt(t) {
     readKey=1;
     var page=page1.value+page2.value;
	//pageKey=1;
	
		// Speak the string in the edit box
		try
		{
			
			VoiceObj.Speak( page, 1 );
                        document.getElementById("zan").style.display= "block";  //开始阅读 ，则显示暂停按钮
			 
			
		}
		catch(exception)
		{
			alert("Speak error");
		}
	}
// 说明：自动            阅读函数 ---------------------//  










// 说明：右翻页函数---------------- //  

function goRight(t){
if (openKey==1){                             //===打开才可以翻页
var pp=strArry.length/13; //得到总页码数
if(pp>parseInt(pp)){pp=parseInt(pp)+1;  }       //得到总页码数
else pp=pp=parseInt(pp);

if(pageJ<pp){
if(!t){ReadType=1;}      // !t 即手动翻页，readtype为1
if (goKey==1) {
var strArryP="";      // 初始化
var strArry1="";     
var strArry2="";


//strArry=getTxt();
//strArry=strArry.split("\n");

                
    r=0;
    pageI+=2;
	pageJ+=2;
    var leftNum=pageI-2;  // 记录当前页码
	var rightNum=pageJ-2;
	
	

	
	

	
if (parseInt(rightPage.value)>pageJ-2)        // 右跳页函数---------------------------------------
{
   if ((parseInt(rightPage.value)%2)==1)    // 若输入奇数 则页码变为
     { pageI= parseInt(rightPage.value); pageJ= pageI+1;  }
	
	if ((parseInt(rightPage.value)%2)==0)   // 若输入偶数 则页码变为
      { pageI= parseInt(rightPage.value)-1; pageJ= pageI+1; }
      
}    
		
     
   
   	
	
text1.value="— "+pageI+" —";             // 刷新页码
text2.value="— "+pageJ+" —";

for(m=((pageJ-2)*13);m<=(pageI*13-1);m++)  // 取得当前页码的内容（左）
{

if (strArry[m]==undefined) {strArry[m]="";} // 若不存在 则为空
strArry1+=(strArry[m]+"\n");

}

strArry_1=strArry1.replace(/\n/g,"");
if (strArry_1.length==0) {                         // 如果左页为空，则还原页码，跳出函数（针对跳页）
    text1.value="— "+leftNum+" —";text2.value="— "+rightNum+" —";
	 pageI=leftNum; pageJ=rightNum;rightPage.value="    ";rightPage.blur();return; }      

	 
	 	if(bgBox.checked==true){
		var bg=Math.round(Math.random()*fengNo);      // 翻页随机背景图片----------------------
	    bg=bg+1;
	//document.getElementById("image1").background="image/bg"+bg+".jpg";
	document.getElementById("logo5").src=fengLu+"/bg"+bg+".jpg";
	}
   else if(bgBox.checked==false){document.getElementById("logo5").src=fengLu+"/bg.jpg"}
   
   

	if(pageSound.checked==true){MPlayer2.controls.play();} // 翻书声
	

document.getElementById("page1").value=strArry1;

for(n=(pageI*13);n<=(pageJ*13-1);n++)      // 取得当前页码的内容（右）
{
if (strArry[n]==undefined) {strArry[n]="";}
strArry2+=(strArry[n]+"\n");

}
document.getElementById("page2").value=strArry2;



if (readKey==1){VoiceObj.Speak( "", 2 );zireadTxt(t);} //    手动翻页后关闭语音、然后阅读新内容---------------------------------------------------------------------

    }
  }
  rightPage.value="    ";       // 清空页面跳转框
  rightPage.blur();
}
}
// 说明：右翻页函数 ---------------------//  

// 说明：左翻页函数 ---------------------//  
function goLeft(t){
if(!t){ReadType=1;}
var strArry1="";   // 初始化
var strArry2="";

if ((pageI>1)&&(goKey==1))  // 判断页码是否大于1
  { 
    r=0;
    pageI-=2;
	pageJ-=2;
	

	
	
if((parseInt(leftPage.value)>0)&&(parseInt(leftPage.value)<pageI+2))    // 左跳页函数------------
{
   if ((parseInt(leftPage.value)%2)==1){pageI= parseInt(leftPage.value); pageJ= pageI+1; } // 若输入奇数 则页码变为
   
   if ((parseInt(leftPage.value)%2)==0){pageI= parseInt(leftPage.value)-1; pageJ= pageI+1; } // 若输入偶数 则页码变为
 }
	
	
	
text1.value="— "+pageI+" —";
text2.value="— "+pageJ+" —";
	
for(m=((pageJ-2)*13);m<=(pageI*13-1);m++)    // 取得当前页码的内容（左）
{
if (strArry[m]==undefined) {strArry[m]="";}
strArry1+=(strArry[m]+"\n");
}

	if(bgBox.checked==true){
		var bg=Math.round(Math.random()*fengNo);      // 翻页随机背景图片----------------------
	    bg=bg+1;
	//document.getElementById("image1").background=fengLu"/bg"+bg+".jpg";
	document.getElementById("logo5").src=fengLu+"/bg"+bg+".jpg";
	}
	 else if(bgBox.checked==false){document.getElementById("logo5").src=fengLu+"/bg.jpg"}
	 
	 
	
	
	if(pageSound.checked==true){MPlayer2.controls.play();} // 翻书声

document.getElementById("page1").value=strArry1;

for(n=(pageI*13);n<=(pageJ*13-1);n++)     // 取得当前页码的内容（右）
{
if (strArry[n]==undefined) {strArry[n]="";}
strArry2+=(strArry[n]+"\n");
}
document.getElementById("page2").value=strArry2;



if (readKey==1){VoiceObj.Speak( "", 2 );zireadTxt(t); } //    手动翻页后关闭语音、然后阅读新内容---------------------------------------------------------------------


    }
	leftPage.value="    ";       // 清空页面跳转框
        leftPage.blur();
}

// 说明：左翻页函数 --------------------//  


// 说明：音乐控制函数 --------------------// 

function controlMusic(){
if (backM.value=="关闭音乐") { MPlayer1.controls.pause(); backM.value="播放音乐";return;}
if (backM.value=="播放音乐") {MPlayer1.controls.play();backM.value="关闭音乐";return;}


}


// 说明：音量控制函数 --------------------// 
var allow=false;//判断是否允许被拖动 

function movePic()
{if (event.button==1){
  allow=true;
  w_left= musicV.style.pixelLeft;  // 取得当前图片x坐标
  //w_top =window.screenTop;
  m_left=event.screenX;         // 取得当前鼠标x坐标
 // m_top =event.screenY;
  }
}
function movePic1()        // 移动图片
{
musicV.style.cursor="ic/normal.ani";
       if((musicV.style.pixelLeft>=567)&&(musicV.style.pixelLeft<=610)){
	    if(allow){
		
		
        var m_left1=event.screenX;
       // var m_top1 =event.screenY;
        var w_left1=w_left-(m_left-m_left1);   // 更新位置
        //var w_top1 =w_top-(m_top-m_top1+116);
       musicV.style.pixelLeft= w_left1;       // 变换位置
	   if(musicV.style.pixelLeft<567){musicV.style.pixelLeft=567}
		if(musicV.style.pixelLeft>610){musicV.style.pixelLeft=610}
		document.getElementById("MPlayer1").settings.volume=(musicV.style.pixelLeft-567)*100/43;  // 调整音量
        }
	}
}
function stopMove()
{allow=false;
}
// 说明：音量控制函数 --------------------// 



// 说明：语速控制函数 --------------------// 
var allow2=false;//判断是否允许被拖动 

function movePic2()
{if (event.button==1){
  allow=true;
  w_left= readRat.style.pixelLeft;  // 取得当前图片x坐标
  //w_top =window.screenTop;
  m_left=event.screenX;         // 取得当前鼠标x坐标
 // m_top =event.screenY;
  }
}
function movePic3()        // 移动图片
{
musicV.style.cursor="ic/normal.ani";
       if((readRat.style.pixelLeft>=118)&&(readRat.style.pixelLeft<=188)){
	    if(allow){
		
		
        var m_left1=event.screenX;
       // var m_top1 =event.screenY;
        var w_left1=w_left-(m_left-m_left1);   // 更新位置
        //var w_top1 =w_top-(m_top-m_top1+116);
      readRat.style.pixelLeft= w_left1;       // 变换位置
	   if(readRat.style.pixelLeft<118){readRat.style.pixelLeft=118}
		if(readRat.style.pixelLeft>188){readRat.style.pixelLeft=188}
		VoiceObj.Rate = ((readRat.style.pixelLeft-153+2)*2/7)+2;   // 更改速度
        }
	}
}
function stopMove2()
{allow2=false;
}
// 说明：语速控制函数 --------------------// 

// 说明：语音选择函数 --------------------// 
//  InitializeControls();

function InitializeControls()
{
	// Initialize the Voices and AudioOutput Select boxes
	var VoicesToken = VoiceObj.GetVoices();
	
	// Add correct strings to Voice Select box
	for( var i=0; i<VoicesToken.Count; i++ )
	{
		var oOption = document.createElement("OPTION");
		idsVoices.options.add(oOption);

    try
		{
			oOption.innerText = VoicesToken.Item(i).GetDescription();
		}
		catch(exception)
		{
			
		}
		
		oOption.value = i;
	}

	
}


function ChangeVoice() {
	var i = parseInt( idsVoices.value );
	VoiceObj.Voice = VoiceObj.GetVoices().Item(i);
}

// 说明：语音选择函数 --------------------// 

// 显示语速控制------------
function xianshi(){
document.getElementById("readRat").style.display= "block"; 
document.getElementById("readRat2").style.display= "block"; 

}
// 隐藏语速控制------------
function yincang(){
document.getElementById("readRat").style.display= "none"; 
document.getElementById("readRat2").style.display= "none"; 

}


//暂停继续函数--------------------
function zanting()    
{
if((readKey==1)&&(zan.value=="暂停"))
{VoiceObj.Pause(); zan.value="继续";return;}
if((readKey==1)&&(zan.value=="继续"))
{VoiceObj.Resume(); zan.value="暂停";return;}
}


//增加语音音量--------------------
function IncVol() { 
if( VoiceObj.Volume < 100 ) 
{ 
VoiceObj.Volume = VoiceObj.Volume + 10; 
} 
} 

//减小语音音量--------------------
function DecVol() { 
if( VoiceObj.Volume > 9 ) 
{ 
VoiceObj.Volume = VoiceObj.Volume - 10; 
} 
} 




//保存书签函数=========================================================------------
function shu()
{
delshu();//初始化书签

var shuArr="";
var shuming=file1.value;   //打开文件路径名
shuming=shuming.substring(shuming.lastIndexOf('\\')+1,shuming.lastIndexOf("."));//取出文件名

var fso, shu;
var ForWriting= 2;//只写
var forReading=1;// 只读
var ForAppending=8;//末尾写
filespec="书签\\"+shuming+".txt";
fso = new ActiveXObject("Scripting.FileSystemObject");


var shu1=page1.value;

shu1=shu1.replace(/(^\s*)|(\s*$)/g, ""); // 除去空

shu1=shu1.substring(0,10);//写入当前页内容

try{
if (fso.FileExists(filespec)==0)  //判断文件是否存在（不存在）
{
shu = fso.OpenTextFile("书签\\"+shuming+".txt", ForWriting, true);//新建txt);
shu.write(shuming+"--书签@@");
shu.Close();
}


else {}

}
catch(exception){}
shu=fso.OpenTextFile("书签\\"+shuming+".txt",forReading,true);
shuArr=shu.ReadAll();
shu.Close();

if(shuArr.indexOf(shu1)==-1)  //如果未添加过
{
 shu = fso.OpenTextFile("书签\\"+shuming+".txt",ForAppending, true);
shu.write("P"+pageI+":"+shu1+"@@");
shu.Close();
shu=fso.OpenTextFile("书签\\"+shuming+".txt",forReading,true);
shuArr=shu.ReadAll();
shu.Close();


shuArr1=shuArr.split("@@");

/*

tempArray=shuArr1.slice(0);//复制数组到临时数组//===========================================================删除重复书签
 for(var i=0;i<tempArray.length;i++)
 {
  for(var j=i+1;j<tempArray.length;)
  {
   if(tempArray[j]==tempArray[i])
   //后面的元素若和待比较的相同，则删除并计数；
   //删除后，后面的元素会自动提前，所以指针j不移动
   {
    tempArray.splice(j,1);
   }
   else
   {
    j++;
   }
   //不同，则指针移动
  }
 }
shuArr1=tempArray;//===========================================================删除重复书签

*/

}
for( var i=0; i<shuArr1.length-1; i++ )
	{
		var ss = document.createElement("OPTION");
		idshu.options.add(ss);

    try
		{
			ss.innerText = shuArr1[i];
		}
		catch(exception)
		{
			
		}
		
		ss.value = i;
		
	}
alert("已保存书签！P"+pageI+":"+shu1+"...");



}//保存书签函数=========================================================------------



//========================================================================================================================
//==========================================显示书签
function xianshu()
{
delshu();//初始化书签
document.getElementById("idshu").style.display= "block"; 
document.getElementById("addbook").style.display= "block"; 

var shuArr="";
var shuming=file1.value;   //打开文件路径名
shuming=shuming.substring(shuming.lastIndexOf('\\')+1,shuming.lastIndexOf("."));//取出文件名

var fso, shu;
var ForWriting= 2;//只写
var forReading=1;// 只读
var ForAppending=8;//末尾写
filespec="书签\\"+shuming+".txt";
fso = new ActiveXObject("Scripting.FileSystemObject");
if (fso.FileExists(filespec)==1)  //判断文件是否存在（存在）
{
shu = fso.OpenTextFile("书签\\"+shuming+".txt", forReading, true);
shuArr=shu.ReadAll();
shu.Close();

shuArr1=shuArr.split("@@");


/*
//===========================================================删除重复书签
tempArray=shuArr1.slice(0);//复制数组到临时数组
 for(var i=0;i<tempArray.length;i++)
 {
  for(var j=i+1;j<tempArray.length;)
  {
   if(tempArray[j]==tempArray[i])
   //后面的元素若和待比较的相同，则删除并计数；
   //删除后，后面的元素会自动提前，所以指针j不移动
   {
    tempArray.splice(j,1);
   }
   else
   {
    j++;
   }
   //不同，则指针移动
  }
 }
shuArr1=tempArray;//===========================================================删除重复书签
*/




for( var i=0; i<shuArr1.length-1; i++ )
	{
		var ss = document.createElement("OPTION");
		idshu.options.add(ss);

    try
		{
			ss.innerText = shuArr1[i];
		}
		catch(exception)
		{
			
		}
		
		ss.value = i;
		
	}
}



}//========================================================================================================================
//==========================================显示书签




//==========================================清空书签
function delshu()
{
for(var i=0;i<idshu.options.length;) 
{ 
idshu.removeChild(idshu.options[i]); 
}
}

//==========================================跳转书签
var q=0;
function goshu()
{
var p=shuArr1[idshu.value];

q=p.indexOf(":");
p=p.substring(1,q);
//p=typeof(p)
p=parseInt(p);
leftPage.value=p;
rightPage.value=p;

if ((pageI!=p)&&(pageJ!=p)&&(q!=-1))//如果是当前页 或者是 书签 则不动作
{
if(pageI<p)goRight();
else goLeft();
}
leftPage.value="    ";
 leftPage.blur();//跳转框失去焦点
rightPage.value="    ";
rightPage.blur();//跳转框失去焦点

}//==========================================跳转书签

//==========================================风格切换
var feng=1;//开关
var fengNo=13;//背景图片的数量
var fengLu="image";//路径






function turnFeng()
{
if(feng==1)
{

document.getElementById("logo5").src="image/a/bg1.jpg";
fengNo=4;
 fengLu="image/a";
feng=2;


document.getElementById("dakai").className="152";//打开按钮



document.getElementById("addbook").className="152";//书签按钮
document.getElementById("read1").className="202";//语音阅读按钮
document.getElementById("idshu").className="212";//书签选择
document.getElementById("idsVoices").className="212";//语音选择
document.getElementById("zan").className="152";//语音暂停按钮
document.getElementById("feng").className="152";//风格按钮
document.getElementById("backM").className="202";//关闭音乐按钮
//document.getElementById("yinc").className="152";//隐藏按钮
document.getElementById("yinc").style.display="none";//隐藏按钮mouseOu2(id)
document.getElementById("close1").style.display="none";//关闭按钮
document.getElementById("yinc2").style.display="block";//隐藏按钮mouseOu2(id)
document.getElementById("close2").style.display="block";//关闭按钮
document.getElementById("lbutton").style.display="none";//左翻页按钮
document.getElementById("rbutton").style.display="none";//右翻页按钮按钮
document.getElementById("lbutton2").style.display="block";//
document.getElementById("rbutton2").style.display="block";//


//document.getElementById("close1").className="162";//关闭按钮
document.getElementById("yusu").className="152";//语速按钮
document.getElementById("feng").className="152";//风格按钮
document.getElementById("readRat2").src="image/a/语速条.gif";//语速条风格
document.getElementById("readRat").src="image/a/语速块.png";//语速块风格
document.getElementById("musicV").src="image/a/音量块.png";//音量块风格
document.getElementById("fengYlt").style.display="block";//音量条
document.getElementById("font1").style.display="block";//选择语音字样
return;
}

if(feng==2)
{

document.getElementById("logo5").src="image/bg1.jpg";
fengNo=13;
 fengLu="image";
feng=1;



document.getElementById("dakai").className="15";//打开按钮

document.getElementById("addbook").className="15";//书签按钮
document.getElementById("read1").className="20";//语音阅读按钮
document.getElementById("idshu").className="21";//书签选择
document.getElementById("idsVoices").className="21";//语音选择
document.getElementById("zan").className="15";//语音暂停按钮
document.getElementById("feng").className="15";//风格按钮
document.getElementById("backM").className="20";//关闭音域按钮
//document.getElementById("yinc").className="15";//隐藏按钮
document.getElementById("yinc").style.display="block";//隐藏按钮mouseOu2(id)
document.getElementById("close1").style.display="block";//关闭按钮
document.getElementById("yinc2").style.display="none";//隐藏按钮mouseOu2(id)
document.getElementById("close2").style.display="none";//关闭按钮
document.getElementById("lbutton").style.display="block";//左翻页按钮
document.getElementById("rbutton").style.display="block";//右翻页按钮按钮
document.getElementById("lbutton2").style.display="none";//
document.getElementById("rbutton2").style.display="none";//




//document.getElementById("close1").className="16";//关闭按钮
document.getElementById("yusu").className="15";//语速按钮
document.getElementById("feng").className="15";//风格按钮
document.getElementById("readRat2").src="image/语速条.gif";//语速条风格
document.getElementById("readRat").src="image/语速块.png";//语速块风格
document.getElementById("musicV").src="image/音量块.png";//音量块风格
document.getElementById("fengYlt").style.display="none";//音量条
document.getElementById("font1").style.display="none";//选择语音字样
return;
}
}
//==========================================风格切换




// 关闭软件----------------------------------------d422d6


function closeWin() {
    window.close();
}

function mouseOv(id) {
    id.style.background="#cf15d1";
   }
   
 function mouseOu(id) {
    id.style.background="#a9c2d6";
   }
   

   
 function mouseOu2(id) {
    id.style.background="#ca883e";
   } 
  
 
// 关闭软件------------------------------------

</script>





<!-----------------------------界面------------------------------------------------!>
<!-----------------------------界面------------------------------------------------!>


<!-----------------------------关闭按钮------------------------------------------------!>

<img  src="image/语速块.png" name="readRat" style="display:none;top:32;left:152px;position:absolute; cursor:url(ic/normal.ani);z-index:3"  
onmousedown="movePic2()" ondrag="movePic3()" >

<img  src="image/语速条.jpg" name="readRat2" style="display:none;top:32;left:118px;position:absolute"  >
<img  src="image/a/音量条.gif" name="fengYlt" style="display:none;top:9;left:556px;position:absolute"  >

<!-------------选择字样---------------!>

<font class=22 name="font1"id="font1" style="top:-22px;left:294px;position:relative;writing-mode:lr-tb;display:'none' ">
选择语音&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp背景&nbsp&nbsp&nbsp&nbsp翻页声
</font>


<table  >
<tr style="top:3px;position:absolute">
<td>
<input type="button" value="打开" name="dakai" id="dakai" style="left:15px;position:absolute" class=15 name="haha" id="haha" onclick="file1.click();delshu();xianshu()">

<input type="button" value="书签" style="z-index:90;display:'none';width:33px;height:20px;left:521px;top:573px;position:absolute" class=15 name="addbook" id="addbook" onclick="shu()">




<input type="button" value="语音阅读" style="left:60px;position:absolute" name="read1" class=20  onclick="readTxt()">


<!-------------语速控制图片---------------!>
<input type="button" value="语速" name="yusu" style="left:125px;position:absolute" class=15 onclick="xianshi()">




<!-------------书签选择---------------------------------------------------!>

<SELECT id="idshu" name="idshu" onchange="goshu()" 
style="display:'none';height:23;width:130;top:571px;left:390px;position:absolute" class=21> 



</SELECT>








<!-------------语音选择---------------!>

<SELECT id="idsVoices" name="idsVoices" onchange="ChangeVoice()" 
style="display:'none';height:23;width:120;top:4;left:170px;position:absolute" class=21>
</SELECT>




<!-------------暂停继续---------------!>
<input type="button" value="暂停" style="left:344px;width:33px;height:20px;position:absolute;top:4px;display:none" name="zan"  class=15  onclick="zanting()">





<!-------------风格切换---------------!>
<input type="button" value="风格" style="top:4px;left:396px;width:31px;height:20px;position:absolute" name="feng"  class=15  onclick="turnFeng()">





<!-------------关闭背景---------------!>

<input type="checkbox" checked=true name="bgBox" id="bgBox" style="top:3px;left:433px;position:absolute" >


<!-------------选择翻页声---------------!>
<input type="checkbox" checked=true name="pageSound" id="pageSound" style="top:3px;left:481px;position:absolute" >

<!-------------音量控制条 567--610------------!>
<img src="image/音量块.png" id="musicV" name="musicV" style="top:4;left:575px;position:absolute; cursor:url(ic/normal.ani)" 
onmousedown="movePic()" ondrag="movePic1()" onmouseup="stopMove()">


<input type="button" value="关闭音乐" style="left:634px;position:absolute" id="backM" name="backM" class=20 onclick="controlMusic()" >

<input type="button" value="隐藏" style="left:699px;position:absolute" class=15 onclick="minimize.Click()" name="yinc"
onmouseover="mouseOv(this)" onmouseout="mouseOu(this)">

<input type="button" id="colse1" name="close1" value="关" style="left:744px;position:absolute"
class=16 onclick="closeWin()" onmouseover="mouseOv(this)" onmouseout="mouseOu(this)">




<!-------------风格  2   隐藏按钮 567--610------------!>
<input type="button" value="隐藏" style="left:699px;position:absolute;display:none" class=152 onclick="minimize.Click()" name="yinc2"
onmouseover="mouseOv(this)" onmouseout="mouseOu2(this)">

<input type="button" id="colse2" name="close2" value="关" style="left:744px;position:absolute;display:none"
class=162 onclick="closeWin()" onmouseover="mouseOv(this)" onmouseout="mouseOu2(this)">

<!-------------打开文件按钮（隐藏）---------------!>
<span id="span1" style="top:3px;right:80px;position:absolute">
<input type="file" id=file1 name=file1 class=19 hidefocus  onpropertychange="getTxt();writeTxt();">
</span>
</td></tr>

</table>
<!-----------------------------关闭按钮------------------------------------------------!>


<!-----------------------------书页部分------------------------------------------------!>
<table style="top:41px;right:1px;position:absolute" >
<tr >
<td width=400px><div align="center"  style="left:25px;position:absolute">
<textarea id="page1" name="page1" class="17" readOnly=true onfocus="yincang()">
</textarea></div>
</td>

<td width=400px ><div align="center" style="right:20px;position:absolute">
<textarea id="page2" name="page2" class="17" readOnly=true onfocus="yincang()">
</textarea></div>
</td>
</tr>
</table>
<!-----------------------------书页部分------------------------------------------------!>


<!-----------------------------翻页按钮与页码------------------------------------------------!>
<!-------------左翻按钮---------------!>
<table >
<tr><td><div style="bottom:5px;left:30px;position:absolute">
<img src="ic/l1.jpg" class=14 name="lbutton" onclick="goLeft()" onmousedown="this.src='ic/l3.jpg'" onmouseup="this.src='ic/l2.jpg'"
onmouseover="this.src='ic/l2.jpg'" onmouseout="this.src='ic/l1.jpg'" style="bottom:0px;position:absolute"></img>
<img src="ic/a/l1.jpg" class=14 name="lbutton2" onclick="goLeft()" onmousedown="this.src='ic/a/l3.jpg'" onmouseup="this.src='ic/a/l2.jpg'"
onmouseover="this.src='ic/a/l2.jpg'" onmouseout="this.src='ic/a/l1.jpg'" style="display:none"></img>
</div>
</td>

<!-------------左跳转框---------------!>
<td><div style="bottom:4px;left:80px;position:absolute">
<input type="text" value="    " style="width:30"  name="leftPage" style="background=''">
</div>
</td>

<!-------------左页码框---------------!>
<td><div style="bottom:2px;left:180px;position:absolute">
<input type="text" value="— 1 —" class=18 name="text1" readonly="readonly"></div>
</td>

<!-------------右页码框------readonly="readonly"---禁止编辑---------!>
<td><div style="bottom:2px;right:170px;position:absolute">
<input type="text" value="— 2 —" class=18 name="text2" readonly="readonly"></td>
</td>

<!-------------右跳转框---------------!>
<td><div style="bottom:4px;right:88px;position:absolute">
<input type="text" value="    " style="width:30" name="rightPage" style="background=''">
</div>

</td>

<!-------------右翻按钮---------------!>
<td>
<div style="bottom:5px;right:38px;position:absolute">
<img src="ic/r1.jpg" class=14 name="rbutton" onclick="goRight()" onmousedown="this.src='ic/r3.jpg'" onmouseup="this.src='ic/r2.jpg'"
onmouseover="this.src='ic/r2.jpg'" onmouseout="this.src='ic/r1.jpg'" style="bottom:0px;right:0px;position:absolute"></img>
<img src="ic/a/r1.jpg" class=14 name="rbutton2" onclick="goRight()" onmousedown="this.src='ic/a/r3.jpg'" onmouseup="this.src='ic/a/r2.jpg'"
onmouseover="this.src='ic/a/r2.jpg'" onmouseout="this.src='ic/a/r1.jpg'" style="display:none"></img>
</div>
</td>
</tr>
</table>
<!-------------显示总页码数---------------!>
<input type="text"  class=18 name="zongY" readonly="readonly" style="width:100px;bottom:5px;left:295px;position:absolute">

<!-----------------------------翻页按钮与页码------------------------------------------------!>


<!--语音播放器------------------------------------------------------------------------!>

<object id="MPlayer" height="0" width="0" name="MPlayer"  classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" > 
    <param name="URL" value="" align="center" border="0"><param name="AutoStart" value="0"><param name="Balance" value="0">
	<param name="enabled" value="-1"><param name="EnableContextMenu" value="-1"><param name="PlayCount" value="1">
	<param name="loop" value="1"><param name="rate" value="1"><param name="currentPosition" value="0">
	<param name="currentMarker" value="0"><param name="defaultFrame" value=""><param name="invokeURLs" value="0">
	<param name="baseURL" value=""><param name="stretchToFit" value="0"><param name="volume" value="100">
	<param name="mute" value="0"><param name="uiMode" value="mini"><param name="windowlessVideo" value="-1">
	<param name="fullScreen" value="0"><param name="enableErrorDialogs" value="-1"><param name="SAMIStyle" value>
	<param name="SAMILang" value><param name="SAMIFilename" value><param name="captioningID" value><param name="controls" value="all">/>
</object>

<!--音乐播放器------------------------------------------------------------------------!>
<object id="MPlayer1" height="0" width="0" name="MPlayer1"  classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" > 
    <param name="URL" value="music/start.mp3" align="center" border="0"><param name="AutoStart" value="1"><param name="Balance" value="0">
	<param name="enabled" value="-1"><param name="EnableContextMenu" value="-1"><param name="PlayCount" value="10000">
	<param name="loop" value="-1"><param name="rate" value="1"><param name="currentPosition" value="0">
	<param name="currentMarker" value="0"><param name="defaultFrame" value=""><param name="invokeURLs" value="0">
	<param name="baseURL" value=""><param name="stretchToFit" value="0"><param name="volume" value="50">
	<param name="mute" value="0"><param name="uiMode" value="mini"><param name="windowlessVideo" value="-1">
	<param name="fullScreen" value="0"><param name="enableErrorDialogs" value="-1"><param name="SAMIStyle" value>
	<param name="SAMILang" value><param name="SAMIFilename" value><param name="captioningID" value><param name="controls" value="all">/>
</object>




<!--翻书音乐播放器------------------------------------------------------------------------!>
<object id="MPlayer2" height="0" width="0" name="MPlayer2"  classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" > 
    <param name="URL" value="music/page.wav" align="center" border="0"><param name="AutoStart" value="0"><param name="Balance" value="0">
	<param name="enabled" value="-1"><param name="EnableContextMenu" value="-1"><param name="PlayCount" value="1">
	<param name="loop" value="1"><param name="rate" value="1"><param name="currentPosition" value="0">
	<param name="currentMarker" value="0"><param name="defaultFrame" value=""><param name="invokeURLs" value="0">
	<param name="baseURL" value=""><param name="stretchToFit" value="0"><param name="volume" value="60">
	<param name="mute" value="0"><param name="uiMode" value="mini"><param name="windowlessVideo" value="-1">
	<param name="fullScreen" value="0"><param name="enableErrorDialogs" value="-1"><param name="SAMIStyle" value>
	<param name="SAMILang" value><param name="SAMIFilename" value><param name="captioningID" value><param name="controls" value="all">/>
</object>

<!--最小化控件------------------------------------------------------------------------!>
<object id=minimize type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">  
  <param name="Command" value="Minimize"> 
</object>  



<!--最小化显示图片------------------------------------------------------------------------!>
<img src='image/11.png' id="oImg" style='display:none;width:140;height:27;top:-1px;left:0px;position:absolute' >

<!--logo时背景图片------------------------------------------------------------------------!>

<div id="logoDiv" name="logoDiv">

<img src='image/a1.jpg' name="logoB" id="logoB" 
style='display:block;width:802;height:602;top:0px;left:0px;position:absolute;z-index:0' >



<img src='image/漫卷诗书.gif' name="logo1" id="logo1" 
style='display:block;top:143px;left:261px;position:absolute;z-index:2' onclick="window.close()"
onmouseover="this.src='image/漫卷诗书11.gif'" onmouseout="this.src='image/漫卷诗书.gif'">



<img src='image/拔剑相顾.gif' name="logo2" id="logo2" 
style='display:block;top:143px;left:340px;position:absolute;z-index:1' 
onmouseover="this.src='image/拔剑相顾11.gif';logo1.style.zIndex=0;logo3.style.zIndex=0" 
onmouseout="this.src='image/拔剑相顾.gif';logo1.style.zIndex=2;logo3.style.zIndex=2"
onclick="logo4.style.display='block'">

<img src='image/开卷有益.gif' name="logo3" id="logo3" 
style='display:block;top:143px;left:420px;position:absolute;z-index:2' onclick="closeLogo();InitializeControls();"
onmouseover="this.src='image/开卷有益11.gif'" onmouseout="this.src='image/开卷有益.gif'">

</div>

<img src='image/11.jpg' name="logo4" id="logo4" 
style='display:none;width:802;height:602;top:0px;left:0px;position:absolute;z-index:4'
onclick="this.style.display='none'" >

<div align:right>
<img src='image/bg1.jpg' name="logo5" id="logo5"  
style='display:block;width:799;height:602;top:0px;left:0px;position:absolute;z-index:-90;'>
</div>

<div id="lx" name="lx" style="display:none;position:absolute;top:496;left:101">
<a href="http://hi.baidu.com/0独孤剑痴0/blog/item/c300d10244ee3ce109fa9325.html">联系我们</a>
</div>

</body>






<!--0   已经实现的功能------------------------------------------------------------------------!>
<!--1   观看txt、html格式书------------------------------------------------------------------------!>
<!--2   语音阅读、自动翻页、语速控制-------------------------------------------------------------------!>
<!--3   按键翻页、快速跳转-------------------------------------------------------------------!>
<!--4   隐藏窗口（伪·最小化）------------------------------------------------------------------------!>
<!--5   更换背景（伪·翻页动画）--------------------------------------------------------------------!>
<!--6   音乐播放、音量控制------------------------------------------------------------------------!>
<!--7   保存书签------------------------------------------------------------------------!>
<!--8   语音暂停、继续------------------------------------------------------------------------!>
<!--9   语音音量通过上下方向键控制-------------------------------------------------------------------!>
<!--10  切换背景--------------------------------------------------------------------!>


<!--0   还没有实现的功能------------------------------------------------------------------------!>
<!--1   鼠标拖动窗口移动------------------------------------------------------------------------!>
<!--2   最小化--------------------------------------------------------------------------!>
<!--3   界面美化、按钮美化、鼠标停留信息--------------------------------------------------!>
<!--4   背景切换、主题选择------------------------------------------------------------------------!>
<!--5   开书动画、封面------------------------------------------------------------------------!>
<!--6   翻页动画     ------------------------------------------------------------------------!>
<!--7   右键菜单------------------------------------------------------------------------!>
<!--8   自选字体型号、大小、颜色、行距----------------------------------------------------------------!>


<!--!!  若出现关闭不了的情况请用 alt+F4 执行关闭，或打开任务管理器---进程--找到mshta.exe结束该进程------!>

