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
Reply

Join Date: Mar 2005
Posts: 17
Reputation: Tdot is an unknown quantity at this point 
Solved Threads: 0
Tdot Tdot is offline Offline
Newbie Poster

looking for a script for menubar

 
0
  #1
Apr 11th, 2005
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
......
Thalforum.com - Thalassemia Community Forums
http://www.thalforum.com/forums - Forums
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 26
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: looking for a script for menubar

 
0
  #2
Apr 11th, 2005
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 17
Reputation: Tdot is an unknown quantity at this point 
Solved Threads: 0
Tdot Tdot is offline Offline
Newbie Poster

Re: looking for a script for menubar

 
0
  #3
Apr 11th, 2005
hmmm... didnt quite help there Paladine.

any other suggestions?
......
Thalforum.com - Thalassemia Community Forums
http://www.thalforum.com/forums - Forums
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: looking for a script for menubar

 
0
  #4
Apr 12th, 2005
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:

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. // id browsers
  2. var iex=(document.all);
  3. var nav=(document.layers);
  4. var old=(navigator.appName=="Netscape" && !document.layers && !document.getElementById);
  5. var n_6=(window.sidebar);
  6.  
  7. // capture mouse pointer
  8. if(nav)document.captureEvents(Event.MOUSEMOVE);
  9. if(n_6) document.addEventListener("mousemove",get_mouse,true);
  10. 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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 17
Reputation: Tdot is an unknown quantity at this point 
Solved Threads: 0
Tdot Tdot is offline Offline
Newbie Poster

Re: looking for a script for menubar

 
0
  #5
Apr 12th, 2005
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
......
Thalforum.com - Thalassemia Community Forums
http://www.thalforum.com/forums - Forums
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: looking for a script for menubar

 
0
  #6
Apr 12th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 17
Reputation: Tdot is an unknown quantity at this point 
Solved Threads: 0
Tdot Tdot is offline Offline
Newbie Poster

Re: looking for a script for menubar

 
0
  #7
Apr 12th, 2005
great!!
Thanks tgreer for getting me started on this.. i will look around!
......
Thalforum.com - Thalassemia Community Forums
http://www.thalforum.com/forums - Forums
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC