官方QQ群:127876820【C#编程技术-全国站--未满人】

index_js源码


function jsleft(lefts,leftn)
{
var sl=lefts;
sl = sl.substring(0,leftn);
return sl;
}
function jsright(rights,rightn)
{
var sr=rights;
sr = sr.substring(sr.length-rightn,sr.length);
return sr;
}

function index_none(){
if(index_top.style.display=='')
{
index_top.style.display="none"
index_img_top.src="images/up_icon1.jpg";
}else{
index_top.style.display=""
index_img_top.src="images/up_icon.jpg";
}
}
function on_index_left(){
if(index_left.style.display=='')
{
index_left.style.display="none"
index_img_left.src="images/line1n.jpg";
}else{
index_left.style.display=""
index_img_left.src="images/line1.jpg";
}
}
function on_index_right(){
if(index_right.style.display=='')
{
index_right.style.display="none"
index_img_right.src="images/Fwdw_icons_21n.png";
}else{
index_right.style.display=""
index_img_right.src="images/Fwdw_icons_21.png";
}
}
function login_winopen(){
var targeturl=""
newwin=window.open("index.htm","maxwindow","top=-5,left=-5,width=" + window.screen.width + ",height=" + window.screen.height);
}

 

//超链接指向,str标题,href地址
var tdcount=0
var isnon=0
function HrefTarget(str,href)
{  
   for(i=0;i<=1+tdcount;i++)
   {
    if(jsright(window.parent.parenttable.rows[0].cells[i].innerHTML,8)==str+"</A>")
    {
     isnon=1;
     break ;
    }else{
     isnon=0;
     }
   }
   if(isnon!=1){
   var parentfrm=window.parent.index_t_menu;
   if(tdcount<=3)
   {
   var add_dt=parentfrm.insertCell()
   add_dt.width="89";
   add_dt.height="28"
   add_dt.align="center"
   add_dt.ondblclick=bgcolor_onclick
//   add_dt.name="str"+tdcount
   add_dt.background="images/menu_no.jpg"
   add_dt.innerHTML="<a href="+href+"  target=index_if_main>"+str+"</a>"
   tdcount++;
 }
 else
 {
     window.parent.parenttable.rows[0].cells[5].innerHTML="<a href="+href+"  target=index_if_main>"+str+"</a>"
 }
 }
 }

function Del_Td(){
  index_t_menu.deleteCell(2)
}

var oldColor="";
var oldSelect=null;
function bgcolor_onclick() {
alert(event.srcElement.height)
alert('sdfsdf')
}

posted @ 2010-09-22 17:22  碧海蓝天_C#  阅读(995)  评论(0编辑  收藏  举报
官方QQ群:127876820【C#编程技术-全国站--未满人】