wancn
小狐狸
小狐狸
  • UID7140
  • 注册日期2005-07-06
  • 最后登录2005-07-18
  • 发帖数4
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
阅读:2694回复:2

紧急求助,XSLT的问题,帮帮小弟~~加急加急

楼主#
更多 发布于:2005-07-07 08:45
遇到JS就加载不进来,一直处于loading状态
下面是xslt代码,请高手指点

<?xml version="1.0" encoding="gb2312" ?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:apply-templates select="walkjoyProduct" />
</xsl:template>
<xsl:template match="walkjoyProduct">
<html>
<head>
<title>明基中国 - 产品中心 - <xsl:value-of select="Prod/@TypeCName"/> - <xsl:value-of select="Prod/@CName"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"/>
<meta name="Description" content="明基电通产品"/>
<link href="/Css/walkjoy.css" rel="stylesheet" type="text/css" />
<link href="/Product/Css/Product.css" rel="stylesheet" type="text/css" />
<link href="/Products/Css/Product.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="/Js/Slidemenu.js" charset="gb2312"></script>
<script language="javascript" src="/Js/Rollover.js" charset="gb2312"></script>
<script language="JavaScript" src="/Products/JS/MenuBar.js" charset="gb2312"></script>
<script>
function GoImg(url)
{
var pos = url.indexOf('.');
var newurl = url.substr(0,pos) + '_T.jpg';
window.open(newurl);
}
</script>
<style>
.CommentStyle
{
color: #58595b;
font-family: Arial;
font-size: 14px;
font-weight: bold;
line-height:16px;
vertical-align:bottom;
letter-spacing: 1px;
}
</style>
</head>
<body leftmargin="0" topmargin="0">
<!-- 网页头部开始 -->
<script language="javascript" src="/Js/Head.js" charset="gb2312"></script>
<script language="javascript" charset="gb2312">showMenu('product');</script>
<!-- 网页头部结束 -->
<!-- 网页左部开始 -->
<script language="javascript" charset="gb2312">
<xsl:attribute name="src">/<xsl:value-of select='Prod/@TypeName'/>/Js/Left.js</xsl:attribute>

</script>
<!-- 网页左部结束 -->
<!-- 网页正文开始 --><a name="top"></a>
<table width="493" align="center" border="0" cellspacing="0" cellpadding="0">
<tr><td background="/Product/Images/bannerbg.jpg" height="45" class="ProdTitle"><xsl:apply-templates select="Prod/@CName"/></td></tr>
<xsl:apply-templates select="Comment" />
</table>

<table width="493" align="center" border="0" cellspacing="0" cellpadding="0">
<tr><td height="20" colspan="4"></td></tr>
<tr>
<td width="20" height="155"></td>
<td width="152" height="155">
<img align="absmiddle" border="0">
<xsl:attribute name="src">/Products/Images/<xsl:value-of select="Prod/@ImgName"/></xsl:attribute>
<xsl:attribute name="width"><xsl:value-of select="Prod/@ImgWidth"/></xsl:attribute>
<xsl:attribute name="height"><xsl:value-of select="Prod/@ImgHeight"/></xsl:attribute>
<xsl:attribute name="title"><xsl:value-of select="Prod/@ImgDesc"/></xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="Prod/@ImgDesc"/></xsl:attribute>
</img>
</td>
<td width="51" height="155" align="right" valign="top">
<img src="/Product/Images/title3.gif" align="absmiddle" />
</td>
<td width="270" height="155" valign="top">
<table width="270" align="center" border="0" cellspacing="0" cellpadding="0" class="ProdTable">
<tr>
<td width="270" align="left" class="ProdName" colspan="2"><xsl:value-of select="Prod/@CName"/></td>
</tr>
<tr><td width="270" height="5" colspan="2"></td></tr>
<xsl:apply-templates select="Feature" />
<tr><td width="270" height="10" colspan="2"></td></tr>
<tr>
<td align="left" class="ProdPrice" colspan="2">

<img src="/Product/Images/buy.gif" align="absmiddle" style="cursor:hand;margin-right:4px;">
<xsl:attribute name="onclick">window.open("/shop/search.aspx?PCID=<xsl:value-of select="Prod/@ProductID"/>")</xsl:attribute>
<xsl:attribute name="title">立即购买<xsl:value-of select="Prod/@CName"/></xsl:attribute>
</img>

