• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

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 ]
 
Your buns are mine! But you can have this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic