473,796 Members | 2,702 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

onhover Emulation

So a client requires a useless column on the page that contains
employee profile blocks with little images in them. The div tag
containing the content has an overflow of hidden. It contains more
profile blocks that can be seen. The task is to have the thing scroll
through the profiles when a user hovers the edge. I have it scrolling
one block at a time 'onclick'. My question is this: Is there a simple,
efficient way to capture a continuous mouse hover? I guess I could
keep checking the mouse position, but that seems too inefficient to be
the best way.

Thanks.
Feb 26 '08 #1
4 2154
exiquio <ex*****@gmail. comwrites:
>My question is this: Is there a simple, efficient way to capture a
continuous mouse hover? I guess I could keep checking the mouse
position, but that seems too inefficient to be the best way.
You can't "keep checking the mouse position". Just use mousemove events.

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
Feb 26 '08 #2
exiquio <ex*****@gmail. comwrites:
On Feb 25, 7:11Â*pm, Joost Diepenmaat <jo...@zeekat.n lwrote:

That doesn't seem to work. The initial mouse over causes the event to
trigger, but there is not action to follow. I am using mootools for
this. Here is the code:
[snip]

You want some kind of timeout/interval event to scoll on while the mouse
hasn't move out of the element. I'm not familiar with the library you're
using. You also don't need [code] tags to post code. This is usenet. We
tend to use plain text.

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
Feb 26 '08 #3
On Feb 25, 7:24*pm, Joost Diepenmaat <jo...@zeekat.n lwrote:
exiquio <exiq...@gmail. comwrites:
On Feb 25, 7:11*pm, Joost Diepenmaat <jo...@zeekat.n lwrote:
That doesn't seem to work. The initial mouse over causes the event to
trigger, but there is not action to follow. I am using mootools for
this. Here is the code:

*[snip]

You want some kind of timeout/interval event to scoll on while the mouse
hasn't move out of the element. I'm not familiar with the library you're
using. You also don't need [code] tags to post code. This is usenet. We
tend to use plain text.

--
Joost Diepenmaat | blog:http://joost.zeekat.nl/| work:http://zeekat.nl/
Thanks. My bad about the tags.
Feb 26 '08 #4
On Feb 25, 7:27*pm, exiquio <exiq...@gmail. comwrote:
On Feb 25, 7:24*pm, Joost Diepenmaat <jo...@zeekat.n lwrote:
exiquio <exiq...@gmail. comwrites:
On Feb 25, 7:11*pm, Joost Diepenmaat <jo...@zeekat.n lwrote:
That doesn't seem to work. The initial mouse over causes the event to
trigger, but there is not action to follow. I am using mootools for
this. Here is the code:
*[snip]
You want some kind of timeout/interval event to scoll on while the mouse
hasn't move out of the element. I'm not familiar with the library you're
using. You also don't need [code] tags to post code. This is usenet. We
tend to use plain text.
--
Joost Diepenmaat | blog:http://joost.zeekat.nl/|work:http://zeekat.nl/

Thanks. My bad about the tags.
So here is the working code. I will change the intervals, but that
isn't important. Thanks Joost.

window.addEvent ('domready', function(){
// Create a global namespace API
var JD = function(){
/* PRIVATE */
// Create a scrolling object for the team box
var team_scroll = new Fx.Scroll(
'team_side_bar' ,
{
duration: 1000
}
);
var position = 0;
/* END PRIVATE */

/* PUBLIC */
return{
init: function(){
// Register events for team bar scrolling
var topTriggerTimer = function(){};
var bottomTriggerTi mer = function(){};
// TODO (exiquio) adjust pixels
$('top_trigger' ).addEvent('mou seenter', function(event) {
topTriggerTimer = (function(){
team_scroll.scr ollTo(0, position - 116);
position = position - 116;
}).periodical(1 500);
});
$('top_trigger' ).addEvent('mou seleave', function(event) {
$clear(topTrigg erTimer);
});
$('bottom_trigg er').addEvent(' mouseenter', function(event) {
bottomTriggerTi mer = (function(){
team_scroll.scr ollTo(0, position + 116);
position = position + 116;
}).periodical(1 500);
});
$('bottom_trigg er').addEvent(' mouseleave', function(event) {
$clear(bottomTr iggerTimer);
});
}
}
/* END PUBLIC */
}();
// Call init()
JD.init();
});
Feb 26 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
1682
by: Chris | last post by:
Is there any way to make the class Z behave the same way as class Y? Chris class Y: value = 42 def __hasattr__(self, name): if name == '__int__': return True def __getattr__(self, name):
0
1220
by: Pam Sheldon | last post by:
I have an app that uses data files. How can get the files over to the emulator so I can debug the app in the emulation mode? Microsoft does not say this is a limitation of the emulator. Pam
3
2063
by: Gilles Cadorel | last post by:
I'd like to add in a HTML page a button, that open a Unix Emulation on a new Windows, when I clik on it. I'm using WRQ Reflection to connect to Unix hosts. The problem is that I don't want the emulation be opened in Internet Explorer, but the real programm (r1win.exe in this case) to be opened on a new Windows. Can anybody help me ? Gilles
4
3297
by: Gord Murray | last post by:
Stuck with a problem. http://eastontario.com/guitar/onHover.htm "View Source" of course. This might be a boon for the guitar teachers/students. When you pass the mouse pointer over Chord letter link, holding it there for the downloading of images, eventually diagram open to assist beginners. How does one preload those images?
3
4349
by: ShadowMan | last post by:
Hi all I've seen a lot of posts about frames emulation. I would like to emulate a: header, left-side menu, content, footer layout. I need to be cross browser compatible...but I'm get crazy!!! My code is above: it displays right on Firefox 1.0 but it doesn't on IE6. What should I change?! thanx --
0
1259
by: Jose Michael Meo R. Barrido | last post by:
I'm looking for a .net framework component to read write to Serial(Com port) that supports ANSI Emulation.
0
1002
by: Maddog | last post by:
How do I enable Brief emulation as the editor in Visual Studio.Net? I can do it in Visual Studio 6.0.
1
2057
by: Nathan Young | last post by:
Hello. I have a .net application that utilizes COM ports to communicate with serial devices (namely a GPS). This may not be the right group for this question, but bear with me as I am not sure where else to ask. (I would appreciate any NG pointers). Anyway, my application uses CreateFile and ReadFile to setup a COM port for the GPS, and then to read the data from the GPS.
0
1249
by: lysdexia | last post by:
I am attempting to screen scrape SuperDOS, an extremely closed system that uses wyse 60 terminals to communicate with a dos machine. I have not been able to communicate properly with superdos until trying the handy miniterm.py example from the pyserial package in conjunction with Markus Gutschke's wy60 emulator which translates input through an xterm into wyse 60 commands. These programs together allow me to interact with superdos pretty...
8
1465
by: Ethan Furman | last post by:
Greetings, List! I'm working on a numeric data type for measured values that will keep track of and limit results to the number of significant digits originally defined for the values in question. I am doing this primarily because I enjoy playing with numbers, and also to get some experience with unit testing. At this point I have the __init__ portion finished, and am starting on
0
10217
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10168
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9047
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.