http://www.shuangyongjulebu.com/yikatong/newsinfo.aspx?SubPage=yes&ec_Id=1&area=徐州市区<html> <head> <script language=JavaScript>  //***********默认设置定义.*********************  tPopWait=2; //设置停留多少豪秒后显示提示。  tPopShow=1000; //设置显示多少豪秒后关闭提示  showPopStep=1; //设置完成显示的速度  popOpacity=60; //设置显示透明度  backColor='#f4ffe0'; //设置背景颜色  fontColor='#000000'; //设置字体颜色  borderColor='#006600'; //设置边框颜色  fontSize=9; //设置字体大小  //***************内部变量定义*****************  sPop=null; curShow=null; tFadeOut=null; tFadeIn=null; tFadeWaiting=null; document.write("<style type='text/css'id='defaultPopStyle'>"); document.write(".cPopText { background-color:"); document.write(backColor); //设置背景颜色  document.write(";color:"); document.write(fontColor); //设置字体颜色  document.write(";border: 1px "); document.write(borderColor); //设置边框颜色  document.write(" solid;font-size:"); document.write(fontSize); //设置字体大小  document.write("pt;padding:2px;filter: Alpha(Opacity=0)}"); document.write("</style>"); document.write("<div id='dypopLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>"); function showPopupText(){ var o=event.srcElement; MouseX=event.x; MouseY=event.y; if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""}; if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""}; if(o.dypop!=sPop) { sPop=o.dypop; clearTimeout(curShow); clearTimeout(tFadeOut); clearTimeout(tFadeIn); clearTimeout(tFadeWaiting); if(sPop==null || sPop=="") { dypopLayer.innerHTML=""; dypopLayer.style.filter="Alpha()"; dypopLayer.filters.Alpha.opacity=0; } else { if(o.dyclass!=null) popStyle=o.dyclass else popStyle="cPopText"; curShow=setTimeout("showIt()",tPopWait); }}} function showIt(){ dypopLayer.className=popStyle; dypopLayer.innerHTML=sPop; popWidth=dypopLayer.clientWidth; popHeight=dypopLayer.clientHeight; if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24  else popLeftAdjust=0; if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24  else popTopAdjust=0; dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust; dypopLayer.style.top=MouseY+12+document.body.scrollTop*2;//+popTopAdjust;  dypopLayer.style.filter="Alpha(Opacity=0)"; fadeOut(); } function fadeOut(){ if(dypopLayer.filters.Alpha.opacity<popOpacity) { dypopLayer.filters.Alpha.opacity+=showPopStep; tFadeOut=setTimeout("fadeOut()",1); } else { dypopLayer.filters.Alpha.opacity=popOpacity; tFadeWaiting=setTimeout("fadeIn()",tPopShow); }} function fadeIn(){ if(dypopLayer.filters.Alpha.opacity>0) { dypopLayer.filters.Alpha.opacity-=1; tFadeIn=setTimeout("fadeIn()",1); }} document.onmouseover=showPopupText; </script> </head> <body> <a href="#" title="看到超酷效果了吗?请停留一会儿,它会慢慢消失!<br/>怎么样,不错吧?<br/><img src='http://bbs.blueidea.com/images/blue/logo.gif' />">请把鼠标移到这里,看看效果!</a> </body> </html>

