简体   繁体   中英

Javascript Pop-Up when Mouse Hovers toward Browser Bar/Back Button

I would like to imitate this exact feature on this page. (Move mouse toward the top browser bar)

http://my-personal-growth.com/personal-growth/what-anthony-robbins-teaches-about-emotions-and-meaning

I guess all i need to know is how to create the hovering mouse action, the rest I should be able to handle myself.

Any tutorials? I don't know js.

Thanks Everyone.

You might notice the wee little text at the bottom of the ( f&!ing ) popup:

Powered by ActionPopup

That's how it's done.

Don't do it.

(And don't you just love the voice that starts talking at you when you open the ActionPopup page?)

You could use window.onmouseout event or use onmouseout on the elements on the page you are using.

Something like this:

<html>
<head>

<title>onmouseout test</title>

<style type="text/css">
.my_box { border: 1px solid red; }
</style>

<script type="text/javascript">

window.onmouseout = mouseout;

function mouseout()
{
 alert("mouseout event detected!");
}
</script>
</head>

<body>
<div class="my_box">
<p>move the mouse pointer away from the element it is on<br />
to fire the mouseout event.</p>
</div>
</body>
</html>

As Matt Ball said, it's made by ActionPopup .

If you want to see how it's done, you can have a look at the code here :

http://my-personal-growth.com/wp-content/plugins/action-popup/actionpopup.php

(not sure why it has a php extension...)

But as the others said, it is a very annoying function. I can't really see how it would ever be useful.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM