Quote:
Originally Posted by _Aerospace_Eng_
Besides it won't work in Opera […].
|
Works fine for me in Opera 9.01. Of course, I may have tampered with the defaults and not remember having done so.
Quote:
Originally Posted by KyuubiKahiera
i tried this and it does show the edited statusbar but, when i click on the text, nothing happens
|
That's because the Javascript is missing an apostrophe within the
onclick attribute's value. It's also using an incorrect, proprietary value for the
cursor property;
hand should be
pointer. Here's a corrected version of theDragonsDen's code:
Code:
CSS:
span {
cursor: pointer;
color: red;
text-decoration: underline;
}
HTML and inline JavaScript/:
<span onclick="location.href='http://thedragonsden.us.to/';"
onmouseover="window.status='theDragon\u0027sDen';"
onmouseout="window.status='';">Click Here to Visit theDragon'sDen</span>
Of course, I would advise using an anchor (
a) element instead of a
span element for the link so that you have a fall-back in case the user has JavaScript disabled:
Code:
<a href="http://thedragonsden.us.to/"
onmouseover="window.status='theDragon\u0027sDen';"
onmouseout="window.status='';">Click Here to Visit theDragon'sDen</a>