Solved

hyperlink.attributes.add onmouseover

Posted on 2006-07-12
3
929 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

839 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