日期:2014-05-18  浏览次数:20890 次

望各位高手指点(PS:真想不出办法):一个js文件 一个ins文件 如何一个控件把2个文件的内容控制在3个textbox 其中textbox显示出下面的样式
文本框按照以下这样排出
____

aa
____

—— ——
aaa1 进入  
—— ——

—— ——
aaa2 退出
—— ——  

.。。。后面的样式一样 省略

js文件:
var bol1=0,bol2=0;
var bol11=0,bol12=0;
var bol21=0,bol22=0;

function display(obj)
{  
obj.style.display="";
}
function hidden(obj)
{
obj.style.display="none";
}
function change_d(obj)  
  {
switch (obj.id)
{
case "a": if(bol1==0) obj.className="table_topmenu_over";if(bol1==1) obj.className="table_topmenu_click"; break;
case "b": if(bol2==0) obj.className="table_topmenu_over";if(bol2==1) obj.className="table_topmenu_click"; break;
}
}
function change_h(obj)  
{
switch (obj.id)
{
case "a": if(bol1==0) obj.className="table_topmenu";if(bol1==1) obj.className="table_topmenu_click"; break;
case "b": if(bol2==0) obj.className="table_topmenu";if(bol2==1) obj.className="table_topmenu_click"; break;
}
}
function hiddenall()
{
// if(bol!=1) {hidden(aa);hidden(bb);hidden(cc);hidden(dd)}
}
 
function over(obj)
{
switch (obj.id)
{
case "a": if(bol1==0) {obj.className="table_topmenu_over";} if(bol1==1) {obj.className="table_topmenu_click";} display(aa);break;
case "b": if(bol2==0) {obj.className="table_topmenu_over";} if(bol2==1) {obj.className="table_topmenu_click";} display(bb);break;
}
}
function out(obj)
{
switch (obj.id)
{
case "a": if(bol1==0) {obj.className="table_topmenu";} if(bol1==1) {obj.className="table_topmenu_click";} hidden(aa);break;
case "b": if(bol2==0) {obj.className="table_topmenu";} if(bol2==1) {obj.className="table_topmenu_click";} hidden(bb);break;
}
}
function childover(obj)
{
obj.className="cell_childmenu_over";
}
function childout(obj)
{
obj.className="cell_childmenu";
}
function down(obj)
{
a.className="table_topmenu";bol1=0;
b.className="table_topmenu";bol2=0;
switch (obj.id)
{
case "aa1": {a.className="table_topmenu_click";bol1=1;hidden(aa);window.frames('main').location.href="Register.aspx?begin=1";break;}
case "aa2": {a.className="table_topmenu_click";bol1=1;hidden(aa);window.frames('main').location.href="CancelRegister.aspx";break;}
 
case "bb1": {b.className="table_topmenu_click";bol2=1;hidden(bb);window.frames('main').location.href="RegiserReportFind.aspx";break;}
case "bb2": {b.className="table_topmenu_click";bol2=1;hidden(bb);window.frames('main').location.href="Register_All_Report_Find.aspx";break;}
 
}
}

function table_over(obj)
{
switch (obj.id)
{
case "aaa1": if(bol11==0) {aaa1.className="table_childmenu_over"} if(bol11==1) {aaa1.className="table_childmenu_clicked_over"} break;
case "aaa2": if(bol12==0) {aaa2.className="table_childmenu_over"} if(bol12==1) {aaa2.className="table_c