| | |
looking for a script for menubar
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2005
Posts: 17
Reputation:
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
•
•
Join Date: Mar 2005
Posts: 17
Reputation:
Solved Threads: 0
hmmm... didnt quite help there Paladine.
any other suggestions?
any other suggestions?
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
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:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
// 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
Posts: 17
Reputation:
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
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
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.
![]() |
Similar Threads
- 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)
- Importing SQL Script File - Urgent !! (Database Design)
- Adding mutiple PC's to an OU via script? (Windows NT / 2000 / XP)
- 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 ?
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxexample ajaxjspservlets array autoplay blackjack browser captcha captchaformproblem cart child class close codes date debugger dependent developer disablefirebug dom editor element embed engine enter events explorer ext file firefox flash focus form forms frameworks game gears getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe java javascript javascripthelp2020 jquery jsf jsp jump libcurl maps marquee masterpage math media menu object onerror onmouseoutdivproblem onreadystatechange parent passing paypal pdf php player position post programming prototype rated redirect safari scale scriptlets scroll search security size software solutions sources star stars stretch synchronous toggle tweet unicode variables web webkit webservice window \n






