Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementing Hover in JQuery

 
Harjit Singh
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I have a method on my client side which actually gets some JSON data from the server which includes some images which are being displayed. How can I do the following things

1) Depending on the image on which the mouse is show price info and some other data pertinant to the item on which the mouse is hovered.

Thanks

- Harjit
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are several jQuery plugins that already offer this functionality. One that I really like is qTip.
 
Harjit Singh
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had looked at it but I guess for some reasons the qtips were not being shown on the demo pages and hence I didn't look further. This exactly does what I need.

- Harjit
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a bunch of these available -- take a look around for another you like better.

Or, if you happen to have a copy of jQuery in Action, I show how to implement your own in Chapter 8.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, the qtip demos work fine for me.
 
Harjit Singh
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just bought it and will look thru it.

Thanks

- Harjit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic