Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hand Cursor

Status
Not open for further replies.

BoydMT

Programmer
May 28, 2003
32
US
Is there a way to display the hand cursor while hovering over a button?

Thanks,
Mark
 
I wrote a little app a while ago that used an image as it's menu and had the icon change when the cursor was over an area where a click could launch a new page...

It shouldn't take too much to tweek it.
Of course you might need to change the syntax to Java if you don't have an IE world :)
Also you would need to have an onMouseOut event (or what ever it is)

HTH

Rob

sub logo1_onMouseMove()
dim intLeft
dim intTop
intLeft = window.event.offsetX
intTop = window.event.offsetY

if intLeft > 298 and intLeft < 380 then
if intTop >192 and intTop < 262 then
form1.logo1.style.cursor = &quot;hand&quot;
form1.logo1.alt = &quot;Maintenence Report&quot;
elseif intTop >274 and intTop < 342 then
form1.logo1.alt = &quot;Audit Search Tool&quot;
form1.logo1.style.cursor = &quot;hand&quot;
elseif intTop >358 and intTop < 425 then
form1.logo1.alt = &quot;Plaza/Light Light Status&quot;
form1.logo1.style.cursor = &quot;hand&quot;
elseif intTop >437 and intTop < 506 then
form1.logo1.alt = &quot;Developers Misc Projects Documentation&quot;
form1.logo1.style.cursor = &quot;hand&quot;
else
form1.logo1.style.cursor = &quot;normal&quot;
form1.logo1.alt = &quot;&quot;
end if
else
form1.logo1.style.cursor = &quot;normal&quot;
form1.logo1.alt =&quot;&quot;
end if
end sub

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top