<xsl:apply-templates select="OtherInfo" />

<img src="/Product/Images/download.gif" align="absmiddle" style="cursor:hand;margin-left:4px;">
<xsl:attribute name="onclick">window.open("<xsl:value-of select="Prod/@DownloadUrl"/>")</xsl:attribute>
<xsl:attribute name="title">相关下载</xsl:attribute>
</img>

</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="15" colspan="4"></td>
</tr>
</table>
<!-- 菜单栏 -->
<div name="MenuBar" id="MenuBar"></div>
<!-- 菜单栏结束 -->
<table width="493" align="center" border="0" cellspacing="0" cellpadding="0">
<tr><td height="40" align="right"><img src="/Product/Images/print.gif" align="absmiddle" title="打印本页" onclick="javascript:window.print();" style="cursor:hand;" /></td><td width="20"></td></tr>
</table>


<table id="Detail" width="493" align="center" cellspacing="0" cellpadding="0" class="ProdTable">
<xsl:apply-templates select="Detail" />
</table>

<table id="Specs" width="453" align="center" cellspacing="1" cellpadding="0" border="1" class="ProdSpecs">
<xsl:apply-templates select="Specs" />
</table>

<table id="ProdImg" width="493" align="center" cellspacing="1" cellpadding="0" border="0" class="ProdTable" style="display:none;">
<tr>
<td width="20"></td>
<td width="473">
<xsl:apply-templates select="ProdImg" />
</td>
</tr>
</table>

<table width="493" align="center" border="0" cellspacing="0" cellpadding="0">

<tr>
<td width="20"></td>
<td height="40" align="right" width="453">
<a href="#top" title="回顶部"><img src="/Product/Images/top.gif" align="absmiddle" border="0" title="回顶部"/></a>
</td>
<td width="20"></td>
</tr>
<tr>
<td width="20"></td>
<td class="ProdTable" colspan="2"  width="473">
<b>免责说明:</b>产品外形、技术参数、功能、价格等请以实际产品及该产品说明书、铭牌为准,如因技术更新产生变更,恕不另行通知!
</td>
</tr>
</table>

<script language="javascript" charset="gb2312">showMenuBar('Detail');</script>

<!-- 网页正文结束 -->
<!-- 网页尾部开始 -->
<script language="javascript" src="/Js/End.js" charset="gb2312"></script>
<!-- 网页尾部结束 -->
</body>
</html>
</xsl:template>

<xsl:template match="Comment">
<tr>
<td class="CommentStyle" height="25">
<xsl:apply-templates select="CommentDesc" />
</td>
</tr>
<xsl:if test="CommentDesc[.!= '']">
<tr><td bgcolor="#E1E0EB"></td></tr>
</xsl:if>
</xsl:template>

<xsl:template match="Prod/@CName">
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:template>

<xsl:template match="CommentDesc">
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:template>

<xsl:template match="OtherInfo">
<xsl:if test="MiniUrl[.!= '']">
<img src="/Product/Images/demo.gif" align="absmiddle" style="cursor:hand;margin-left:4px;margin-right:4px;" title="观看演示">
<xsl:attribute name="onclick">window.open("<xsl:value-of select="MiniUrl"/>")</xsl:attribute>
</img>
</xsl:if>
</xsl:template>

<xsl:template match="MiniUrl">
<xsl:apply-templates />
</xsl:template>

<xsl:template match="Feature">
<tr valign="top">
<td width="5">·</td>
<td width="265"><xsl:apply-templates select="FeatureTopic" /></td>
</tr>
</xsl:template>

<xsl:template match="FeatureTopic">
<xsl:value-of select="." disable-output-escaping="yes" />
</xsl:template>

<xsl:template match="Specs">
<xsl:if test="SpecsDesc[.!= '---']">
<xsl:if test="SpecsDesc[.!= '']">
<tr>
<td width="160" style="padding-left:20px" valign="top"><xsl:apply-templates select="SpecsTypeName" /></td>
<td width="293" style="padding-left:20px"><xsl:apply-templates select="SpecsDesc" /></td>
</tr>
</xsl:if>
</xsl:if>
</xsl:template>

<xsl:template match="SpecsTypeName">
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:template>

<xsl:template match="SpecsDesc">
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:template>

<xsl:template match="Detail[@ImgPosition]">
<tr>
<td width="20" valign="top"></td>
<td width="463">
<div class="ProdDiv"><b><xsl:value-of select="DetailTopic" disable-output-escaping="yes" /></b></div>
<div class="ProdDiv">
<xsl:if test="@ImgPosition[.= '1']">
<!--图片在左上角-->
<img align="right" border="0" alt="点击查看原始图片">
<xsl:attribute name="src">/Products/Images/<xsl:value-of select="@ImgName"/></xsl:attribute>
<xsl:attribute name="width"><xsl:value-of select="@ImgWidth"/></xsl:attribute>
<xsl:attribute name="height"><xsl:value-of select="@ImgHeight"/></xsl:attribute>
<xsl:attribute name="style">cursor:hand;float:left;</xsl:attribute>
<xsl:if test="@ImgWidth[.!= 160]">
<xsl:attribute name="onclick">window.open('/Products/Images/<xsl:value-of select="@ImgName"/>')</xsl:attribute>
</xsl:if>
<xsl:if test="@ImgWidth[.= 160]">
<xsl:attribute name="onclick">GoImg('/Products/Images/<xsl:value-of select="@ImgName"/>')</xsl:attribute>
</xsl:if>
</img>
<xsl:apply-templates select="DetailDesc" />
</xsl:if>
<xsl:if test="@ImgPosition[.= '2']">
<!--图片在右上角-->
<img border="0" alt="点击查看原始图片">
<xsl:attribute name="src">/Products/Images/<xsl:value-of select="@ImgName"/></xsl:attribute>
<xsl:attribute name="width"><xsl:value-of select="@ImgWidth"/></xsl:attribute>
<xsl:attribute name="height"><xsl:value-of select="@ImgHeight"/></xsl:attribute>
<xsl:attribute name="style">cursor:hand;float:right;</xsl:attribute>
<xsl:if test="@ImgWidth[.!= 160]">
<xsl:attribute name="onclick">window.open('/Products/Images/<xsl:value-of select="@ImgName"/>')</xsl:attribute>
</xsl:if>
<xsl:if test="@ImgWidth[.= 160]">
<xsl:attribute name="onclick">GoImg('/Products/Images/<xsl:value-of select="@ImgName"/>')</xsl:attribute>
</xsl:if>
</img>
<xsl:apply-templates select="DetailDesc" />
</xsl:if>
<xsl:if test="@ImgPosition[.= '3']">
<!--图片在正上方-->
<img border="0" alt="点击查看原始图片">
<xsl:attribute name="src">/Products/Images/<xsl:value-of select="@ImgName"/></xsl:attribute>
<xsl:attribute name="width"><xsl:value-of select="@ImgWidth"/></xsl:attribute>
<xsl:attribute name="height"><xsl:value-of select="@ImgHeight"/></xsl:attribute>
<xsl:attribute name="style">cursor:hand;float:none;</xsl:attribute>
<xsl:if test="@ImgWidth[.!= 475]">
<xsl:attribute name="onclick">window.open('/Products/Images/<xsl:value-of select="@ImgName"/>')</xsl:attribute>
</xsl:if>
<xsl:if test="@ImgWidth[.= 475]">
<xsl:attribute name="onclick">GoImg('/Products/Images/<xsl:value-of select="@ImgName"/>')</xsl:attribute>
</xsl:if>
</img><br /><xsl:apply-templates select="DetailDesc" />
</xsl:if>
<xsl:if test="@ImgPosition[.= '4']">
<!--图片在正下方-->
<xsl:apply-templates select="DetailDesc" />
<br />
<img border="0" alt="点击查看原始图片">
<xsl:attribute name="src">/Products/Images/<xsl:value-of select="@ImgName"/></xsl:attribute>
<xsl:attribute name="width"><xsl:value-of select="@ImgWidth"/></xsl:attribute>
<xsl:attribute name="height"><xsl:value-of select="@ImgHeight"/></xsl:attribute>
<xsl:attribute name="style">cursor:hand;float:none;</xsl:attribute>
<xsl:if test="@ImgWidth[.!= 475]">
<xsl:attribute name="onclick">window.open('/Products/Images/<xsl:value-of select="@ImgName"/>')</xsl:attribute>
</xsl:if>
<xsl:if test="@ImgWidth[.= 475]">
<xsl:attribute name="onclick">GoImg('/Products/Images/<xsl:value-of select="@ImgName"/>')</xsl:attribute>
</xsl:if>
</img>
</xsl:if>
<xsl:if test="@ImgPosition[.= '0']">
<xsl:if test="@ImgName[.!='nullImg.jpg']">
<img border="0">
<xsl:attribute name="src">/Products/Images/<xsl:value-of select="@ImgName"/></xsl:attribute>
<xsl:attribute name="width"><xsl:value-of select="@ImgWidth"/></xsl:attribute>
<xsl:attribute name="height"><xsl:value-of select="@ImgHeight"/></xsl:attribute>
<xsl:attribute name="style">float:right;</xsl:attribute>
</img>
</xsl:if>
<xsl:apply-templates select="DetailDesc" />
</xsl:if>
</div>
</td>
<td width="10" valign="top"></td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
</xsl:template>

