On 2/23/2011 10:37 PM, Foskett, Mike wrote:
Just a few thoughts.
It would be better if the keyboard link had an id reference in it.
<a id="openPopup1" href="#popup1">pop-up</a>
And the associated div had an id:
<div id="popup1">...
The close link references the opening link:
<a href="#openPopup1">Close</a>
Also shift the pop-up off-screen rather than display:none
#popup1 {position: absolute; left:-500em; top:0}
Or at very least check JavaScript is enabled before hiding it using display:none
.hasJS #popup1 {display:none}
Add the .hasJS class to the html element like so:
<script
type="text/javascript">/*<![CDATA[*/document.documentElement.className="hasJS";/*]]>*/</script>
Which should be the first line in the head section.
I don't think hiding the display of the pop up will be necessary, as
mobile device users could use the keyboard functionality as well.
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************