Solved

hyperlink.attributes.add onmouseover

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

707 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