W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > October to December 2001

RE: Snippet for Re: srcelement/target onfocus: device independence [scripts-TECHS]

From: Cynthia Shelly <cyns@microsoft.com>
Date: Tue, 20 Nov 2001 13:22:45 -0800
Message-ID: <7164D4266FD7B94CA59D551C7FE6618D02E59C2C@red-msg-08.redmond.corp.microsoft.com>
To: <w3c-wai-gl@w3.org>
Try the attached html file (sorry for the attachment, I don't have
access to an external server to post it on right now)

I removed the <a href> and added a tabindex to the <img> element.  You
had focus on the <a> element, not the <img>.  Since the id and the
onmousewheel script were both on the <img> instead of the <a>, you
weren't able to get to them from the <a>.  

You can use tabindex on most tags to add them to the tab order.  Here's
a reference to the use of tabindex in IE
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml
/reference/properties/tabIndex.asp


-----Original Message-----
From: Jonathan Chetwynd [mailto:j.chetwynd@btinternet.com] 
Sent: Tuesday, November 20, 2001 12:43 PM
To: Cynthia Shelly; w3c-wai-gl@w3.org; charles McCathieNeville
Subject: Snippet for Re: srcelement/target onfocus: device independence
[scripts-TECHS]

There are 2 issues:
I've created one URI:
http://www.peepo.com/2k1/mousewheel/srcelement.html

onmousewheel and srcElement snippet
You need IE6(javascript enabled) and a mousewheel.
This snippet uses the onmousewheel event to expand or contract the
picture
below.
Move the cursor over the picture and roll the mouse wheel up and down.
Move the mouse off the image.

Now try tabbing to the image, click the alert, or keypad 'enter' and try
to
zoom using the wheel.

2 problems:
-    no ID
-    no mousewheel

thanks again

jonathan chetwynd

ps: Part of the problem is to find a way to tab to an image that doesn't
have an href (any ideas)?

http://www.peepo.com         "The first and still the best picture
directory
on the web"
http://www.learningdifficulty.org.uk "Our guide to helping people with a
learning difficulty get the most from the web"



Received on Tuesday, 20 November 2001 16:23:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:47:16 GMT