Jquery Javascript移动菜单父类别一旦打开然后关闭将不再打开,除非

时间:2013-07-22 14:12:43

标签: javascript jquery mobile responsive-design touchstart

目前我有一个工作触摸/点击菜单,我可以触摸/单击父类别以打开其子项,然后重新触摸/重新单击以再次隐藏孩子。

这样可以正常工作,但我仍然坚持如何将父级状态更改回原始状态。

所以我遇到的问题是如果父母已被打开然后关闭,我不能再打开它,除非我点击另一个父母然后再回到它。

这是我到目前为止所做的:

<div class="rtsLevel rtsLevel1">
                <ul class="rtsUL">
                    <li class="rtsLI rtsFirst"><a class="rtsLink rtsSelected" href="home"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Home</span></span></span></a></li>
                    <li class="rtsLI parentGroup"><a class="rtsLink rtsAfter rtsHoverBefore" href="#"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">About</span></span></span></a></li>
                    <li class="rtsLI parentGroup"><a class="rtsLink" href="#"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Products</span></span></span></a></li>
                    <li class="rtsLI parentGroup"><a class="rtsLink rtsHoverAfter" href="#"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Training</span></span></span></a></li>
                    <li class="rtsLI parentGroup"><a class="rtsLink" href="#"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Consultancy</span></span></span></a></li>
                    <li class="rtsLI parentGroup"><a class="rtsLink" href="#"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Clients</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="news-and-articles"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">News &amp; Articles</span></span></span></a></li>
                    <li class="rtsLI parentGroup"><a class="rtsLink" href="#"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Applications</span></span></span></a></li>
                    <li class="rtsLI rtsLast parentGroup"><a class="rtsLink" href="#"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">My Account</span></span></span></a></li>
                </ul>
            </div>
            <div class="rtsLevel rtsLevel2">
                <ul class="rtsUL About" style="display: none;">
                    <li class="rtsLI rtsFirst"><a class="rtsLink" href="about/saville-consulting"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Saville Consulting</span></span></span></a></li>
                    <li class="rtsLI parentGroup"><a class="rtsLink Our People" href="#"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Our People</span></span></span></a></li>
                    <li class="rtsLI rtsLast"><a class="rtsLink" href="about/careers"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Careers</span></span></span></a></li>
                </ul>
                <ul class="rtsUL Products" style="display: none;">
                    <li class="rtsLI rtsFirst"><a class="rtsLink" href="products/overview"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Overview</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/wave-performance-culture-framework-overview"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Wave Performance Culture Framework</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/wave-performance-culture-card-set"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Wave Performance Culture Card Set</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/wave-performance-360"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Wave Performance 360</span></span></span></a></li>
                    <li class="rtsLI parentGroup"><a class="rtsLink Wave Personality Questionnaires and Reports" href="#"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Wave Personality Questionnaires and Reports</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/wave-questionnaires-preparation-guides-and-advice"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Wave Questionnaires Preparation Guides and Advice</span></span></span></a></li>
                    <li class="rtsLI parentGroup"><a class="rtsLink Strengths Behavioral Screening Questionnaires" href="#"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Strengths Behavioral Screening Questionnaires</span></span></span></a></li>
                    <li class="rtsLI parentGroup"><a class="rtsLink Aptitude Assessment" href="#"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Aptitude Assessment</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-preparation-guides-and-advice"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Aptitude Preparation Guides and Advice</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/situational-judgment-tests"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Situational Judgment Tests</span></span></span></a></li>
                    <li class="rtsLI rtsLast"><a class="rtsLink" href="products/career-guidance-and-self-development"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Career Guidance and Self-Development</span></span></span></a></li>
                </ul>
                <ul class="rtsUL Training" style="display: none;">
                    <li class="rtsLI rtsFirst"><a class="rtsLink" href="training/training-overview"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Training Overview</span></span></span></a></li>
                    <li class="rtsLI parentGroup"><a class="rtsLink Psychometric Training" href="#"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Psychometric Training</span></span></span></a></li>
                    <li class="rtsLI parentGroup"><a class="rtsLink Selection Skills Training" href="#"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Selection Skills Training</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="training/international-accreditation"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">International Accreditation</span></span></span></a></li>
                    <li class="rtsLI rtsLast"><a class="rtsLink" href="training/webinars"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Webinars</span></span></span></a></li>
                </ul>
                <ul class="rtsUL Consultancy" style="display: none;">
                    <li class="rtsLI rtsFirst"><a class="rtsLink" href="consultancy/consultancy-overview"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Consultancy Overview</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="consultancy/impact-assessment"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">IMPACT Assessment</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="consultancy/impact-development"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">IMPACT Development</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="consultancy/assessment-and-development-centers"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Assessment and Development Centers</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="consultancy/team-effectiveness"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Team Effectiveness</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="consultancy/analytical-data-services"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Analytical Data Services</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="consultancy/bespoke-assessment-development"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Bespoke Assessment Design</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="consultancy/bespoke-report-development"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Bespoke Report Development</span></span></span></a></li>
                    <li class="rtsLI rtsLast"><a class="rtsLink" href="consultancy/organizational-behavioral-frameworks"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Organizational Behavioral Frameworks</span></span></span></a></li>
                </ul>
                <ul class="rtsUL Clients" style="display: none;">
                    <li class="rtsLI rtsFirst"><a class="rtsLink" href="clients/our-clients"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Our Clients</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="clients/case-studies"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Case Studies</span></span></span></a></li>
                    <li class="rtsLI rtsLast"><a class="rtsLink" href="clients/clients-by-industry"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Clients by Industry</span></span></span></a></li>
                </ul>
                <ul class="rtsUL Applications" style="display: none;">
                    <li class="rtsLI rtsFirst"><a class="rtsLink" href="applications/apprentice-recruitment"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Apprentice Recruitment</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="applications/leadership-assessment-and-development"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Leadership Assessment and Development</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="applications/graduate-recruitment"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Graduate Recruitment</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="applications/talent-pipelines"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Talent Pipelines</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="applications/talent-management"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Talent Management</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="applications/contact-center-recruitment"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Contact Center Recruitment</span></span></span></a></li>
                    <li class="rtsLI rtsLast"><a class="rtsLink" href="applications/volume-recruitment"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Volume Recruitment</span></span></span></a></li>
                </ul>
                <ul class="rtsUL My Account" style="display: none;">
                    <li class="rtsLI rtsFirst"><a class="rtsLink" href="my-account/my-details"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">My Details</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="my-account/t-dashboard"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Dashboard</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="my-account/n-dashboard"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Dashboard</span></span></span></a></li>
                    <li class="rtsLI rtsLast"><a class="rtsLink" href="my-account/i-dashboard"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Dashboard</span></span></span></a></li>
                </ul>
            </div>
            <div class="rtsLevel rtsLevel3">
                <ul class="rtsUL Our People" style="display: none;">
                    <li class="rtsLI rtsFirst"><a class="rtsLink" href="about/our-people/executive-leadership-team"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Executive Leadership Team</span></span></span></a></li>
                    <li class="rtsLI rtsLast"><a class="rtsLink" href="about/our-people/senior-leadership-team"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Senior Leadership Team</span></span></span></a></li>
                </ul>
                <ul class="rtsUL Wave Personality Questionnaires and Reports" style="display: none;">
                    <li class="rtsLI rtsFirst"><a class="rtsLink" href="products/wave-personality-questionnaires-and-reports/overview"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Overview</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/wave-personality-questionnaires-and-reports/wave-professional-styles"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Wave Professional Styles</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/wave-personality-questionnaires-and-reports/wave-focus-styles"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Wave Focus Styles</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/wave-personality-questionnaires-and-reports/interview-guide"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Interview Guide</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/wave-personality-questionnaires-and-reports/development-report"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Development Report</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/wave-personality-questionnaires-and-reports/types-report"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Types Report</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/wave-personality-questionnaires-and-reports/leadership-report"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Leadership Report</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/wave-personality-questionnaires-and-reports/team-roles"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Team Roles</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/wave-personality-questionnaires-and-reports/reflections-report"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Reflections Report</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/wave-personality-questionnaires-and-reports/entrepreneurial-report"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Entrepreneurial Report</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/wave-personality-questionnaires-and-reports/sales-report"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Sales Report</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/wave-personality-questionnaires-and-reports/job-profiler"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Job Profiler</span></span></span></a></li>
                    <li class="rtsLI rtsLast"><a class="rtsLink" href="products/wave-personality-questionnaires-and-reports/professional-styles-handbook"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Professional Styles Handbook</span></span></span></a></li>
                </ul>
                <ul class="rtsUL Strengths Behavioral Screening Questionnaires" style="display: none;">
                    <li class="rtsLI rtsFirst"><a class="rtsLink" href="products/strengths-behavioral-screening-questionnaires/overview"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Overview</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/strengths-behavioral-screening-questionnaires/work-strengths"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Work Strengths</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/strengths-behavioral-screening-questionnaires/operational-strengths"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Operational Strengths</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/strengths-behavioral-screening-questionnaires/commercial-strengths"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Commercial Strengths</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/strengths-behavioral-screening-questionnaires/customer-strengths"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Customer Strengths</span></span></span></a></li>
                    <li class="rtsLI rtsLast"><a class="rtsLink" href="products/strengths-behavioral-screening-questionnaires/administrative-strengths"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Administrative Strengths</span></span></span></a></li>
                </ul>
                <ul class="rtsUL Aptitude Assessment" style="display: none;">
                    <li class="rtsLI rtsFirst"><a class="rtsLink" href="products/aptitude-assessment/overview"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Overview</span></span></span></a></li>
                    <li class="rtsLI parentGroup"><a class="rtsLink Who do you want to test?" href="#"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Who do you want to test?</span></span></span></a></li>
                    <li class="rtsLI parentGroup"><a class="rtsLink What do you want to measure" href="#"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">What do you want to measure</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/swift-analysis-aptitude"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Swift Analysis Aptitude</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/swift-analysis-verbal-and-numerical"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Swift Analysis Verbal and Numerical</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/swift-executive-aptitude"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Swift Executive Aptitude</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/swift-comprehension-aptitude"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Swift Comprehension Aptitude</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/swift-apprentice-aptitude"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Swift Apprentice Aptitude</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/swift-technical-aptitude"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Swift Technical Aptitude</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/abstract-reasoning-aptitude"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Abstract Reasoning Aptitude</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/single-analysis-aptitudes"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Single Analysis Aptitudes</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/single-professional-aptitudes"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Single Professional Aptitudes</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/single-work-aptitudes"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Single Work Aptitudes</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/single-comprehension-aptitudes"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Single Comprehension Aptitudes</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/single-operational-aptitudes"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Single Operational Aptitudes</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/single-commercial-aptitudes"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Single Commercial Aptitudes</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/single-customer-aptitudes"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Single Customer Aptitudes</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/single-administrative-aptitudes"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Single Administrative Aptitudes</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/single-technical-aptitudes"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Single Technical Aptitudes</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/single-practical-aptitudes"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Single Practical Aptitudes</span></span></span></a></li>
                    <li class="rtsLI rtsLast"><a class="rtsLink" href="products/aptitude-assessment/workplace-english"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Workplace English</span></span></span></a></li>
                </ul>
                <ul class="rtsUL Psychometric Training" style="display: none;">
                    <li class="rtsLI rtsFirst"><a class="rtsLink" href="training/psychometric-training/overview"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Overview</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="training/psychometric-training/test-user-occupational-ability-and-personality"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Test User: Occupational Ability and Personality</span></span></span></a></li>
                    <li class="rtsLI rtsLast"><a class="rtsLink" href="training/psychometric-training/performance-360-training"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Performance 360 Training</span></span></span></a></li>
                </ul>
                <ul class="rtsUL Selection Skills Training" style="display: none;">
                    <li class="rtsLI rtsFirst"><a class="rtsLink" href="training/selection-skills-training/overview"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Overview</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="training/selection-skills-training/interviewer-skills-training"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Interviewer Skills Training</span></span></span></a></li>
                    <li class="rtsLI rtsLast"><a class="rtsLink" href="training/selection-skills-training/assessor-training"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Assessor Training</span></span></span></a></li>
                </ul>
            </div>
            <div class="rtsLevel rtsLevel4">
                <ul class="rtsUL Who do you want to test?" style="display: none;">
                    <li class="rtsLI rtsFirst"><a class="rtsLink" href="products/aptitude-assessment/who-do-you-want-to-test/overview"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Overview</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/who-do-you-want-to-test/directors-managers-and-professionals"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Directors Managers &amp; Professionals</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/who-do-you-want-to-test/graduates-and-management-trainees"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Graduates &amp; Management Trainees</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/who-do-you-want-to-test/operational-roles"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Operational Roles</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/who-do-you-want-to-test/commercial-roles"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Commercial Roles</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/who-do-you-want-to-test/customer-roles"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Customer Roles</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/who-do-you-want-to-test/administrative-roles"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Administrative Roles</span></span></span></a></li>
                    <li class="rtsLI"><a class="rtsLink" href="products/aptitude-assessment/who-do-you-want-to-test/technical-roles"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Technical Roles</span></span></span></a></li>
                    <li class="rtsLI rtsLast"><a class="rtsLink" href="products/aptitude-assessment/who-do-you-want-to-test/apprenticeship-roles"><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Apprenticeship Roles</span></span></span></a></li>
                </ul>

            </div>
            <input id="scMenuBar_menuTab_ClientState" name="scMenuBar_menuTab_ClientState" type="hidden" autocomplete="off" value="{&quot;selectedIndexes&quot;:[&quot;0&quot;],&quot;logEntries&quot;:[],&quot;scrollState&quot;:{}}">
        </div>


