leftbigtype.htc

来自「完美政府版,正版网站解决方案」· HTC 代码 · 共 58 行

HTC
58
字号
<public:component>
<public:attach event="onmouseover" onevent="OnMouseOver()" />
<public:attach event="onmouseout" onevent="OnMouseOut()" />
<public:attach event="onclick" onevent="Onclick()" />
<script>
        this.style.width='100%';
        this.style.height='24';
        this.style.padding='4 0 2 6';
        this.style.color='#ffffff';
	this.style.border='1px solid #141414';
        this.style.backgroundImage='url(skin/vista/vistapic/v2.gif)';
        this.style.cursor='pointer';
	var myid=this.id;
	var menuboard=myid+"menu";
        self.document.getElementById(menuboard).style.display='';
   function OnMouseOut()
   {
        this.style.backgroundImage='url(skin/vista/vistapic/v2.gif)';
        
   }
   function OnMouseOver()
   {
        this.style.backgroundImage='url(skin/vista/vistapic/v5.gif)';
   }
   function Onclick()
   {
        showtbe(this.toid);
   }

//function showtbe(tbnum){whichEl = eval("tbtype" + tbnum);if (whichEl.style.display == "none"){eval("tbtype" + tbnum + ".style.display=\"\";");}else{eval("tbtype" + tbnum + ".style.display=\"none\";");}}
function showtbe(){
	if(self.document.getElementById(menuboard).style.display=="none"){
		self.document.getElementById(menuboard).style.display="";
	}
	else{
		self.document.getElementById(menuboard).style.display="none";
	}
	Alpha();
}

var p=-100;
function Alpha(){

	if (p<100){
		p=p+10;
		//alert(p);
		self.document.getElementById(myid).style.filter='alpha(opacity='+Math.abs(p)+')';
		self.setTimeout(Alpha,1);
	}
	else{   	p=-100;
	}
}


   
</script>
</public:component>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?