?
Solved

Change Font Color onmouseover

Posted on 2005-03-25
6
Medium Priority
?
646 Views
Last Modified: 2013-12-03
Hi Experts !

On ONMOUSEOVER, I want the link to underline and the cursor the change into a 'hand'.
On ONMOUSEOUT, I want to revert to what it was before. Here's what I have to do that:

            <TD WIDTH="400"   STYLE="PADDING-RIGHT: 3px; PADDING-LEFT: 13px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px">
              <ASP:LINKBUTTON RUNAT=server ID="Lnktitle"  TEXT=<%# DataBinder.Eval(Container.DataItem, "title") %>
                          STYLE="TEXT-DECORATION: none" ONMOUSEOVER="this.style.textDecoration='underline'"
                          ONMOUSEOUT="this.style.textDecoration='none'" TOOLTIP="Click Here For Your Report"                    
                        ></ASP:LINKBUTTON> </TD>

I also want the text to turn 'RED', but I don't know how to incorporate this into the syntax:

"this.style.color='red'"

Any help is really appreciated !
0
Comment
Question by:allanau20
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 25

Expert Comment

by:archrajan
ID: 13634249
can u post what u get as html i mean from the view source
0
 
LVL 5

Author Comment

by:allanau20
ID: 13634258
Hi archrajan,

Thanks for your help !

            <TD WIDTH="400"   STYLE="PADDING-RIGHT: 3px; PADDING-LEFT: 13px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px">
              <a id="ddl_rpts__ctl1_Lnktitle" title="Click Here For Your Report" ONMOUSEOVER="this.style.textDecoration='underline'" ONMOUSEOUT="this.style.textDecoration='none'" href="javascript:__doPostBack('ddl_rpts$_ctl1$Lnktitle','')" style="TEXT-DECORATION: none">Report Name Here </a> </TD>
0
 
LVL 25

Accepted Solution

by:
archrajan earned 1000 total points
ID: 13634316
<TD WIDTH="400"   STYLE="PADDING-RIGHT: 3px; PADDING-LEFT: 13px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px">
              <a id="ddl_rpts__ctl1_Lnktitle" title="Click Here For Your Report" ONMOUSEOVER="this.style.textDecoration='underline';this.style.color = 'red';this.style.cursor= 'hand';" ONMOUSEOUT="this.style.textDecoration='none';this.style.color = 'blue';" href="javascript:__doPostBack('ddl_rpts$_ctl1$Lnktitle','')" style="TEXT-DECORATION: none">Report Name Here </a> </TD>
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 5

Author Comment

by:allanau20
ID: 13634337
Perfect archrajan !

The ";" was the key to combine multiple syntax.

Have a happy Easter !
0
 
LVL 25

Expert Comment

by:archrajan
ID: 13634348
or u can do with css
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<style>
a:active {   color: black; text-decoration: none}
a:visited {    color: blue; text-decoration: none}
a:hover {    text-decoration: underline; color:red; cursor:hand;}
</style>
<TITLE> New Document </TITLE>
</HEAD>

<BODY>
<TD WIDTH="400"   STYLE="PADDING-RIGHT: 3px; PADDING-LEFT: 13px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px">
              <a id="ddl_rpts__ctl1_Lnktitle" title="Click Here For Your Report"  href="javascript:__doPostBack('ddl_rpts$_ctl1$Lnktitle','')" >Report Name Here </a>
                    </TD>
</BODY>
</HTML>
0
 
LVL 25

Expert Comment

by:archrajan
ID: 13634351
Happy Easter friend...
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question