•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 361,044 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,061 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2725 | Replies: 6
![]() |
•
•
Join Date: Mar 2005
Location: To-ron-to
Posts: 17
Reputation:
Rep Power: 4
Solved Threads: 0
Hi guys,
I am looking for javascript that slides a pointer (an image) from from end to another (left to right) on the movement of the mouse.
I have the navbar and I want the pointer to be on the top so that when the users moves his mouse on the navbar the pointer on the top moves with it - ...
i hope i am explaing this correctly.
I searched and searched but got nowhere so in desperation i am asking the question here.
thanks.. i hope i get some reponses.
vik
I am looking for javascript that slides a pointer (an image) from from end to another (left to right) on the movement of the mouse.
I have the navbar and I want the pointer to be on the top so that when the users moves his mouse on the navbar the pointer on the top moves with it - ...
i hope i am explaing this correctly.
I searched and searched but got nowhere so in desperation i am asking the question here.
thanks.. i hope i get some reponses.
vik
Assistant Manager, Regional Pharmacy Information Systems
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
•
•
Join Date: Mar 2005
Location: To-ron-to
Posts: 17
Reputation:
Rep Power: 4
Solved Threads: 0
hmmm... didnt quite help there Paladine.
any other suggestions?
any other suggestions?
I'm having difficulty understanding the question. What attempts have you made so far to write this script?
If you want to capture the mouse movement and have it fire a JavaScript function, you'll have to use browser-specific code:
Then your "get_mouse" function would perform whatever sliding or navigation event you want, based upon the mouse coordinates captured in the "event" object.
If you want to capture the mouse movement and have it fire a JavaScript function, you'll have to use browser-specific code:
// id browsers
var iex=(document.all);
var nav=(document.layers);
var old=(navigator.appName=="Netscape" && !document.layers && !document.getElementById);
var n_6=(window.sidebar);
// capture mouse pointer
if(nav)document.captureEvents(Event.MOUSEMOVE);
if(n_6) document.addEventListener("mousemove",get_mouse,true);
if(nav||iex)document.onmousemove=get_mouse;Then your "get_mouse" function would perform whatever sliding or navigation event you want, based upon the mouse coordinates captured in the "event" object.
•
•
Join Date: Mar 2005
Location: To-ron-to
Posts: 17
Reputation:
Rep Power: 4
Solved Threads: 0
Hi tgreer,
I don't really have prgramming knowlesge of Javascript, whille I was surfing i saw a menu that I liked very much http://www.vbstyles.com/forum/index.php?styleid=72 but instead of the vertical slide.. I am looking for a horizontal one
any suggestions.. - thanks.
Vik
I don't really have prgramming knowlesge of Javascript, whille I was surfing i saw a menu that I liked very much http://www.vbstyles.com/forum/index.php?styleid=72 but instead of the vertical slide.. I am looking for a horizontal one
any suggestions.. - thanks.
Vik
The code I posted is the first step. It will watch for the mouse movement, and then fire a JavaScript function when the mouse moves, passing in the coordinates.
Someone will have to write the function to take those coordinates and use them to move your image.
I don't know if there are any pre-built scripts out there, which is what you want.
But the coding itself should be straightforward for a JavaScript programmer.
Someone will have to write the function to take those coordinates and use them to move your image.
I don't know if there are any pre-built scripts out there, which is what you want.
But the coding itself should be straightforward for a JavaScript programmer.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- Clean Previous Next Script for MySQL results (PHP)
- Script wont run on different computer (Python)
- load a script if its a only if its certain time and day (JavaScript / DHTML / AJAX)
- Random Programming Script (Computer Science and Software Design)
- Importing SQL Script File - Urgent !! (Database Design)
- Adding mutiple PC's to an OU via script? (Windows NT / 2000 / XP / 2003)
- Table of Contents Script (Java)
- ASP slow-down server script (ASP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Container Table for Exact Positioning in all Res
- Next Thread: Does Internet Explorer support Java Script ?



Linear Mode