Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Javascript / Client Side Development

making part of a background image clickable


Hi,

Let's say I have a background image for a table cell.  It doesn't
repeat and is right-aligned.

.cellBG {
    background: url('../images/mygf.gif') no-repeat;
    background-position: right;

}

How would I trigger a particular event if a user clickx on the right-
most 50 pixels of the cell (and hence the image that's behind it)?

Thanks, - Dave

laredotorn@zipmail.com a crit :

> Hi,

> Let's say I have a background image for a table cell.  It doesn't
> repeat and is right-aligned.

> .cellBG {
>     background: url('../images/mygf.gif') no-repeat;
>     background-position: right;
> }

> How would I trigger a particular event if a user clickx on the right-
> most 50 pixels of the cell (and hence the image that's behind it)?

and what about to simply click the TD ?
(or have you something else to click in it ?)

--
Stephane Moriaux et son (moins) vieux Mac dj dpass
Stephane Moriaux and his (less) old Mac already out of date

On May 9, 2:00 pm, ASM <stephanemoriaux.NoAd@wanadoo.fr.invalid>
wrote:

To answer your question, yes, there is something else to click in it.
However, if I could catch the TD.onclick event and then determine
relative x,y coordinates of where the mouse click occurred, I could do
what I want.

 - Dave

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc