下面是我的代码希望高手指点!小弟实在没法弄懂
引用
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--<?php
$GuideFid[$fid]=str_replace("<a href='$webdb[www_url]' class='guide_menu'>>首页</a>","",$GuideFid[$fid]);
$fupId=intval($fupId);
$topMenu[$fupId]='ck';
print <<<EOT
-->
<head>
<title>$titleDB[title] — 曲阜信息港 曲阜在线 曲阜团购 曲阜网址导航 曲阜在线逛街 曲阜分类信息</title>
<link href="http://ttw.la/images/style.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="favicon.ico" />
<link href="http://ttw.la/css/css.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="keywords" content="$titleDB[keywords]">
<meta name="description" content="$titleDB[description]">
<SCRIPT LANGUAGE="JavaScript" src="$webdb[www_url]/images/default/inc.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="$webdb[www_url]/images/default/default.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="$webdb[www_url]/images/default/swfobject.js"></SCRIPT>
<script>
/* 这是把事件动作绑定到菜单上的函数 */
function attachXMenu(objid){
var tds=objid.getElementsByTagName('td');
for(var i=0;i<tds.length;i++){
with(tds<i>){
onmouseover=function(){
with(this){
filters[0].apply();
style.background='#66CCFF'; //这是鼠标移上去时的背景颜色
style.border='1px solid #ffffff'; //边框
style.color='black'; //文字颜色
filters[0].play();
}
}
onmouseout=function(){
with(this){
filters[0].apply();
style.background='#336699'; //这是鼠标离开时的背景颜色
style.border='1px solid #336699'; //边框
style.color='#ffffff'; //文字颜色
filters[0].play();
}
}
}
}
}
</script>
<SCRIPT LANGUAGE="JavaScript">
//屏蔽可忽略的js脚本错误
function killErr(){
return true;
}
window.onerror=killErr;
</SCRIPT>
<!--
EOT;
if($webdb[cookieDomain]){print <<<EOT
-->
<SCRIPT LANGUAGE="JavaScript">
//解决不同域名的框架跨域问题
document.domain = "$webdb[cookieDomain]";
</SCRIPT>
<!--
EOT;
}print <<<EOT
-->
</head>
<body >
<div id="menubg">
<div id="guide">
<table width="100%" border="0">
<tr>
<td align="left">
<script>
//显示
function show(o,obj){
var m=document.getElementById(obj);
m.style.pixelLeft=getL(o);
m.style.pixelTop=getT(o)+o.offsetHeight;
m.style.visibility='';
}
//隐藏
function hide(obj){
document.getElementById(obj).style.visibility='hidden';
}
//取得左边的位移
function getL(e){
var l=e.offsetLeft;
while(e=e.offsetParent){
l+=e.offsetLeft;
}
return l;
}
//取得顶部的位移
function getT(e){
var t=e.offsetTop;
while(e=e.offsetParent){
t+=e.offsetTop;
}
return t;
}
</script>
<a href="../"><img src="../images/dh1.gif"></a></img>
<a href="http://ttw.la/list.php?fid=49"><img src="../images/dh2.gif" id="u" onMouseOver="show(this,'o')" onMouseOut="hide('o')"></a></img>
<div id="o" style="width:280px; height:180px; background: url(../images/yulanbk2.png); padding:15px; Z-INDEX:100; VISIBILITY:hidden; POSITION: absolute;" onMouseOver="show(u,'o')" onMouseOut="hide('o')">
$label[dhnrl]
</div>
<img src="../images/dh1.gif" id="y" onMouseOver="show(this,'r')" onMouseOut="hide('r')"></img>
<div id="r" style="width:280px; height:180px; background: url(../images/yulanbk.png); padding:15px; Z-INDEX:100; VISIBILITY:hidden; POSITION: absolute;" onMouseOver="show(y,'r')" onMouseOut="hide('r')">
<nobr>注:这个层是加了边框的</nobr><br>
<img src="http://images.163.com/homepage/logo.gif"></img><br>
<a href="http://blog.csdn.net/fenglibing"><nobr>我的CSDN博客</nobr></a><br>
<a href="http://www.163.com">网易</a>
</div>
</td>
<td align="right"> <form name="formsearch" method="post" action="http://ttw.la/do/search.php">
<input name="keyword" type="text" value="信息搜索" size="15" onfocus ="this.value=''">
<input type="submit" name="Submit32" value="搜索">
<input type="hidden" name="searchTable" value="article">
</form></td>
</tr>
</table>
</div></div>
<div class="mainbox">
<div class="wcontent">
<!--
EOT;
if($GuideFid[$fid]){
print <<<EOT
-->
<div class="weizhi" style="padding-top:8px; font-size:14px; border-bottom: 2px solid #ccc ;">
<a style="color:#000000; text-decoration: none;" href="$webdb[www_url]/">{$webdb[webname]}</a> $GuideFid[$fid]
</div>
<!--
EOT;
}
print <<<EOT
-->
<SCRIPT LANGUAGE="JavaScript">
<!--//目的是为了做风格方便
document.write('<div style="clear:both;"></div><div class="wrap">');
//-->
</SCRIPT>
<!--
EOT;
?>
-->
|