Guest User

Untitled

a guest
May 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. ada = {
  2. init : function(){
  3. var tabindex = 2;
  4. $('#header a').each(function(){
  5. $(this).attr("tabindex", tabindex);
  6. tabindex++;
  7. });
  8.  
  9. //reserved 1000 for resume button
  10. tabindex = 1001;
  11. $('#slideContainer li a').add('#tabs a').each(function(){
  12. $(this).attr("tabindex", tabindex);
  13. tabindex++;
  14. });
  15.  
  16. },
  17. tabIndexMasthead : function(stackID){
  18. var tabindex = 10;
  19. $('#masthead a').each(function(){
  20. $(this).attr('tabindex', '');
  21. });
  22. $('#' + stackID + ' a').each(function(){
  23. $(this).attr("tabindex", tabindex);
  24. tabindex++;
  25. })
  26. },
  27. tabIndexTabContent : function(){
  28.  
  29. },
  30. focus : function(elemID){
  31. if(elemID != 'checkRates' && elemID != 'swf'){
  32. $('a.auralText').remove();
  33. $('#'+elemID).prepend('<a href="#" class="auralText">New content</a>').find('a.auralText').focus().click(function(event){
  34. event.preventDefault();
  35. });
  36. }
  37. },
  38. setFocus : function(elemID) {
  39. //$('#'+elemID).focus();
  40.  
  41. var swf_content = document.getElementById("swf_content");
  42. swf_content.focus();
  43.  
  44. }
  45. }
  46. function as2js_flashOutBackward() {
  47. var swf = document.getElementById("swf_content");
  48. //swf.focus();
  49. swf.blur();
  50. document.getElementByID("topMenuConnect").focus();
  51. //$("#topMenuConnect").focus();
  52. }
  53.  
  54. function as2js_flashOutForward() {
  55.  
  56. var swf = document.getElementById("swf_content");
  57. swf.blur();
  58. $("slideContainer").click();
  59. }
  60. $("#topMenuConnect").keypress(function (evt) {
  61. if (evt.shiftKey && evt.keyCode == 9) {
  62. } else if (evt.keyCode == 9) {
  63. if ($("#swf_content").length > 0 && isIE == false) {
  64. evt.preventDefault();
  65. ada.setFocus("null");
  66. }
  67. }
  68. });
Add Comment
Please, Sign In to add comment