Home > Web Front-end > HTML Tutorial > Ask a question about a floating window_html/css_WEB-ITnose

Ask a question about a floating window_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:25:58
Original
1489 people have browsed it

I copied the following code into the current html webpage, but the div does not move. What's going on? Please give me your guidance:






Reply to discussion (solution)

obj.onmouseover=function(){clearInterval(itl)}
obj.onmouseout=function(){itl=setInterval("floatwww_qpsh_com()", delay)}
Want to bind an event?
JavaScript is case-sensitive.
Onmouseover and onmouseout are There are capital letters.

obj.style.left = x document.body.scrollLeft "px"
obj.style.top = y document.body.scrollTop "px"

This I just control the mouse to hover, but why does it not move at all?

Scroll~~ Does your page have no height? What browser?

obj.style.left = x document.body.scrollLeft "px"
obj.style.top = y document.body.scrollTop "px"



That’s it, thank you, I’ll give it to you

You can move it after adding the pixels

Scroll~~ Does your page have no height? What browser?


That’s it, originally no px was added. . . Thank you for your reply

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template