<xsl:template match="Detail[not(@ImgPosition)]">
<tr>
<td width="20" valign="top"></td>
<td width="463">
<div class="ProdDiv"><b><xsl:value-of select="DetailTopic"/></b></div>
<div class="ProdDiv">
<xsl:if test="@ImgName[.!= 'nullImg.jpg']">
<img align="right" border="0">
<xsl:attribute name="src">/Products/Images/<xsl:value-of select="@ImgName"/></xsl:attribute>
<xsl:attribute name="width"><xsl:value-of select="@ImgWidth"/></xsl:attribute>
<xsl:attribute name="height"><xsl:value-of select="@ImgHeight"/></xsl:attribute>
</img>
</xsl:if>
<xsl:apply-templates select="DetailDesc" />
</div>
</td>
<td width="10" valign="top"></td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
</xsl:template>

<xsl:template match="DetailDesc">
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:template>

<xsl:template match="ProdImg">
<img style="border:1px solid #aaaaaa;">
<xsl:attribute name="src">/Products/Images/<xsl:value-of select="@ImgName"/>_S.jpg</xsl:attribute>
<xsl:attribute name="width"><xsl:value-of select="@sWidth"/></xsl:attribute>
<xsl:attribute name="height"><xsl:value-of select="@sHeight"/></xsl:attribute>
<xsl:attribute name="onclick">win=window.open ("/Products/ShowImg.htm?ImgName=<xsl:value-of select="@ImgName"/>_M.jpg", "产品图片", "height=400, width=400,Top=10,left=10, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no");win.focus();</xsl:attribute>
<xsl:attribute name="style">cursor:hand;</xsl:attribute>
</img>   
</xsl:template>

</xsl:stylesheet>
 
wancn
小狐狸
小狐狸
  • UID7140
  • 注册日期2005-07-06
  • 最后登录2005-07-18
  • 发帖数4
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
1楼#
发布于:2005-07-07 08:45
Head.js的内容
Head.js的内容.....


//图片变换效果函数
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function swapClass(obj, cls)
{
  obj.className = cls ;
}

