Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

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 ]
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic