...

View Full Version : hover text inside td when using onclick



RamaRao
05-14-2009, 09:26 AM
<td style="padding:5px;cursor:hand;" onclick="" title="Click for Metric details by status">metricName</td>

with href it is working.
it is not good when u use div for that td. page goes into up.
when u use onclick function it is working, page is in the same div.

can u give solution for this

abduraooft
05-14-2009, 09:58 AM
Please elaborate a little more...

brazenskies
05-14-2009, 10:23 AM
either add


<td style="padding:5px;cursor:hand;" onclick="" title="Click for Metric details by status"><a href="#">metricName</a></td>

or


<td style="padding:5px;cursor:hand;"title="Click for Metric details by status"><a href="javascript:functionName()">metricName</a></td>

RamaRao
05-14-2009, 10:42 AM
Thank you for ur reply.

can u give another solution without using href.
i know with href it is working.
wats problem with href -- i m using div. when u click link page goes to up.
scroll into view is not working.

RamaRao
05-14-2009, 11:19 AM
either add


<td style="padding:5px;cursor:hand;" onclick="" title="Click for Metric details by status"><a href="#">metricName</a></td>

or


<td style="padding:5px;cursor:hand;"title="Click for Metric details by status"><a href="javascript:functionName()">metricName</a></td>


Thank you for ur reply.

can u give another solution without using href.
i know with href it is working.
wats problem with href -- i m using div. when u click link page goes to up.
scroll into view is not working.




<td style="padding:5px;cursor:hand;" onclick="" title="Click for Metric details by status">metricName</td>

with href it is working.
it is not good when u use div for that td. page goes into up.
when u use onclick function it is working, page is in the same div.

can u give solution for this

abduraooft
05-14-2009, 11:31 AM
Not sure

<td style="padding:5px;cursor:hand;" title="Click for Metric details by status"><a href="#" onclick="functionName(); return false;">metricName</a></td>

brazenskies
05-14-2009, 11:44 AM
if you give your 'a' tag a hover color and pointer change and use this it will not go to the top of the page...


a:hover{color:#006699;cursor:pointer;}
and...


<td style="padding:5px;cursor:hand;" title="Click for Metric details by status"><a onclick="functionName()">metricName</a></td>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum