Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8388033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:22:43+00:00 2026-06-09T18:22:43+00:00

I want to duplicate the on click ‘Contact’ menu element drop down effect on

  • 0

I want to duplicate the on click ‘Contact’ menu element drop down effect on ‘Bio’ menu element

http://www.dawaf.co.uk/jj/

I have duplicated the html code in header.php:

<!-- contact -->
<section id="contact">
    <!-- container -->
    <div class="container">
                <p>Creative Consultant / Stylist<br /><br /><a href="mailto:info@janinejauvel.co.uk">info@janinejauvel.co.uk</a><br />
                +44(0) 7983 572330</p>
        
    </div>
    <!-- .container -->
    
</section>
<!-- .contact -->

<!-- bio -->
<section id="bio">
    <!-- container -->
    <div class="container">
                <p>Testing this shows up</p>
        
    </div>
    <!-- .container -->
    
</section>
<!-- .bio -->

and I have duplicated the CSS.

I am not sure what Javascript I need to edit to get the same effect on script.js:

    /* Show the portfolio
     ------------------------------------------------- */
    
    $('#portfolio-catcher').click(function() {
        
        $('h1 a').trigger('click');
        
        return false;
        
    });
    
    $('a[href="#portfolio"]').click( function () {

        // hide contact 
        $('#contact').stop().slideUp({
            duration: 250, 
            easing: 'easeInOutCubic'
        });
        
        // remove the iframe content (for vimeo videos)
        
        $('iframe').remove();
        
        hattie.showPortfolio();

        return false;


    });
    
    /* Contact section click
         ------------------------------------------------- */
        $('a[href="#contact"]').click(function() {

            // hide slideshow whatever
            $('#slideshow').stop().slideUp({
                duration: 300, 
                easing: 'easeInOutCubic'
            });     

            // show contact
            $('#contact').stop().slideDown({
                duration: 300, 
                easing: 'easeInOutCubic'
            });

            hattie.showPortfolio();

            return false;

    });
    
    /* Launching a project
     ------------------------------------------------- */

    $('hgroup').click(function() {

        // scroll to top
        $.scrollTo(0, 250);

        $hgroup     = $(this);
        // hide contact 

        if ($('#contact').is(':visible')) {

            $('#contact').stop().slideUp({
                duration: 250, 
                easing: 'easeInOutCubic'
            });
        }

        // show the loading gif in the container
        $('#slideshow-container').html('<div class="loading"><img src="/assets/img/loading.gif" alt="loading"/></div>');

        $('section#work').stop().animate({
            'margin-top' : '+=' +($(window).height() - 55) + 'px'
        }, 700, 'easeInOutCubic', function () {

            // load the project into the slideshow container div
            $('#slideshow-container').load('' + $hgroup.attr('data-project'), function() {
                // bind slideshow
                    slideshow.render();
                    $('section#work').css('margin-top', '0px');
            });

        });

        return false;

    });
    
}, 

this.folioLinkShow  = function() {
    
    if ($('.slide').length > 1) {
        
        
        $('#portfolio-catcher').hover(function() {

            $('nav#show-projects div').slideDown(200);


        }, function () {

            $('nav#show-projects div').slideUp(200);

        });
        
        
    } else {
        
        $('nav#show-projects').unbind();
        
    }
}, 

this.loadImages     = function() {
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:22:45+00:00Added an answer on June 9, 2026 at 6:22 pm

    Make your “Bio” href like so: #bio

    Then, add this to your Javascript (It will do the exact same thing as the contact click will do:

    /* Contact section click ------------------------------------------------- */
    $('a[href="#contact"]').click(function() {
        // hide bio
        if ($('#bio').is(':visible')) {
            $('#bio').stop().slideUp({
                duration: 250, 
                easing: 'easeInOutCubic'
            });
        }
        // hide slideshow whatever
    
            $('#slideshow').stop().slideUp({
                duration: 300, 
                easing: 'easeInOutCubic'
            });     
    
            // show contact
            $('#contact').stop().slideDown({
                duration: 300, 
                easing: 'easeInOutCubic'
            });
    
            hattie.showPortfolio();
    
            return false;
    
    });
    
    /* Bio section click ------------------------------------------------- */
    $('a[href="#bio"]').click(function() {
        // hide contact 
        if ($('#contact').is(':visible')) {
            $('#contact').stop().slideUp({
                duration: 250, 
                easing: 'easeInOutCubic'
            });
        }
    
        // hide slideshow whatever
        $('#slideshow').stop().slideUp({
            duration: 300, 
            easing: 'easeInOutCubic'
        });     
    
        // show contact
        $('#bio').stop().slideDown({
            duration: 300, 
            easing: 'easeInOutCubic'
        });
    
        hattie.showPortfolio();
    
        return false;
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Jquery: drop down menu wont disappear after clicking outside of menu I
Possible Duplicate: javascript hide/show element How to hide or show div on click in
Possible Duplicate: how to start a new activity when click on button I want
Possible Duplicate: How to detect a click outside an element? I have an element
Possible Duplicate: How to detect a click outside an element? <ul id=rightNav> <li id=SettingOpt>
I want to duplicate a row, not the keys of course, without explicity using
I have a table and I want to duplicate specific rows in the table.
I have a form (for example, abc.frm ). I want the duplicate form (for
I want to remove duplicate lines from a file, without sorting the file. Example
I want to remove duplicate rows return from a SELECT Query in Postgres I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.