Jump to content


Photo

onmouseout


  • Please log in to reply
10 replies to this topic

#1 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 04 May 2006 - 10:46 PM

I wonder, is there a way to turn this into a function, and call it in the link.
<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>

I am referring to the onmouseover and onmouseout
I am seeking a different way, and yes I am getting rid of those uppercase m

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 04 May 2006 - 11:55 PM

Take this as constructive criticism:

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

#2 - avoid using javascript for pointless 'tricks'

#3 - code for accessibility:
<a href="specialfeatures.php" title = "Visit the Special Features Page" class="mainnav">Special Features</a>

Legend has it that reading the manual never killed anyone.
My site

#3 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 05 May 2006 - 12:00 AM

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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 05 May 2006 - 12:13 AM

[!--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.

Legend has it that reading the manual never killed anyone.
My site

#5 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 05 May 2006 - 12:18 AM

[!--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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#6 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 05 May 2006 - 12:35 AM

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.
Legend has it that reading the manual never killed anyone.
My site

#7 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 05 May 2006 - 12:37 AM

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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#8 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 05 May 2006 - 12:59 AM

See the code example I gave in my first response. Use it on a test page and roll your mouse over it using a standards-compliant browser (or a speech reader)
Legend has it that reading the manual never killed anyone.
My site

#9 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 05 May 2006 - 01:10 AM

Is that xml, I never saw that tag anywhere, but it works, I will work on that tomorrow, you were right thanks for tha advice, where does that tag originate. I don't think it's xhtml, is it xml.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#10 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 05 May 2006 - 01:39 AM

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]
Legend has it that reading the manual never killed anyone.
My site

#11 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 05 May 2006 - 01:49 AM

I appreciate it, and I have changed them all now to that, and it seems to look much better, thanks I appreciate it.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users