关于javascript 缺少对象 代码0的问题!!急!!在线等!!
include/menu.asp如果单独打开没问题但我在根目录的index.asp <!--#include file = "include/menu.asp "--> 就出现缺少对象,代码0 很是无奈 请高手解决!!!-----------------------------------index.asp代码如下,在根目录:<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>XXXXXXXXXXXXXXX</title><!--#include file = "include/webtop.asp"--><!--#include file = "include/menu.asp "--><!--#include file = "swf.html"--><!--#include file = "data/news.asp"--><!--#include file = "include/ad.asp"--><!--#include file = "include/foot.asp"-->-----------------------------------menu.asp 代码为下:-----------------------------------<!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"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title><link href="css/style.css" rel="stylesheet" type="text/css"><SCRIPT src="js/jquery.min.js" type=text/javascript></SCRIPT><SCRIPT type=text/javascript>$(document).ready(function() { /* 2nd example */ $("#menu2 li").prepend("<span></span>"); //Throws an empty span tag right before the a tag $("#menu2 li").each(function() { //For each list item... var linkText = $(this).find("a").html(); //Find the text inside of the a tag $(this).find("span").show().html(linkText); //Add the text in the span tag }); $("#menu2 li").hover(function() { //On hover... $(this).find("span").stop().animate({ marginTop: "-40" //Find the span tag and move it up 40 pixels }, 250); } , function() { //On hover out... $(this).find("span").stop().animate({ marginTop: "0" //Move the span back to its original state (0px) }, 250); }); });</SCRIPT></head><body><div id="menu2"><ul> <li><a href="#">首 页</a></li> <li><a href="#">企业文化</a></li> <li><a href="#">产品展示</a></li> <li><a href="#">新闻中心</a></li> <li><a href="#">阳光服务</a></li> <li><a href="#">加盟代理</a></li> <li><a href="#">在线咨询</a></li></ul><div class="cls"></div></div></body></html>