Access keys in head

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



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Jul 6th, 2007, 11:49
Up'n'Coming Member
Join Date: Jul 2005
Location: uk
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
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>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 6th, 2007, 12:20
Most Reputable Member
Join Date: May 2006
Location: North West, UK
Age: 22
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Access keys in head

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

Pete.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 6th, 2007, 17:20
Up'n'Coming Member
Join Date: Jul 2005
Location: uk
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Aug 23rd, 2007, 03:34
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Access keys in head

What about putting it in an external javascript file:
document.write("'<a href="about-us.htm" accesskey="a></a>'")
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Aug 23rd, 2007, 07:56
Up'n'Coming Member
Join Date: Jul 2005
Location: uk
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
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
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

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 Web Page Design 4 May 11th, 2007 21:07
ASP Multi users Access to Microsoft Access ish Classic ASP 0 Apr 26th, 2007 20:05
Need help Short Cut Keys on Drop Shadow in Fireworks csun Graphics and 3D 1 Jul 7th, 2006 13:23


All times are GMT. The time now is 23:09.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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