//显示主菜单
function showMenu(MenuID)
{
var strMenu = null;
 strMenu = "<img src=\"/images/m1.jpg\" align=\"absmiddle\" width=\"119\" height=\"78\" border=\"0\">";

switch(MenuID)
{
case "product" :
strMenu = strMenu + "<a onclick=\"goUrl('product');showMenu('product')\" onfocus=\"this.blur();\" style=\"cursor:hand;\"><img name=\"Image1\" src=\"/images/mm01on.gif\" align=\"absmiddle\" width=\"85\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('service');showMenu('service')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('service')\" onMouseOver=\"MM_swapImage('Image2','','/images/mm02on.gif',1);ypSlideOutMenu.showMenu('service')\"><img name=\"Image2\" src=\"/images/mm02off.gif\" align=\"absmiddle\" width=\"71\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('news');showMenu('news')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('news')\" onMouseOver=\"MM_swapImage('Image3','','/images/mm03on.gif',1);ypSlideOutMenu.showMenu('news')\"><img name=\"Image3\" src=\"/images/mm03off.gif\" align=\"absmiddle\" width=\"80\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('club');showMenu('club')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('club')\" onMouseOver=\"MM_swapImage('Image4','','/images/mm04on.gif',1);ypSlideOutMenu.showMenu('club')\"><img name=\"Image4\" src=\"/images/mm04off.gif\" align=\"absmiddle\" width=\"56\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('shop');showMenu('shop')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('shop')\" onMouseOver=\"MM_swapImage('Image5','','/images/mm05on.gif',1);ypSlideOutMenu.showMenu('shop')\"><img name=\"Image5\" src=\"/images/mm05off.gif\" align=\"absmiddle\" width=\"57\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('blog');showMenu('blog')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('blog')\" onMouseOver=\"MM_swapImage('Image6','','/images/mm06on.gif',1);ypSlideOutMenu.showMenu('blog')\"><img name=\"Image6\" src=\"/images/mm06off.gif\" align=\"absmiddle\" width=\"29\" height=\"78\" border=\"0\"></img></a>";
break;
case "service" :
strMenu = strMenu + "<a onclick=\"goUrl('product');showMenu('product')\" onfocus=\"this.blur();\" style=\"cursor:hand;\"><img name=\"Image1\" src=\"/images/mm01off.gif\" align=\"absmiddle\" width=\"85\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('service');showMenu('service')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"ypSlideOutMenu.hideMenu('service')\" onMouseOver=\"ypSlideOutMenu.showMenu('service')\"><img name=\"Image2\" src=\"/images/mm02on.gif\" align=\"absmiddle\" width=\"71\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('news');showMenu('news')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('news')\" onMouseOver=\"MM_swapImage('Image3','','/images/mm03on.gif',1);ypSlideOutMenu.showMenu('news')\"><img name=\"Image3\" src=\"/images/mm03off.gif\" align=\"absmiddle\" width=\"80\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('club');showMenu('club')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('club')\" onMouseOver=\"MM_swapImage('Image4','','/images/mm04on.gif',1);ypSlideOutMenu.showMenu('club')\"><img name=\"Image4\" src=\"/images/mm04off.gif\" align=\"absmiddle\" width=\"56\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('shop');showMenu('shop')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('shop')\" onMouseOver=\"MM_swapImage('Image5','','/images/mm05on.gif',1);ypSlideOutMenu.showMenu('shop')\"><img name=\"Image5\" src=\"/images/mm05off.gif\" align=\"absmiddle\" width=\"57\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('blog');showMenu('blog')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('blog')\" onMouseOver=\"MM_swapImage('Image6','','/images/mm06on.gif',1);ypSlideOutMenu.showMenu('blog')\"><img name=\"Image6\" src=\"/images/mm06off.gif\" align=\"absmiddle\" width=\"29\" height=\"78\" border=\"0\"></img></a>";
break;
case "news" :
strMenu = strMenu + "<a onclick=\"goUrl('product');showMenu('product')\" onfocus=\"this.blur();\" style=\"cursor:hand;\"><img name=\"Image1\" src=\"/images/mm01off.gif\" align=\"absmiddle\" width=\"85\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('service');showMenu('service')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('service')\" onMouseOver=\"MM_swapImage('Image2','','/images/mm02on.gif',1);ypSlideOutMenu.showMenu('service')\"><img name=\"Image2\" src=\"/images/mm02off.gif\" align=\"absmiddle\" width=\"71\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('news');showMenu('news')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"ypSlideOutMenu.hideMenu('news')\" onMouseOver=\"ypSlideOutMenu.showMenu('news')\"><img name=\"Image3\" src=\"/images/mm03on.gif\" align=\"absmiddle\" width=\"80\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('club');showMenu('club')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('club')\" onMouseOver=\"MM_swapImage('Image4','','/images/mm04on.gif',1);ypSlideOutMenu.showMenu('club')\"><img name=\"Image4\" src=\"/images/mm04off.gif\" align=\"absmiddle\" width=\"56\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('shop');showMenu('shop')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('shop')\" onMouseOver=\"MM_swapImage('Image5','','/images/mm05on.gif',1);ypSlideOutMenu.showMenu('shop')\"><img name=\"Image5\" src=\"/images/mm05off.gif\" align=\"absmiddle\" width=\"57\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('blog');showMenu('blog')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('blog')\" onMouseOver=\"MM_swapImage('Image6','','/images/mm06on.gif',1);ypSlideOutMenu.showMenu('blog')\"><img name=\"Image6\" src=\"/images/mm06off.gif\" align=\"absmiddle\" width=\"29\" height=\"78\" border=\"0\"></img></a>";
break;
case "club" :
strMenu = strMenu + "<a onclick=\"goUrl('product');showMenu('product')\" onfocus=\"this.blur();\" style=\"cursor:hand;\"><img name=\"Image1\" src=\"/images/mm01off.gif\" align=\"absmiddle\" width=\"85\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('service');showMenu('service')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('service')\" onMouseOver=\"MM_swapImage('Image2','','/images/mm02on.gif',1);ypSlideOutMenu.showMenu('service')\"><img name=\"Image2\" src=\"/images/mm02off.gif\" align=\"absmiddle\" width=\"71\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('news');showMenu('news')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('news')\" onMouseOver=\"MM_swapImage('Image3','','/images/mm03on.gif',1);ypSlideOutMenu.showMenu('news')\"><img name=\"Image3\" src=\"/images/mm03off.gif\" align=\"absmiddle\" width=\"80\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('club');showMenu('club')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"ypSlideOutMenu.hideMenu('club')\" onMouseOver=\"ypSlideOutMenu.showMenu('club')\"><img name=\"Image4\" src=\"/images/mm04on.gif\" align=\"absmiddle\" width=\"56\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('shop');showMenu('shop')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('shop')\" onMouseOver=\"MM_swapImage('Image5','','/images/mm05on.gif',1);ypSlideOutMenu.showMenu('shop')\"><img name=\"Image5\" src=\"/images/mm05off.gif\" align=\"absmiddle\" width=\"57\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('blog');showMenu('blog')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('blog')\" onMouseOver=\"MM_swapImage('Image6','','/images/mm06on.gif',1);ypSlideOutMenu.showMenu('blog')\"><img name=\"Image6\" src=\"/images/mm06off.gif\" align=\"absmiddle\" width=\"29\" height=\"78\" border=\"0\"></img></a>";
break;
case "shop" :
strMenu = strMenu + "<a onclick=\"goUrl('product');showMenu('product')\" onfocus=\"this.blur();\" style=\"cursor:hand;\"><img name=\"Image1\" src=\"/images/mm01off.gif\" align=\"absmiddle\" width=\"85\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('service');showMenu('service')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('service')\" onMouseOver=\"MM_swapImage('Image2','','/images/mm02on.gif',1);ypSlideOutMenu.showMenu('service')\"><img name=\"Image2\" src=\"/images/mm02off.gif\" align=\"absmiddle\" width=\"71\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('news');showMenu('news')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('news')\" onMouseOver=\"MM_swapImage('Image3','','/images/mm03on.gif',1);ypSlideOutMenu.showMenu('news')\"><img name=\"Image3\" src=\"/images/mm03off.gif\" align=\"absmiddle\" width=\"80\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('club');showMenu('club')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('club')\" onMouseOver=\"MM_swapImage('Image4','','/images/mm04on.gif',1);ypSlideOutMenu.showMenu('club')\"><img name=\"Image4\" src=\"/images/mm04off.gif\" align=\"absmiddle\" width=\"56\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('shop');showMenu('shop')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"ypSlideOutMenu.hideMenu('shop')\" onMouseOver=\"ypSlideOutMenu.showMenu('shop')\"><img name=\"Image5\" src=\"/images/mm05on.gif\" align=\"absmiddle\" width=\"57\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('blog');showMenu('blog')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('blog')\" onMouseOver=\"MM_swapImage('Image6','','/images/mm06on.gif',1);ypSlideOutMenu.showMenu('blog')\"><img name=\"Image6\" src=\"/images/mm06off.gif\" align=\"absmiddle\" width=\"29\" height=\"78\" border=\"0\"></img></a>";
//window.open('/shop/notice.htm','','left='+((screen.availwidth/2)-250)+',top='+((screen.availheight/2)-150)+',width=450,height=300,scrollbars=no,resizable=no');
break;
case "blog" :
strMenu = strMenu + "<a onclick=\"goUrl('product');showMenu('product')\" onfocus=\"this.blur();\" style=\"cursor:hand;\"><img name=\"Image1\" src=\"/images/mm01off.gif\" align=\"absmiddle\" width=\"85\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('service');showMenu('service')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('service')\" onMouseOver=\"MM_swapImage('Image2','','/images/mm02on.gif',1);ypSlideOutMenu.showMenu('service')\"><img name=\"Image2\" src=\"/images/mm02off.gif\" align=\"absmiddle\" width=\"71\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('news');showMenu('news')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('news')\" onMouseOver=\"MM_swapImage('Image3','','/images/mm03on.gif',1);ypSlideOutMenu.showMenu('news')\"><img name=\"Image3\" src=\"/images/mm03off.gif\" align=\"absmiddle\" width=\"80\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('club');showMenu('club')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('club')\" onMouseOver=\"MM_swapImage('Image4','','/images/mm04on.gif',1);ypSlideOutMenu.showMenu('club')\"><img name=\"Image4\" src=\"/images/mm04off.gif\" align=\"absmiddle\" width=\"56\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('shop');showMenu('shop')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('shop')\" onMouseOver=\"MM_swapImage('Image5','','/images/mm05on.gif',1);ypSlideOutMenu.showMenu('shop')\"><img name=\"Image5\" src=\"/images/mm05off.gif\" align=\"absmiddle\" width=\"57\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('blog');showMenu('blog')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"ypSlideOutMenu.hideMenu('blog')\" onMouseOver=\"ypSlideOutMenu.showMenu('blog')\"><img name=\"Image6\" src=\"/images/mm06on.gif\" align=\"absmiddle\" width=\"29\" height=\"78\" border=\"0\"></img></a>";
break;
default:
strMenu = strMenu + "<a onclick=\"goUrl('product');showMenu('product')\" onfocus=\"this.blur();\" style=\"cursor:hand;\"><img name=\"Image1\" src=\"/images/mm01off.gif\" align=\"absmiddle\" width=\"85\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('service');showMenu('service')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('service')\" onMouseOver=\"MM_swapImage('Image2','','/images/mm02on.gif',1);ypSlideOutMenu.showMenu('service')\"><img name=\"Image2\" src=\"/images/mm02off.gif\" align=\"absmiddle\" width=\"71\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('news');showMenu('news')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('news')\" onMouseOver=\"MM_swapImage('Image3','','/images/mm03on.gif',1);ypSlideOutMenu.showMenu('news')\"><img name=\"Image3\" src=\"/images/mm03off.gif\" align=\"absmiddle\" width=\"80\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('club');showMenu('club')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('club')\" onMouseOver=\"MM_swapImage('Image4','','/images/mm04on.gif',1);ypSlideOutMenu.showMenu('club')\"><img name=\"Image4\" src=\"/images/mm04off.gif\" align=\"absmiddle\" width=\"56\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('shop');showMenu('shop')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('shop')\" onMouseOver=\"MM_swapImage('Image5','','/images/mm05on.gif',1);ypSlideOutMenu.showMenu('shop')\"><img name=\"Image5\" src=\"/images/mm05off.gif\" align=\"absmiddle\" width=\"57\" height=\"78\" border=\"0\"></img></a>";
strMenu = strMenu + "<a onclick=\"goUrl('blog');showMenu('blog')\" onfocus=\"this.blur();\" style=\"cursor:hand;\" onMouseOut=\"MM_swapImgRestore();ypSlideOutMenu.hideMenu('blog')\" onMouseOver=\"MM_swapImage('Image6','','/images/mm06on.gif',1);ypSlideOutMenu.showMenu('blog')\"><img name=\"Image6\" src=\"/images/mm06off.gif\" align=\"absmiddle\" width=\"29\" height=\"78\" border=\"0\"></img></a>";
break;
}

document.all.Menu.innerHTML = strMenu;
}

