Trying to be creative with tooltips

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Shap5202
Super Advanced
Super Advanced
Posts: 62
Joined: Thu Sep 29, 2005 2:36 pm

Trying to be creative with tooltips

Post by Shap5202 »

We have a 'please wait' type of icon we display when the system is processing a request. Since tooltips can handle HTML... i wanted it to be that when you submit a request, basically a tooltip follows the mouse around (followtip=1) with the wait icon.

Already have a javascript method that gets called any time the url changes. So i can detect that. Basically it's like i want to show the tooltip on body mouseover. But that doesnt work quite right :)

If i move the mouse all the off the browser then back on, it seems to pick up the tooltip. But at this point I'm just trying random things. any thoughts?

Code: Select all

script language="JavaScript" type="text/JavaScript">
		function bodyMove(){
			if(enterPressed == true){
				showtip('<img src='wait.gif>', 1);
			}
		}
	</script>

<body onmouseover="bodyMove()">
The enterPressed variable being a global js var set when a request is submitted.
Post Reply