国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > HTC > 正文

發布一個通用面板程序(htc)

2024-07-21 02:30:04
字體:
來源:轉載
供稿:網友
panel.htc

<public:property name="imagessrc" />
<public:property name="panelcaption" />
<public:attach event="ondocumentready" handler="doinit" />
<public:attach event="onclick" handler="load" />
<script language="jscript">
window.panel=new array();
function doinit(){
if (!element.document.getelementbyid("opanelheader")){
inithtml='<table height="31" cellspacing="0" id="opanelheader" cellpadding="0" width="98%" border="0" align="center" >'+
'<tr>'+
' <td class="pltitlespace" width="1%" height="31">&nbsp;</td>'+
' <td class="pltitleselect" width="15%" height="31" istitle="true">'+
' <table style="font-size: 12px" height="25">'+
' <tr>'+
' <td><img height="18" src="'+imagessrc+'" width="18"></td>'+
' <td valign="bottom">'+panelcaption+'</td>'+
' </tr>'+
' </table>'+
' </td>'+
' <td class="pltitlespace" width="*%" height="31">&nbsp;</td>'+
'</tr>'+
'</table>';
element.insertadjacenthtml("beforebegin",inithtml);
opanelheader.attachevent("onclick",opanelheaderclick);
}
else{
var rows=opanelheader.rows[0];
var cell=rows.insertcell(rows.cells.length-1);
cell.classname="pltitlespace";
cell.width="1%";
cell.innerhtml="&nbsp;";
var cell=rows.insertcell(rows.cells.length-1);
cell.classname="pltitleunselect";
cell.istitle="true";
cell.width="15%";
cell.innerhtml= '<table style="font-size: 12px" height="25">'+
' <tr>'+
' <td><img height="18" src="'+imagessrc+'" width="18"></td>'+
' <td valign="bottom">'+panelcaption+'</td>'+
' </tr>'+
'</table>';
}
window.panel[window.panel.length]=element;
}
function opanelheaderclick(){
var e = getobj(window.event.srcelement);
if (e)
if (e.classname=="pltitleunselect"){
for(i=0;i<window.panel.length;i++){
window.panel[i].classname="plpanelunselect";
opanelheader.rows[0].cells[i*2+1].classname="pltitleunselect";
}
window.panel[(e.cellindex+1)/2-1].classname="plpanelselect";
e.classname="pltitleselect";
}
}
function getobj(src){
if (src.parentelement.tagname!="body"){
if (src.istitle=="true") return src;
return getobj(src.parentelement)
}
return null;
}
</script>

common.css

.pltitleselect
{
border-right: #999999 1px solid;
border-top: #999999 1px solid;
font-size: 12px;
border-left: #999999 1px solid;
cursor: hand;
border-bottom: #999999 0px solid;
background-color: #ffffff;
text-align: center;
}
.pltitleunselect
{
border-right: #999999 1px solid;
border-top: #999999 1px solid;
font-size: 12px;
border-left: #999999 1px solid;
cursor: hand;
border-bottom: #999999 1px solid;
background-color: #ececec;
text-align: center;
}
.pltitlespace
{
font-size: 12px;
border-bottom: #999999 1px solid;
text-align: center;
}
.plpanelselect
{
border-right: #999999 1px solid;
border-top: #999999 0px solid;
display: block;
font-size: 12px;
border-left: #999999 1px solid;
border-bottom: #999999 1px solid;
background-color: #ffffff;
behavior: url(panel.htc);
}
.plpanelunselect
{
border-right: #999999 1px solid;
border-top: #999999 0px solid;
display: none;
font-size: 12px;
border-left: #999999 1px solid;
border-bottom: #999999 1px solid;
background-color: #ffffff;
behavior: url(panel.htc);
}

index.htm

<html>
<head>
<meta name="generator" content="microsoft visual studio 6.0">
<title></title>
<link href="common.css" type="text/css" rel="stylesheet">
</head>
<body>
<br>
<form>
<table class="plpanelselect" id="ocontent" height="90%" cellspacing="0" cellpadding="0"
width="98%" border="0" imagessrc=http://www.163design.net/n/b/"sheet.gif" panelcaption="個人信息" align="center">
<tr>
<td width="100%" align="center" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="107">
<tr>
<td colspan="2" height="26"> </td>
</tr>
<tr>
<td height="26" width="50%">用戶名:</td>
<td width="50%" height="26">密碼:</td>
</tr>
<tr>
<td height="26" width="50%"></td>
<td width="50%" height="26">
</td>
</tr>
<tr>
<td height="27" width="50%">姓名:</td>
<td width="50%" height="27"> </td>
</tr>
<tr>
<td height="27" width="50%"><input type="submit" value="test" name="es"> </td>
<td width="50%" height="27"></td>
</tr>
</table>
</td>
</tr>
</table>
<table class="plpanelselect" id="ocontent" height="90%" cellspacing="0" cellpadding="0"
width="98%" border="0" imagessrc=http://www.163design.net/n/b/"sheet.gif" panelcaption="詳細信息" align="center">
<tr>
<td width="100%" align="center" valign="top">
gdfgdfgdf
</td>
</tr>
</table>

</form>
</body>
</html>

中國最大的web開發資源網站及技術社區,
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表

圖片精選

主站蜘蛛池模板: 桂平市| 博野县| 遵义市| 上高县| 历史| 萨嘎县| 梨树县| 专栏| 辽中县| 庐江县| 永平县| 本溪市| 乌兰察布市| 如东县| 灌南县| 北辰区| 英山县| 乌兰县| 克东县| 邹城市| 巴塘县| 田林县| 台前县| 枞阳县| 湘西| 沙坪坝区| 曲阜市| 吴堡县| 永济市| 苍山县| 明星| 盐山县| 即墨市| 梅州市| 榆中县| 普安县| 余江县| 岳普湖县| 定州市| 罗田县| 正定县|