Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2006, 09:40 AM
Authorized User
 
Join Date: Sep 2006
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default OnMouseOver to highlight a hot-spot ?

I have an HTML table with a call to a javascript function in the header of the table (to sort the columns). Here is the syntax:

<td class="head" onClick="proc(myparameter);">Team Code</td>

This works fine but there is no indication to the user that the header region is 'active'. I don't really want to put standard hot-links in (i.e. underlined text) because that looks as if it would take you to another page (which is not the case).

I have googled on the command OnMouseOver and this seems to offer possibilities to call procedures or to activate GIF images but this is not really what I want to do.

I would like either the color of the cell (in the table) to change or maybe the mouse pointer to change to the 'hand'. This would be discreet and would be enough to indicate to the user that the region is 'active'.

Does anyone have any tips here? Maybe making use of the OnMouseOver syntax? Or anything else that comes to mind?

Regards,
Alan Searle.

 
Old November 13th, 2006, 03:10 PM
Registered User
 
Join Date: Nov 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

not sure if this is the best way to do it but it should work:

<td id="someID" onMouseOver=""document.getElementById('someID').st yle.cursor='pointer';" class="head" onClick="proc(myparameter);">Team Code</td>






Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Session...hot to do that? Shuchik Classic ASP Basics 1 August 31st, 2007 01:49 AM
hot spot set in image editor visual studio c++ mateenmohd Visual C++ 0 June 18th, 2003 05:01 AM
Hot Spot Technology information provide mateenmohd Classic ASP Components 0 June 7th, 2003 01:41 PM
Hot Spot Technology visual studio mateenmohd VB Databases Basics 0 June 6th, 2003 02:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.