Solved

hyperlink.attributes.add onmouseover

Posted on 2006-07-12
3
916 Views
Last Modified: 2008-01-09
Hello experts,

I ahve two hyperlink controls, what is the syntax to assign the image of hypSmall to hypLarge,

I have got this far, but am stumped....

 HyperLink1.Attributes.Add("onMouseOut",...)
0
Comment
Question by:claracruz
3 Comments
 
LVL 9

Expert Comment

by:valkyrie_nc
ID: 17094785
... "src='" + hypSmall.ImageUrl.ToString() + '");



hth

valkyrie_nc
0
 
LVL 27

Accepted Solution

by:
Sammy earned 250 total points
ID: 17094961
You can use Css as well
<style type="text/css">
    .On{
   
    background-image:url(../Images/On.gif);
    }
.Off
{
background-image:url(../Images/Off.gif);
}
    </style>

and your page load
add this
HyperLink1.Attributes.Add("onmouseover", "this.className='On'")

HyperLink1.Attributes.Add("onmouseout", "this.className='Off'")
HyperLink1.Attributes.Add("onfocus", "this.blur();") 'Removes the flicker from IE

HTH
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

759 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now