0

How would I change or mask the URL when I hover over a hyperlink.

I was able to change the color but not the URL.

StatementsHyperlink.Attributes.Add("onmouseover", "this.style.color=\"red\"");
Simon Martin
  • 4,203
  • 7
  • 56
  • 93
Jerry Trac
  • 357
  • 4
  • 17

1 Answers1

0

Personally I would handle changing the styling with CSS hover on hyperlinks, you could set the text colour and the background to be the same shade of grey to mask the url.

Do you have an example effect you are looking for?

Simon Martin
  • 4,203
  • 7
  • 56
  • 93
  • Would this hide the url in the status bar? If so, how? – Jerry Trac Jan 03 '13 at 23:26
  • No, you would need some javascript to do that but it is going to be different for each browser. Check http://stackoverflow.com/q/10468071/96505 and http://stackoverflow.com/q/876390/96505 for alternative – Simon Martin Jan 03 '13 at 23:32
  • this.href = 'whatever' cause not only the text to change but also the URl. I am just trying to mask it in the status bar. – Jerry Trac Jan 03 '13 at 23:57