function goUrl(MenuID)
{
if (MenuID=="blog")
{
window.location.href = "GoToblog.aspx";
}
else if (MenuID=="service")
{
window.location.href = "/service/ASExchangeSystem.aspx?url=CCMSLogin.aspx";
}
else
{
window.location.href = "/" + MenuID;
}
}

//显示子菜单
//new ypSlideOutMenu("product", "down", 280, 27, 104, 300);//产品中心
new ypSlideOutMenu("service", "down", 360, 27, 104, 300);//服务支持
new ypSlideOutMenu("news", "down", 445, 27, 104, 300);//新闻
new ypSlideOutMenu("club", "down", 500, 27, 104, 300);//会员
new ypSlideOutMenu("shop", "down", 560, 27, 104, 300);//商城
new ypSlideOutMenu("blog", "down", 605, 27, 104, 300);//部落

//功能主菜单
document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"684\">");
document.write("<tr>");
document.write("<td width=\"187\">");
document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.write("<tr>");
document.write("<td><a name=\"tom\"></a><a href=\"/\"><img src=\"/images/logo.jpg\" width=\"187\" height=\"59\" border=0 alt=\"blog Logo\"></a></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><img src=\"/images/l1.jpg\" width=\"80\" height=\"19\" border=0><img src=\"/images/l2.jpg\" width=\"107\" height=\"19\" border=0></td>");
document.write("</tr>");
document.write("</table>");
document.write("</td>");
document.write("<td width=\"497\">");
document.write("<div id=\"Menu\"></div>");
document.write("</td>");
document.write("</tr>");
document.write("</table>");

