Home User CP Browse Members Calendar Register Today!  
Get New posts Faq / Help?
   

Not A Member Yet? Register today and become part of the community.

Go Back   Forum > World Wide Web > Programming / Scripting / Coding Forum > Javascript

Javascript Need help with the (primarily) client-side programming language? This is the place. Includes discussion on AJAX (Asynchronous JavaScript and XML).

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-24-2007, 02:30 AM
siggy_2003
Status: Offline
Junior Member
 
Join Date: May 2007
Posts: 1
siggy_2003 is on a distinguished road
Default JavaScript to reposition a message DIV element on mouse

click? JavaScript to dynamically reposition, a message in a DIV element to the current position of the mouse cursor, anywhere within the Body of the document in the event of a mouse click?
Reply With Quote

  #2 (permalink)  
Old 05-24-2007, 03:06 AM
polly_peptide
Status: Offline
Junior Member
 
Join Date: May 2007
Posts: 1
polly_peptide is on a distinguished road
Default

Then you write your "body_onclick()" function to handle whatever it is you want to display.
Reply With Quote

  #3 (permalink)  
Old 05-24-2007, 04:06 AM
Math Guy
Status: Offline
Junior Member
 
Join Date: May 2007
Posts: 1
Math Guy is on a distinguished road
Default

Try the following. The body tab responds to the onclick event and calls a function that sets the top and left properties of the style of the divthis is the textfunction doit(event){bleck.style.left=event.clientXbleck.st yle.top=event.clientYalert("X coords: " + x + ", Y coords: " + y)}
Reply With Quote

Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can javascript tell if the mouse is ... beleoa Javascript 2 05-23-2007 02:49 AM
question about ways to apply CSS to a web page and/or linked element. flickall HTML/CSS/DHTML 2 02-18-2007 08:19 PM
Error Message espn4 Free Web Hosting Support 9 01-13-2007 04:50 PM
Profuse welcome message wgallt Free Web Hosting Support 1 10-12-2006 07:40 PM
Web Site Error Message MegaManX Free Web Hosting Support 1 02-20-2006 05:36 PM


All times are GMT -7. The time now is 09:38 PM.

Skin Design By vBSkinworks



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

Sponsored by Web Hosting


Profuse Solutions LLC

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79