Click here to Skip to main content
15,902,492 members
Home / Discussions / Web Development
   

Web Development

 
QuestionMouseOver on TD Pin
navkrishkannan22-Jan-09 1:14
navkrishkannan22-Jan-09 1:14 
hi all

please check the below code. the alert is working fine in onload. but how can i do the same when i mouse over to the particular <td>. please help me on this.

<HTML>
<HEAD>
<script>
var objBody;
var objDiv;
var anchorText;
var objLink;
var newChild;
var allTds = new Array();
window.onload=function(){
var tds=document.getElementsByTagName('td');
for (var s=0;s<tds.length ;s++)
{
allTds[s]=document.getElementsByTagName('td')[s];
alert(allTds[s].firstChild.nodeName);
}
for ( var i = 0; i < tds.length; i++ )
{
tds[i].onmouseover = function()
{
this.style.border = "1px solid #000";
};
tds[i].onmouseout = function()
{
this.style.border = "1px none";
return true;
};
}
}
</script>
</HEAD>
<BODY>
<table width="400" border="0" cellspacing="0" cellpadding="0" align="center">
<tr><td><img src="images/thumb1.jpg" height="120" width="120" border="0"></td><td>Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy</td></tr>
<tr><td colspan="2">Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy</td></tr>
</table>
</BODY>
</HTML>
AnswerRe: MouseOver on TD Pin
Ranjit Viswakumar29-Jan-09 14:44
Ranjit Viswakumar29-Jan-09 14:44 
QuestionWeb Service using COM object Pin
Griffin200221-Jan-09 9:31
Griffin200221-Jan-09 9:31 
Questionintegrate SnapCasa (thumbnail grabber) into a Guest book or scmething Pin
Task121-Jan-09 9:18
Task121-Jan-09 9:18 
QuestionProblem with Special Characters Pin
Christian Elena21-Jan-09 2:19
Christian Elena21-Jan-09 2:19 
AnswerRe: Problem with Special Characters Pin
SeMartens21-Jan-09 2:30
SeMartens21-Jan-09 2:30 
GeneralRe: Problem with Special Characters Pin
Christian Elena21-Jan-09 2:35
Christian Elena21-Jan-09 2:35 
QuestionThird Party Tool? Pin
Paramhans Dubey21-Jan-09 1:51
professionalParamhans Dubey21-Jan-09 1:51 
AnswerRe: Third Party Tool? Pin
Not Active21-Jan-09 2:13
mentorNot Active21-Jan-09 2:13 
QuestionADODB.Recordset error '800a0cc1' Pin
Member 340808220-Jan-09 22:30
Member 340808220-Jan-09 22:30 
AnswerRe: ADODB.Recordset error '800a0cc1' Pin
Aman Bhullar20-Jan-09 23:29
Aman Bhullar20-Jan-09 23:29 
GeneralRe: ADODB.Recordset error '800a0cc1' [modified] Pin
Member 340808221-Jan-09 16:17
Member 340808221-Jan-09 16:17 
GeneralRe: ADODB.Recordset error '800a0cc1' Pin
Aman Bhullar21-Jan-09 21:20
Aman Bhullar21-Jan-09 21:20 
GeneralRe: ADODB.Recordset error '800a0cc1' Pin
Member 340808221-Jan-09 21:34
Member 340808221-Jan-09 21:34 
GeneralRe: ADODB.Recordset error '800a0cc1' Pin
Aman Bhullar21-Jan-09 23:24
Aman Bhullar21-Jan-09 23:24 
GeneralRe: ADODB.Recordset error '800a0cc1' Pin
Member 340808221-Jan-09 16:34
Member 340808221-Jan-09 16:34 
QuestionURL in action attribute is converted to page name only (for FireFox)......? Pin
AshishTijare20-Jan-09 20:10
AshishTijare20-Jan-09 20:10 
QuestionSending HTML email using mailto Pin
peaceful_warrior20-Jan-09 18:35
peaceful_warrior20-Jan-09 18:35 
AnswerRe: Sending HTML email using mailto Pin
Aman Bhullar20-Jan-09 21:51
Aman Bhullar20-Jan-09 21:51 
QuestionCapture an object in ASP Pin
Anoop Unnikrishnan20-Jan-09 17:06
Anoop Unnikrishnan20-Jan-09 17:06 
QuestionCircumventing IE Navigation Controls Pin
Roger Wright20-Jan-09 16:53
professionalRoger Wright20-Jan-09 16:53 
QuestionHow to Display Repeater control Items like table with rows and columns??? Pin
Charmy320-Jan-09 9:28
Charmy320-Jan-09 9:28 
AnswerRe: How to Display Repeater control Items like table with rows and columns??? Pin
Abhishek Sur20-Jan-09 10:41
professionalAbhishek Sur20-Jan-09 10:41 
QuestionVirtual Pin
BRIMID19-Jan-09 11:12
BRIMID19-Jan-09 11:12 
QuestionComplex c# javascript to web sevice call question Pin
m1k3314118-Jan-09 15:45
m1k3314118-Jan-09 15:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.