Ninjakreborn Posted May 4, 2006 Share Posted May 4, 2006 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 onmouseoutI am seeking a different way, and yes I am getting rid of those uppercase m Quote Link to comment https://forums.phpfreaks.com/topic/9090-onmouseout/ Share on other sites More sharing options...
AndyB Posted May 4, 2006 Share Posted May 4, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/9090-onmouseout/#findComment-33447 Share on other sites More sharing options...
Ninjakreborn Posted May 5, 2006 Author Share Posted May 5, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/9090-onmouseout/#findComment-33448 Share on other sites More sharing options...
AndyB Posted May 5, 2006 Share Posted May 5, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]... using javascript to enhance user experience[/quote]sighAccessibility 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 pageThis 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. Quote Link to comment https://forums.phpfreaks.com/topic/9090-onmouseout/#findComment-33450 Share on other sites More sharing options...
Ninjakreborn Posted May 5, 2006 Author Share Posted May 5, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]sighAccessibility 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. Quote Link to comment https://forums.phpfreaks.com/topic/9090-onmouseout/#findComment-33452 Share on other sites More sharing options...
AndyB Posted May 5, 2006 Share Posted May 5, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/9090-onmouseout/#findComment-33457 Share on other sites More sharing options...
Ninjakreborn Posted May 5, 2006 Author Share Posted May 5, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/9090-onmouseout/#findComment-33459 Share on other sites More sharing options...
AndyB Posted May 5, 2006 Share Posted May 5, 2006 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) Quote Link to comment https://forums.phpfreaks.com/topic/9090-onmouseout/#findComment-33462 Share on other sites More sharing options...
Ninjakreborn Posted May 5, 2006 Author Share Posted May 5, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/9090-onmouseout/#findComment-33464 Share on other sites More sharing options...
AndyB Posted May 5, 2006 Share Posted May 5, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/9090-onmouseout/#findComment-33470 Share on other sites More sharing options...
Ninjakreborn Posted May 5, 2006 Author Share Posted May 5, 2006 I appreciate it, and I have changed them all now to that, and it seems to look much better, thanks I appreciate it. Quote Link to comment https://forums.phpfreaks.com/topic/9090-onmouseout/#findComment-33472 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.