<script language="javascript" type="text/javascript" defer="defer">
    $('.menuBarStrip').click(function (event) {
        event.stopPropagation();
    });

    $(".menuBarStrip").click(
    function () {
        if (!$(this).next().hasClass("parentGroup")) {
            $("body").bind("click");
        }
        else { window.onload(); }
    });

    $("body").on(
    "click", function () {
        var tabStrip = $find("scMenuBar_menuTab");
        var tab = tabStrip.findTabByValue("Home");
        tab.select();
        $(".rtsLevel2 ul").attr("style", "display:none;");
        $(".rtsLevel3 ul").attr("style", "display:none;");
        $(".rtsLevel4 ul").attr("style", "display:none;");
    });

    if (window.attachEvent) {
        window.attachEvent("onload", selectFirstTab);
    }

    $(window).load(function () {
        selectFirstTab();
    });

    function selectFirstTab() {
        var tabStrip = $find("scMenuBar_menuTab");
        if (tabStrip != null) {
            var tab = tabStrip.findTabByValue("Home");
            tab.select();
        }
    }

    $(document).ready(function () {
        $(".rtsLevel2 ul").css("display", "none");
        $(".rtsLevel3 ul").css("display", "none");
        $(".rtsLevel4 ul").css("display", "none");
    });
</script>










    </div>
