Web Design and Development Forums

Access keys in head

This is a discussion on "Access keys in head" within the Accessibility and Usability section. This forum, and the thread "Access keys in head are both part of the Plan Your Website category.

Old Jul 6th, 2007, 11:49   #1 (permalink)
Up'n'Coming Member
 
Join Date: Jul 2005
Location: uk
Posts: 87
Talking Access keys in head

If there a way of putting the access keys in a head of a document? I know you normally add them to the link. I tried this code below and it worked in IE6 but its not valid! Any help, yes please!

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Access keys</title>
<link href="css/global.css" rel="stylesheet" type="text/css" />
<a href="about-us.htm" accesskey="a"></a>
</head>
<body>
<div id="topnav"> 
  <p><a href="about-us.htm">about us</a> | <a href="contact-us.htm" accesskey="c">contact us</a> </p>
  <p>Access keys</p>
  <p>a=about us<br />
  c=contact us</p>
  <p>Alt then return for windows    </p>
</div>
</body>
</html>
__________________
Creative Photography & Web Design www.glanceimage.co.uk
cyberseed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jul 6th, 2007, 12:20   #2 (permalink)
 
Join Date: May 2006
Location: North West, UK
Age: 21
Posts: 1,389
Re: Access keys in head

Why would you want to do this? What are you trying to achieve?

Pete.
pa007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jul 6th, 2007, 17:20   #3 (permalink)
Up'n'Coming Member
 
Join Date: Jul 2005
Location: uk
Posts: 87
Re: Access keys in head

Its a long winded answer Pete. I am trying to make a AA site using a cms joomla (we are almost there ish). I am looking for a component that will allow you to add access keys to the main menus but in the mean time I was going to add some to the template. I can add them to links in the content but the parameters in the dynamic menu system does not allow for this (yet). The only work around I can think of is to add access keys to the template and hide them with css, unless they can be added to the head in some way.
__________________
Creative Photography & Web Design www.glanceimage.co.uk
cyberseed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 23rd, 2007, 03:34   #4 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
Re: Access keys in head

What about putting it in an external javascript file:
document.write("'<a href="about-us.htm" accesskey="a></a>'")
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 23rd, 2007, 07:56   #5 (permalink)
Up'n'Coming Member
 
Join Date: Jul 2005
Location: uk
Posts: 87
Re: Access keys in head

Thanks Alex thats a great idea. I have solved my problem by finding a component to plugin to the CMS thats works great. Thanks for the post.
Cheers
__________________
Creative Photography & Web Design www.glanceimage.co.uk
cyberseed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
access keys, head

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How Many Keyboard Keys tox0tes Flash & Multimedia Forum 3 Oct 4th, 2007 21:14
No </HEAD> tag? cj550 HTML Forum 4 May 11th, 2007 21:07
ASP Multi users Access to Microsoft Access ish ASP Forum 0 Apr 26th, 2007 20:05
Need help Short Cut Keys on Drop Shadow in Fireworks csun Graphics Forum 1 Jul 7th, 2006 13:23
Over my head moragskene1@aol.com Introduce Yourself 8 Nov 29th, 2004 07:20



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 16:14.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59