//左边开始
document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"684\">");
document.write("<tr><td width=\"80\" valign=\"top\"><img src=\"/Images/m2.jpg\" width=\"80\" height=\"421\" border=0></td>");



//新闻子菜单
document.write("<div id=\"newsContainer\">");
document.write("<div id=\"newsContent\" class=\"dragmenu\">");
document.write("<img src=\"/images/mmhead.gif\">");
document.write("<div class=\"options\">");
document.write("<a href=\"/news/News.aspx\" class=\"mainmenu\">新闻剪辑</a>");
document.write("<a href=\"/news/MediaReport.aspx\" class=\"mainmenu\">媒体报道</a>");
document.write("<a href=\"/news/VI.htm\" class=\"mainmenu\">视觉识别</a>");
document.write("</div>");
document.write("<img src=\"/images/mmfoot.gif\">");
document.write("</div>");
document.write("</div>");

//会员子菜单
document.write("<div id=\"clubContainer\">");
document.write("<div id=\"clubContent\" class=\"dragmenu\">");
document.write("<img src=\"/images/mmhead.gif\">");
document.write("<div class=\"options\">");
document.write("<a href=\"#\" class=\"mainmenu\"></a>");
document.write("<a href=\"/Club/MemberMobileRegStepA.aspx\" class=\"mainmenu\">加入</a>");
document.write("<a href=\"javascript:window.location.href='UserLogon.aspx'\" class=\"mainmenu\">登陆会员中心</a>");
document.write("<a href=\"/club/MailList/\" class=\"mainmenu\">邮件订阅中心</a>");