解决方案 »

  1.   

    关键不知道您的那个是如何激发的,onmouseover事件根本没有啊 
      

  2.   

    那个是页面中元素设置了title或者alt属性了就会有提示
      

  3.   

    你看我就在下面加了个p标签,然后设置了title就有了:http://dl.dropbox.com/u/2555620/%E9%BC%A0%E6%A0%87%E7%A7%BB%E4%B8%8A%E6%B8%90%E6%98%BE.html
      

  4.   

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="NewsInfo.aspx.cs" Inherits="NewsInfo" %><%@ Register Src="UserControl/YiKaTongTop.ascx" TagName="YiKaTongTop" TagPrefix="uc1" %>
    <%@ Register Src="../UserControls/IndexFooter.ascx" TagName="IndexFooter" TagPrefix="uc2" %>
    <!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 runat="server">
        <title>双拥俱乐部——淮海双拥网——徐州双拥传媒广告有限公司</title>
        <style>
            body, td, th
            {
                font-size: 12px;
            }
            body
            {
                text-align: center;
            }
            ul
            {
                list-style: none;
            }
            #wrapper
            {
                text-align: left;
                width: 895px;
                background-color: #ffffff;
                margin: 0px auto;
            }
            #xuzhoudiqu
            {
                background-image: url(../images/uuuuu.jpg);
                height: 28px;
                width: 895px;
                line-height: 28px;
            }
            #qiyejieshao
            {
                background-image: url(../images/location_bg.gif);
                height: 30px;
                width: 895px;
                line-height: 30px;
            }
            .listword
            {
                overflow-y: hidden;
                height: 20px;
                line-height: 20px;
                margin-bottom: 15px;
                float: left;
                width: 420px;
                margin-left: 5px;
                font-size: 11pt;
                font-weight: bold;
            }
             <!
            -- .STYLE8
            {
                color: #00007f;
                font-size: 11pt;
            }
            .STYLE10
            {
                font-size: 11pt;
            }
            .STYLE1
            {
                font-size: 14pt;
            }
            -- > a:link
            {
                color: #005499;
            }
            a:visited
            {
                color: #005499;
            }
            a:hover
            {
                color: #F60;
            }
            a:active
            {
                color: #005499;
            }
             <!
            -- .STYLE8
            {
                color: #00007f;
                font-size: 11pt;
            }
            .STYLE10
            {
                font-size: 11pt;
            }
            .STYLE1
            {
                font-size: 14pt;
            }
            -- > a:link
            {
                color: #005499;
            }
            a:visited
            {
                color: #005499;
            }
            a:hover
            {
                color: #F60;
            }
            a:active
            {
                color: #005499;
            }
        </style>
    </head>
    <body>
        <form id="form1" runat="server">
        <div id="wrapper">
            <uc1:YiKaTongTop ID="YiKaTongTop1" runat="server" />
            <div id="qiyejieshao">
                当前位置:企业详细介绍
            </div>
            <div id="xuzhoudiqu">
                <asp:Literal ID="ltlTitle" runat="server"></asp:Literal>
            </div>
            <div>
                <h3>
                    <asp:Literal ID="ltlType" runat="server"></asp:Literal>
                </h3>
                <asp:Literal ID="ltlShowMessage" runat="server" Visible="false"></asp:Literal>
                <div>
                    <ul style="width: 890px; text-align: center; margin-left: 10px;">
                        <asp:Repeater runat="server" ID="DataList1">
                            <ItemTemplate>
                                <li style="width: 150px; height: 150px; float: left; display: inline;">
                                    <div style="display: block; width: 145px; height: 90px; margin: 2px 10px 15px 10px;
                                        overflow: hidden;">
                                        <a href='<%# SelectDetails(Eval("id").ToString()) %>' target="_blank">
                                            <img title='<%#Eval("imgsay")%>' height="100" width="150px" src='<%#Eval("imgurl","../{0}") %>'
                                                width="145" border="0">
                                        </a>&nbsp;</div>
                                    <span style="text-align: center"><a href='<%#CompanyUrl(Eval("imghtml").ToString(),Eval("id").ToString()) %>'
                                        target="_blank">
                                        <%#Eval("imgName") %>
                                    </a></span></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <div style="clear: both">
                </div>
                <div>
                    <ul style="width: 860px">
                        <asp:Repeater ID="dl文字商家" runat="server">
                            <ItemTemplate>
                                <li class="listword" style="float: left; overflow: hidden;">
                                    <img src="http://image.xzxx.com/image/info/re.gif" alt="热点">
                                    <a href='<%# SelectDetails(Eval("id").ToString()) %>' target="_blank" title=<%#Eval("bl_Title")%> >
                                        <%#Eval("bl_Title") %></a>  </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
            </div>
            <uc2:IndexFooter ID="IndexFooter1" runat="server" />
        </div>
        
        </form>
    </body>
    </html><script language="JavaScript">
        //***********默认设置定义.*********************
        tPopWait=2;                    //设置停留多少豪秒后显示提示。
        tPopShow=20000;            //设置显示多少豪秒后关闭提示
        showPopStep=1;            //设置完成显示的速度
        popOpacity=60;                //设置显示透明度
        backColor='#000000';        //设置背景颜色
        fontColor='#ffffcc';        //设置字体颜色
        borderColor='#006600';    //设置边框颜色
        fontSize=15;                    //设置字体大小
        //***************内部变量定义*****************
        sPop=null;
        curShow=null;
        tFadeOut=null;
        tFadeIn=null;
        tFadeWaiting=null;
        document.write("<style type='text/css'id='defaultPopStyle'>");
        document.write(".cPopText { background-color:");
        document.write(backColor);                //设置背景颜色
        document.write(";color:");
        document.write(fontColor);                //设置字体颜色
        document.write(";border: 1px ");
        document.write(borderColor);                //设置边框颜色
        document.write(" solid;font-size:");
        document.write(fontSize);                    //设置字体大小
        document.write("pt;padding:2px;filter: Alpha(Opacity=0)};width:300px;height:300px;");
        document.write("</style>");
        document.write("<div id='dypopLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>");
        function showPopupText(){
        var o=event.srcElement;
        MouseX=event.x;
        MouseY=event.y;
        if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};
        if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};
        if(o.dypop!=sPop) {
        sPop=o.dypop;
        clearTimeout(curShow);
        clearTimeout(tFadeOut);
        clearTimeout(tFadeIn);
        clearTimeout(tFadeWaiting);
        if(sPop==null || sPop=="") {
        dypopLayer.innerHTML="";
        dypopLayer.style.filter="Alpha()";
        dypopLayer.filters.Alpha.opacity=0;
        }
        else {
        if(o.dyclass!=null) popStyle=o.dyclass
        else popStyle="cPopText";
        curShow=setTimeout("showIt()",tPopWait);
        }}}
        function showIt(){
        dypopLayer.className=popStyle;
        dypopLayer.innerHTML=sPop;
        popWidth=dypopLayer.clientWidth;
        popHeight=dypopLayer.clientHeight;
        if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
        else popLeftAdjust=0;
        if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
        else popTopAdjust=0;
        dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
        dypopLayer.style.top=MouseY+12+document.body.scrollTop*2;//+popTopAdjust;
        dypopLayer.style.filter="Alpha(Opacity=0)";
        fadeOut();
        }
        function fadeOut(){
        if(dypopLayer.filters.Alpha.opacity<popOpacity) {
        dypopLayer.filters.Alpha.opacity+=showPopStep;
        tFadeOut=setTimeout("fadeOut()",1);
        }
        else {
        dypopLayer.filters.Alpha.opacity=popOpacity;
        tFadeWaiting=setTimeout("fadeIn()",tPopShow);
        }}
        function fadeIn(){
        if(dypopLayer.filters.Alpha.opacity>0) {
        dypopLayer.filters.Alpha.opacity-=1;
        tFadeIn=setTimeout("fadeIn()",1);
        }}
        document.onmouseover=showPopupText;
    </script>