• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Text with Mouse

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dear Friends,
I m making a website on which what I want to put is that through using Javascript, I want to attach some text with the mouse pointer, means that where ever mouse pointer will go the text will also go with it, I need the code tommorow, I m too much because I have never used JavaScript but just give me the code for this purpose I shall embed it with my HTML Code. Waiting for your reply.
bye
Noman Iqbal. (SCJP2)
 
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got this from www.dynamicdrive.com, it's pretty cool.

Note:
- change "on-Load" to "onLoad"
- change "e-val" to "eval"
 
Noman Iqbal
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear James,
I tried that code it is working correctly but the problem with it is that whenever I move my mouse pointer over a flash animation the text attached with the mouse pointer hides behind that animation. Please tell some method to solve this problem in order that whenever I take mouse pointer over the Flash animation the text will come above that animation not below. Waiting for your reply.
bye
Noman Iqbal.
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure if I can help you there.
My only suggestion would be to experiment with the "z-index" style property for the span.
Z-index controls the depth settings (ie. which objects is in front/behind others).
 
Noman Iqbal
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx James,
I shall try it and if I succeed then I shall inform you.
bye
Noman Iqbal.
[ April 03, 2002: Message edited by: noman iqbal ]
 
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic