Jump to content

onmouseout


Ninjakreborn

Recommended Posts

I wonder, is there a way to turn this into a function, and call it in the link.
[code]
<a href="specialfeatures.php" class="mainnav" onMouseover="window.status='This will take you to the Special Features page!'; return true" onMouseout="window.status=' '; return true">Special Features</a>
[/code]

I am referring to the onmouseover and onmouseout
I am seeking a different way, and yes I am getting rid of those uppercase m
Link to comment
Share on other sites

Take this as constructive criticism:

#1 - leave the status window alone - it's part of [b]my browser[/b] not part of your web page.

#2 - avoid using javascript for pointless 'tricks'

#3 - code for accessibility:
[code]<a href="specialfeatures.php" title = "Visit the Special Features Page" class="mainnav">Special Features</a>[/code]
Link to comment
Share on other sites

Thank you for the advice.

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]#1 - leave the status window alone - it's part of my browser not part of your [/quote]
This is true to some extent, but for someone to regain control of there status bar, they simply have to cut off there javascript
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]#2 - avoid using javascript for pointless 'tricks'[/quote]
When I see a lot of websites, they have url's at the bottom on the status menu. Some of those url's depending on the site point to a huge url, that can't even fit, leaving the person wondering where it goes. I choose by default to add this to any website I create because I find it "nicer" to simply tell someone in plain english where they are going to go, adn when a link point to a website, I sometimes opt to leave the url when it is self explanatory, when it's off in nowhere I opt to explain the site a little.
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]#3 - code for accessibility[/quote]
This is one of my main principles of web design, using javascript to enhance user experience, there is only so much javascript can do, when I have the opprotunity to use it, I think whether it helps the site at all, whether it hurts the site at all, or whether it is just an addition, this didn't hurt it, it was an addition so i went with it, and if someone doesn't have javascript enabled they lose nothing from the experience.
Link to comment
Share on other sites

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]... using javascript to enhance user experience[/quote]

sigh

Accessibility is not about 'enhancing' the user experience.

[a href=\"http://www.w3.org/TR/WCAG10-HTML-TECHS/#link-text\" target=\"_blank\"]http://www.w3.org/TR/WCAG10-HTML-TECHS/#link-text[/a]

[a href=\"http://www.digital-web.com/articles/optimizing_your_chances_with_accessibility/\" target=\"_blank\"]http://www.digital-web.com/articles/optimi..._accessibility/[/a]

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]
#1 - leave the status window alone - it's part of my browser not part of your web page

This is true to some extent, but for someone to regain control of there status bar, they simply have to cut off there javascript[/quote]

So if you think you're using javascript to enhance the user experience and users are entitled to have control over their browsers you recommend they 'de-enhance' your work??? Spend a few minutes learning about accessibility before you force your preferences on users. Your sites will be better if you follow a few simple guidelines (well-documented at the URLs above).

Nevertheless, it's your web site to do with as you see fit. I just think that if someone claims expertise, then it ought to be self-evident from their work.
Link to comment
Share on other sites

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]sigh

Accessibility is not about 'enhancing' the user experience.

[a href=\"http://www.w3.org/TR/WCAG10-HTML-TECHS/#link-text\" target=\"_blank\"]http://www.w3.org/TR/WCAG10-HTML-TECHS/#link-text[/a]

[a href=\"http://www.digital-web.com/articles/optimi..._accessibility/\" target=\"_blank\"]http://www.digital-web.com/articles/optimi..._accessibility/[/a]
[/quote]
I missread that part, I know all about accessibility. Using javascript to change around the status bar, does not necessarily impair the ability of someone seeing your site, or disabled people.
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]

So if you think you're using javascript to enhance the user experience and users are entitled to have control over their browsers you recommend they 'de-enhance' your work??? Spend a few minutes learning about accessibility before you force your preferences on users. Your sites will be better if you follow a few simple guidelines (well-documented at the URLs above).

Nevertheless, it's your web site to do with as you see fit. I just think that if someone claims expertise, then it ought to be self-evident from their work.
[/quote]
yes I am still starting out, but I feel like I have a large amount of expertise.
1. Because I care about what I do.
2. Because I have ethics and morals when it comes to web design, coding, programming.
3. I love this business and I care about everything related to it.
I have studied vastly about accessibilities, I still have trouble with some of the more strict standards on bobby. But for the most part everything is accessible, using javascript with oop, to change around the message in teh status bar, doesn't even get picked up by bobby as an error message. I am not saying you are wrong, I am saying by my own belief system, javascript has it's uses, I think a good usage are little things like these.
Link to comment
Share on other sites

my last word on the topic .... using the title attribute in the href tag is what enhances the user experience AND enhances accessibility AND doesn't rely on javascript AND leaves the user's browser alone. That was the accessibility advice I gave you. What you do with the advice is up to you.
Link to comment
Share on other sites

what do you mean.
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]
using the title attribute in the href tag is what enhances the user experience AND enhances accessibility AND doesn't rely on javascript AND leaves the user's browser alone
[/quote]
What did you mean by that part, that is something worth listening too, if it makes sense to me after you explain it then I will probably scrap the javascript on teh status bars.
Link to comment
Share on other sites

It's part of the HTML standard (has been for many iterations). It'll validate against any DOCtype.

[a href=\"http://www.w3.org/TR/html4/struct/global.html#adef-title\" target=\"_blank\"]http://www.w3.org/TR/html4/struct/global.html#adef-title[/a]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.