codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  highlight a single row from table  Archive Import (zonan) at 04:40 on Tuesday, June 10, 2003
 

hello!
can anybody show me how to highlight a single row from a table generated from db after clicking a search button.

  Re: highlight a single row from table  Archive Import (david) at 07:31 on Monday, June 16, 2003
 

you need to tell us more about what you mean

  Re: highlight a single row from table  Troy Wolf at 16:15 on Wednesday, July 16, 2003
 

Agreed, need a litte more information. Say the search comes back with 50 rows. You want to know how to highlight one specific row? Based on what? Or do you mean to have the rows highlight as the mouse moves over them? Let us know--we are glad to help.
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: highlight a single row from table  Archive Import (Shrini) at 16:24 on Wednesday, July 23, 2003
 

You can use Javascript to do this... Very simple...
<script>
//by default browser will take this as javascript
var CurE1;
var OldE1;
function TurnColor(0 {
if(even.srcElement.parentelement.className=="Select"){
if (OldE1!=null) {
Old.style.backgroundColor="";
}
CurE1=event.srcElement.parentElement;
CurE1.style.backgroundColor="#D9DACD";
OldE1=CurE1
}
}
</script>

Then in the row...

<tr onClick="TurnColor();">



  Re: highlight a single row from table  Elain at 00:55 on Thursday, February 17, 2011
 

I'm sorry i don't understand you, Can you describe your question clearly? I would like to help you!
__________________________________
logo maker|flash banner|javascript menu








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Free PHP Programming Tutorials
•  Re: data type decimal
•  Re: highlight a single row from table
•  Re: Waiting to load a page object after the page loads
•  Error while running c++ shared object on AIX
•  Re: call a page from another page without any link?
•  How to make a DHTML Menu
•  Re: Submit multiple forms with one button
•  Re: Layer & Drop Downs - Expertise Needed


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2011