xslt文件:
<?xml version="1.0" encoding="gb2312" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="no" />
<xsl:template match="//Menu">
<link href="../CSS/Menu.css" rel="stylesheet" type="text/css"></link>
<DIV class="menuskin" id="popmenu" onmouseover="clearhidemenu();highlightmenu(event,'on')" style="Z-INDEX: 100" onmouseout="highlightmenu(event,'off');dynamichide(event)"></DIV>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<TABLE class="tableborder1" cellSpacing="0" cellPadding="0" align="center" ID="Table1">
<TBODY>
<TR>
<TD width="1"></TD>
<TD class="TopDarkNav" width="*" height="9">
<FONT face="宋体"></FONT>
</TD>
<TD width="1"></TD>
</TR>
<TR>
<TD width="1" height="70"></TD>
<TD class="TopLighNav2" height="70">
<TABLE width="100%" align="center" border="0" ID="Table2">
<TBODY>
<TR>
<TD align="left" width="25%">
<A href="http://bbs.dvbbs.net/">
<IMG src="../Images/Menu/logo5_2.gif" border="0" />
</A>
</TD>
<TD id="Top_ads" align="middle" width="65%">
<FONT face="宋体"></FONT>
</TD>
<TD align="right" width="10%">
<BR></BR>
<A href="http://www.aspsky.cn/email.asp" target="_blank">联系我们</A>
<BR></BR>
<A href="http://bbs.dvbbs.net/boardhelp.asp?boardID=0">论坛帮助</A>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
<TD width="1"></TD>
</TR>
<TR>
<TD width="1"></TD>
<TD class="TopLighNav" width="*" height="9"></TD>
<TD width="1"></TD>
</TR>
<TR>
<TD width="1"></TD>
<TD class="TopLighNav1" id="Menu" vAlign="center" height="22">
<IMG src="../Images/Menu/navspacer.gif" align="absMiddle" border="0" />
<A onmouseover="showmenu(event,'<div class=menuitems><a style=font-size:9pt;line-height:14pt; href=boardstat.asp?boardid=0 >今日贴数图例</a></div>')" style="CURSOR: hand">
论坛状态</A>
</TD>
<TD width="1"></TD>
</TR>
</TBODY>
</TABLE>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="gb2312" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="no" />
<xsl:template match="//Menu">
<link href="../CSS/Menu.css" rel="stylesheet" type="text/css"></link>
<DIV class="menuskin" id="popmenu" onmouseover="clearhidemenu();highlightmenu(event,'on')" style="Z-INDEX: 100" onmouseout="highlightmenu(event,'off');dynamichide(event)"></DIV>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<FONT face="宋体"></FONT>
<TABLE class="tableborder1" cellSpacing="0" cellPadding="0" align="center" ID="Table1">
<TBODY>
<TR>
<TD width="1"></TD>
<TD class="TopDarkNav" width="*" height="9">
<FONT face="宋体"></FONT>
</TD>
<TD width="1"></TD>
</TR>
<TR>
<TD width="1" height="70"></TD>
<TD class="TopLighNav2" height="70">
<TABLE width="100%" align="center" border="0" ID="Table2">
<TBODY>
<TR>
<TD align="left" width="25%">
<A href="http://bbs.dvbbs.net/">
<IMG src="../Images/Menu/logo5_2.gif" border="0" />
</A>
</TD>
<TD id="Top_ads" align="middle" width="65%">
<FONT face="宋体"></FONT>
</TD>
<TD align="right" width="10%">
<BR></BR>
<A href="http://www.aspsky.cn/email.asp" target="_blank">联系我们</A>
<BR></BR>
<A href="http://bbs.dvbbs.net/boardhelp.asp?boardID=0">论坛帮助</A>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
<TD width="1"></TD>
</TR>
<TR>
<TD width="1"></TD>
<TD class="TopLighNav" width="*" height="9"></TD>
<TD width="1"></TD>
</TR>
<TR>
<TD width="1"></TD>
<TD class="TopLighNav1" id="Menu" vAlign="center" height="22">
<IMG src="../Images/Menu/navspacer.gif" align="absMiddle" border="0" />
<A onmouseover="showmenu(event,'<div class=menuitems><a style=font-size:9pt;line-height:14pt; href=boardstat.asp?boardid=0 >今日贴数图例</a></div>')" style="CURSOR: hand">
论坛状态</A>
</TD>
<TD width="1"></TD>
</TR>
</TBODY>
</TABLE>
</xsl:template>
</xsl:stylesheet>
解决方案 »
- asp.net mvc下如何使用在线编辑器?
- 求助个SQL问题存储过程问题
- 急问,关于Microsoft Visual Studio2008打开项目后老是出现“microsoft visual studio 遇到了问题,需要关闭”怎么解决
- VS2003 TreeView
- textarea中如何显示带有html标记的文字
- DataGrid的问题(能实现带有下拉框的标题行吗)
- 请教一下。。。
- 用System.Web.UI.WebControls.Calendar输入日期,太占页面了,你们平时怎么做?
- asp.net 中的ListBox控件问题!!!
- 意外错误0x80074002~这个怎么解决
- 一个循环的问题
- 谁知道这个问题如何解决?
//Pop-it menu- By Dynamic Drive - Modified by Wbird
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use
var menuOffX=0 //菜单距连接文字最左端距离
var menuOffY=18 //菜单距连接文字顶端距离var fo_shadows=new Array()
var linkset=new Array()////No need to edit beyond herevar ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all
var ns4=document.layers
//短信窗口
function openScript(url, width, height){
var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=no' );
}
//插件窗口
function PlusOpen(url, width, height){
window.open(url,"PlusOpen",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no,status=yes' );
}function mybook() {
h = 300;
w = 300;
t = ( screen.availHeight - h ) / 2;
l = ( screen.availWidth - w ) / 2;
window.open("http://forumAd.to5198.com/common/login.jsp?sCheckUrl=/out/login.jsp&sDesUrl=/out/mybook.jsp", "我的服务",
"left=" + l + ",top=" + t + ",height=" + h + ",width=" + w
+ ",toolbar=no,status=no,scrollbars=no,resizable=yes" );
return;
}
function showmenu(e,vmenu,mod){
if (!document.all&&!document.getElementById&&!document.layers)
return
which=vmenu
clearhidemenu()
ie_clearshadow()
menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj
if (ie4||ns6)
menuobj.innerHTML=which
else{
menuobj.document.write('<layer name=gui bgColor=#E6E6E6 width=165 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
menuobj.document.close()
}
menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
eventX=ie4? event.clientX : ns6? e.clientX : e.x
eventY=ie4? event.clientY : ns6? e.clientY : e.y
var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY
if (rightedge<menuobj.contentwidth)
menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX-menuobj.contentwidth+menuOffX : ns6? window.pageXOffset+eventX-menuobj.contentwidth : eventX-menuobj.contentwidth
else
menuobj.thestyle.left=ie4? ie_x(event.srcElement)+menuOffX : ns6? window.pageXOffset+eventX : eventX
if (bottomedge<menuobj.contentheight&&mod!=0)
menuobj.thestyle.top=ie4? document.body.scrollTop+eventY-menuobj.contentheight-event.offsetY+menuOffY-23 : ns6? window.pageYOffset+eventY-menuobj.contentheight-10 : eventY-menuobj.contentheight
else
menuobj.thestyle.top=ie4? ie_y(event.srcElement)+menuOffY : ns6? window.pageYOffset+eventY+10 : eventY
menuobj.thestyle.visibility="visible"
ie_dropshadow(menuobj,"#999999",3)
return false
}function ie_y(e){
var t=e.offsetTop;
while(e=e.offsetParent){
t+=e.offsetTop;
}
return t;
}
function ie_x(e){
var l=e.offsetLeft;
while(e=e.offsetParent){
l+=e.offsetLeft;
}
return l;
}
function ie_dropshadow(el, color, size)
{
var i;
for (i=size; i>0; i--)
{
var rect = document.createElement('div');
var rs = rect.style
rs.position = 'absolute';
rs.left = (el.style.posLeft + i) + 'px';
rs.top = (el.style.posTop + i) + 'px';
rs.width = el.offsetWidth + 'px';
rs.height = el.offsetHeight + 'px';
rs.zIndex = el.style.zIndex - i;
rs.backgroundColor = color;
var opacity = 1 - i / (i + 1);
rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
//el.insertAdjacentElement('afterEnd', rect);
fo_shadows[fo_shadows.length] = rect;
}
}
function ie_clearshadow()
{
for(var i=0;i<fo_shadows.length;i++)
{
if (fo_shadows[i])
fo_shadows[i].style.display="none"
}
fo_shadows=new Array();
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}function hidemenu(){
if (window.menuobj)
menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
ie_clearshadow()
}function dynamichide(e){
if (ie4&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}function delayhidemenu(){
if (ie4||ns6||ns4)
delayhide=setTimeout("hidemenu()",500)
}function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}function highlightmenu(e,state){
if (document.all)
source_el=event.srcElement
else if (document.getElementById)
source_el=e.target
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
else{
while(source_el.id!="popmenu"){
source_el=document.getElementById? source_el.parentNode : source_el.parentElement
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
}
}
}if (ie4||ns6)
document.onclick=hidemenu
function doSClick() {
var targetId, srcElement, targetElement, imageId, imageElement;
srcElement = window.event.srcElement;
targetId = srcElement.id + "content";
targetElement = document.all(targetId);
imageId = srcElement.id;
imageId = imageId.charAt(0);
imageElement = document.all(imageId);
if (targetElement.style.display == "none") {
imageElement.src = "Skins/Default/minus.gif"
targetElement.style.display = "";
} else {
imageElement.src = "Skins/Default/plus.gif"
targetElement.style.display = "none";
}
}
function doClick() {
var targetId, srcElement, targetElement;
srcElement = window.event.srcElement;
targetId = srcElement.id + "_content";
targetElement = document.all(targetId);
if (targetElement.style.display == "none") {
srcElement.src = "Skins/Default/minus.gif"
targetElement.style.display = "";
} else {
srcElement.src = "Skins/Default/plus.gif"
targetElement.style.display = "none";
}
}//HTML过滤函数
function HTMLEncode(text)
{
text = text.replace(/&/g, "&") ;
text = text.replace(/"/g, """) ;
text = text.replace(/</g, "<") ;
text = text.replace(/>/g, ">") ;
text = text.replace(/'/g, "’") ; return text ;
}
function bbimg(o){
var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
return false;
}
function Dvbbs_ViewCode(replyid)
{
var bodyTag="<html><head><style type=text/css>.quote{margin:5px 20px;border:1px solid #CCCCCC;padding:5px; background:#F3F3F3 }\nbody{boder:0px}.HtmlCode{margin:5px 20px;border:1px solid #CCCCCC;padding:5px;background:#FDFDDF;font-size:14px;font-family:Tahoma;font-style : oblique;line-height : normal ;font-weight:bold;}\nbody{boder:0px}</style></head><BODY bgcolor=\"#FFFFFF\" >";
bodyTag+=document.getElementById('scode'+replyid).CodeText.value
bodyTag+="</body></html>"
preWin=window.open('preview','','left=0,top=0,width=550,height=400,resizable=1,scrollbars=1, status=1, toolbar=1, menubar=0');
preWin.document.open();
preWin.document.write(bodyTag);
preWin.document.close();
preWin.document.title="查看贴子内容";
preWin.document.charset="UTF-8";
}
<?xml version="1.0" encoding="gb2312"?>
<Menu id="Root">
<MenuParent ParentID="M01" ParentName="承运单管理">
<MenuItem RootID="M01" RootName="承运单管理" linkURL="..." iconURL="" CurrentID="M0101" CurrentName="管理承运单" />
<MenuItem RootID="M01" RootName="承运单管理" linkURL="..." iconURL="" CurrentID="M0102" CurrentName="撤销承运单" />
<MenuItem RootID="M01" RootName="承运单管理" linkURL="..." iconURL="" CurrentID="M0103" CurrentName="分配运输公司和司机" />
<MenuItem RootID="M01" RootName="承运单管理" linkURL="..." iconURL="" CurrentID="M0104" CurrentName="管理运费" />
<MenuItem RootID="M01" RootName="承运单管理" linkURL="..." iconURL="" CurrentID="M0105" CurrentName="审核运费" />
<MenuItem RootID="M01" RootName="承运单管理" linkURL="..." iconURL="" CurrentID="M0106" CurrentName="输入回单" />
<MenuItem RootID="M01" RootName="承运单管理" linkURL="..." iconURL="" CurrentID="M0107" CurrentName="查询承运单" />
<MenuItem RootID="M01" RootName="承运单管理" linkURL="..." iconURL="" CurrentID="M0108" CurrentName="查询运费" />
</MenuParent>
<MenuParent ParentID="M02" ParentName="在途信息管理">
<MenuItem RootID="M02" RootName="在途信息管理" linkURL="..." iconURL="" CurrentID="M0201" CurrentName="管理在途信息" />
<MenuItem RootID="M02" RootName="在途信息管理" linkURL="..." iconURL="" CurrentID="M0202" CurrentName="查询在途信息" />
</MenuParent>
<MenuParent ParentID="M03" ParentName="客户查询">
<MenuItem RootID="M03" RootName="客户查询" linkURL="..." iconURL="" CurrentID="M0301" CurrentName="查询在途信息" />
<MenuItem RootID="M03" RootName="客户查询" linkURL="..." iconURL="" CurrentID="M0302" CurrentName="查询承运单" />
</MenuParent>
</Menu>
我只是把它注释掉了To LoveCherry(最讨厌你们这些要代码的了,一点技术含量都灭有):
兄弟,那是怎么包含的?直接说出来吧。^_^