2 xiaoyaozizai1 xiaoyaozizai1 于 2014.09.01 21:42 提问

鼠标移动只会下拉第一个,用的是onmouseover。求帮忙

html代码

        <ul>
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <li > 
                        <a class="space" href="<%#Eval("Link") %>" onmouseover="display()" onmouseout="disappear()">
                            <img src="/Upload/Product/womensdress/<%#Eval("ProductJpg") %>"alt="产品"  width="240" height="240"/>
                        </a>
                        <h3>
                            <b>【包邮】</b>
                                <a rel="nofollow" target="_blank" href="<%#Eval("Link") %>" title="<%#Eval("ProductName")%>"><%#Eval("ProductName")%></a>
                        </h3>
                        <h4>
                            <em><b>¥</b>22</em>
                            <span>
                            <i>¥35</i>
                            <u>(2.3折)</u>
                            <strong>
                            <b class="i2" title="拍下改价"></b>
                            </strong>
                            </span>
                            <a rel="nofollow" target="_blank" href="http://out.zhe800.com/ju/deal/1zhewang_504066" onclick="add_page_stats_to_params(this,504066,'')" onmouseover="display()" onmouseout="disappear()">去淘宝抢购</a>
                        </h4>
                        <div id="deal" >
                   <h5>
                            <b>剩余时间:</b><i>1天1时11分</i>
                        </h5>
                        <h6>
                        <a href='http://www.zhe800.com/help/cs_support?utm_content=deal' class='xfbz' target='_blank'>
                        <b>质检员28:</b>
                            鲜花饼是以云南特有的食用玫瑰花入料的酥饼,是以“花味、云南味”为特色的云南经典点心代表,3种口味。</a>
                        <span class='xq'><a href="http://www.zhe800.com/ju_deal/1zhewang_504066" target="_blank">[详情]</a></span>
                        </h6>
                        </div>
                    </li>  
                </ItemTemplate>
            </asp:Repeater>        

script代码
$("#mkeUl").hover(function () { clearInterval(Timer) }, function () { Timer = setInterval(autoPlay, 4000); });
function display() {
document.getElementById("deal").style.display = "block";
}
function disappear() {
document.getElementById("deal").style.display = "none";
}

CSDN移动问答

1个回答

c10234731
c10234731   2014.09.02 21:20

是不是deal这个id重复了,可以看看生成的html页面

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!