本文介绍了如何在悬停图像时停止图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
—SA
Stop it by not using marque in first place. Marque is evil. For many users, this is a sufficient reason to avoid your Web site completely.
—SA
我正在使用html标记标签在其中移动图像. 每当鼠标悬停在图像上时,我都想停止图像移动. 我正在使用此代码
I am using a html marque tag in which i am moving images. I want to stop the image moving whenever i hover the mouse on it. I am using this code
<marquee loop="infinite" > <asp:Image ID="Img1" name="img1" runat="server" Height="100" Width="80" ImageUrl="~/images/sonyd.jpg" onmouseover="this.setAttribute('scrollamount', 0, 0);" onmouseout="this.setAttribute('scrollamount', 6, 0);"/> <asp:Image ID="Image2" runat="server" Height="100" Width="80" ImageUrl="~/images/camc.jpg"/> <asp:Image ID="Image3" runat="server" Height="100" Width="80" ImageUrl="~/images/laptop.jpg"/> <asp:Image ID="Image4" runat="server" Height="100" Width="80" ImageUrl="~/images/galaxy.jpg"/></marquee>但它不起作用. 当我在marque标签中编写事件时,它可以工作,但是当我将鼠标悬停在图像上而不是在任何其他pLACE IN MARQUE标签上时,我想停止它.
but its not working. When i write event in marque tag it works but i want to stop it when i hover on image and not on any other pLACE IN MARQUE tag.
推荐答案按以下方式停止首先不要使用字幕.马克是邪恶的.对于许多用户来说,这是完全避免访问您的网站的充分理由.
参见此类似问题 当鼠标悬停在链接上时,请停止选取字幕 [ ^ ] 如何在鼠标悬停在如何降低字幕的速度 [ ^ ] See this, similar question Stop marquee when mouse over link[^] how to stop marquee on mouse over and how to slow speed of marquee[^]
用作 <marquee onmouseover="this.stop();" onmouseout="this.start();" SCROLLAMOUNT=5> <asp:image id="Image3" runat="server" height="100" width="80" imageurl="~/images/laptop.jpg" xmlns:asp="#unknown" /> <asp:image id="Image4" runat="server" height="100" width="80" imageurl="~/images/galaxy.jpg" xmlns:asp="#unknown" /> </marquee>
更多推荐
如何在悬停图像时停止图像
发布评论