Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ada = {
- init : function(){
- var tabindex = 2;
- $('#header a').each(function(){
- $(this).attr("tabindex", tabindex);
- tabindex++;
- });
- //reserved 1000 for resume button
- tabindex = 1001;
- $('#slideContainer li a').add('#tabs a').each(function(){
- $(this).attr("tabindex", tabindex);
- tabindex++;
- });
- },
- tabIndexMasthead : function(stackID){
- var tabindex = 10;
- $('#masthead a').each(function(){
- $(this).attr('tabindex', '');
- });
- $('#' + stackID + ' a').each(function(){
- $(this).attr("tabindex", tabindex);
- tabindex++;
- })
- },
- tabIndexTabContent : function(){
- },
- focus : function(elemID){
- if(elemID != 'checkRates' && elemID != 'swf'){
- $('a.auralText').remove();
- $('#'+elemID).prepend('<a href="#" class="auralText">New content</a>').find('a.auralText').focus().click(function(event){
- event.preventDefault();
- });
- }
- },
- setFocus : function(elemID) {
- //$('#'+elemID).focus();
- var swf_content = document.getElementById("swf_content");
- swf_content.focus();
- }
- }
- function as2js_flashOutBackward() {
- var swf = document.getElementById("swf_content");
- //swf.focus();
- swf.blur();
- document.getElementByID("topMenuConnect").focus();
- //$("#topMenuConnect").focus();
- }
- function as2js_flashOutForward() {
- var swf = document.getElementById("swf_content");
- swf.blur();
- $("slideContainer").click();
- }
- $("#topMenuConnect").keypress(function (evt) {
- if (evt.shiftKey && evt.keyCode == 9) {
- } else if (evt.keyCode == 9) {
- if ($("#swf_content").length > 0 && isIE == false) {
- evt.preventDefault();
- ada.setFocus("null");
- }
- }
- });
Add Comment
Please, Sign In to add comment