</div>
<div style="width: 16%;" class="sf_colsOut scMenuSearch">
    <div id="TC8B4B951058_Col01" class="sf_colsIn sf_2cols_2in_33"><div id="TC8B4B951046">
<fieldset id="TC8B4B951046_ctl00_ctl00_main" class="sfsearchBox">
<input name="TC8B4B951046$ctl00$ctl00$searchTextBox" type="text" id="TC8B4B951046_ctl00_ctl00_searchTextBox" class="sfsearchTxt">
<input type="submit" name="TC8B4B951046$ctl00$ctl00$searchButton" value="Search" onclick="return false;" id="TC8B4B951046_ctl00_ctl00_searchButton" class="sfsearchSubmit">

    </div>
</div>

$(document).ready(function () {
  $("#scMobileMenu").click(function () {

      $("body").unbind();
      if ($(".scNav").css("display") == "none") {
          $(".scNav").css("width", "100%");
          $("html, body").animate({
              scrollTop: 0
          }, "fast");
          $(".scNav").show("fast");
          $('.Mask').fadeIn("fast");
      } else {
          $(".scNav").hide("fast");
          $('.Mask').fadeOut("fast");
      }
  });

  var visibleCategory = null;
  var YpositionLevel2 = null;
  var YpositionLevel3 = null;

  $(".rtsLevel1 .rtsLI, .rtsLevel1 .parentGroup").on("touchstart", function (event) {
      var position1 = $(this).position();
      var Yposition1 = position1.top;
      YpositionLevel2 = position1.top;
      $(".rtsLevel2").css("top", Yposition1 + 163);
  });

  $(".rtsLevel2 .rtsLI, .rtsLevel2 .parentGroup").on("touchstart", function (event) {
      var position2 = $(this).position();
      var Yposition2 = position2.top;
      YpositionLevel3 = position2.top;
      $(".rtsLevel3").css("top", Yposition2 + YpositionLevel2 + 261);
  });

  $(".rtsLevel3 .rtsLI, .rtsLevel3 .parentGroup").on("touchstart", function (event) {
      var position3 = $(this).position();
      var Yposition3 = position3.top;
      $(".rtsLevel4").css("top", Yposition3 + YpositionLevel2 + YpositionLevel3 + 362);
  });


  $("div.rtsLevel1 .rtsLI, div.rtsLevel1 .parentGroup").on("touchstart", function (event) {
      if ($("div.rtsLevel2 > ul").is(':visible')) {
          $("div.rtsLevel2 > ul").hide("fast");
      }
  });

  $("div.rtsLevel2 .rtsLI.parentGroup").on("touchstart", function (event) {
      if ($("div.rtsLevel3 > ul").is(':visible')) {
          $("div.rtsLevel3 > ul").hide("fast");
      }
  });

  $("div.rtsLevel3 .rtsLI.parentGroup").on("touchstart", function (event) {
      if ($("div.rtsLevel4 > ul").is(':visible')) {
          $("div.rtsLevel4 > ul").hide("fast");
      }
  });
});

0 个答案:

没有答案