document.write("<a href=\"/club/Help/Help_FAQ.htm\" class=\"mainmenu\">帮助中心</a>");
document.write("</div>");
document.write("<img src=\"/images/mmfoot.gif\">");
document.write("</div>");
document.write("</div>");


//商城子菜单
document.write("<div id=\"shopContainer\">");
document.write("<div id=\"shopContent\" class=\"dragmenu\">");
document.write("<img src=\"/images/mmhead.gif\">");
document.write("<div class=\"options\">");
document.write("<a href=\"/shop/\" class=\"mainmenu\">网上商城</a>");
document.write("<a href=\"/product/Dealer/DisDealerInfo.aspx?ProductTypeID=43\" class=\"mainmenu\">销售网络</a>");
document.write("<a href=\"/shop/bankshop\" class=\"mainmenu\">免息分期专购</a>");
document.write("</div>");
document.write("<img src=\"/images/mmfoot.gif\">");
document.write("</div>");
document.write("</div>");


谢谢!
gzpbx
狐狸大王
狐狸大王
  • UID1527
  • 注册日期2004-12-29
  • 最后登录2009-06-30
  • 发帖数410
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
2楼#
发布于:2005-07-07 08:45
可以参考以下这个:
http://www.mozilla.org/projects/xslt/
如果你爱上了一朵生长在一颗星星上的花,那么夜间你看着天空就感到甜蜜愉快。所有的星星上都好象开着花。
游客

返回顶部