jaavscript

Ads
 

jaavscript

Dear Sir,
Thank you for your reply.I have a mail inbox with e-mails.After reading one of them i want to color the entire line blue.Others unread line should be white as in gmail.Can i have the entire line as click and see the inbox or any other option.Please help me

Many Thanks & regards
debasis
View Answers

August 17, 2010 at 3:00 PM

Hi Friend,

Try the following code:

<HTML>
<HEAD>
<script language="javascript">
function change (i){
if(document.getElementById)
document.getElementById(i).color = "red";
else if(document.all)
document.all[i].color = "red";
}
</script>
</head>
<a href="#" onClick='return change("item1")'><font
id=item1> Link 1</font></a>
<a href="#" onclick='return change("item2")'><font
id=item2> Link 2</font></a>
</HTML>

Thanks

Ads









Related Tutorials/Questions & Answers:

Ads