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 9033101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:08:40+00:00 2026-06-16T08:08:40+00:00

I asked this question earlier & was provided with some code, however it refuses

  • 0

I asked this question earlier & was provided with some code, however it refuses to work when I put it inside of div’s as the site is structured so i’m retrying here.

here is the format of the page.

http://jsfiddle.net/4FMGG/2/

<div style="width:960px;">
    <div style="float:left; width:960px;">
        <a href='#'>Electric</a>
        <a href='#'>Mechanic</a>
    </div>                    
    <div style="width:320px; float:left;">
        <div id='elec'>Box 1a</div>
        <div id='meca'>Box 2a</div> 
    </div>
    <div style="width:320px; float:left;">
       <img src="dial.png" style="margin-top:150px;">
    </div>
    <div style="width:320px; float:right;">
        <div id='meca'>Box 2b</div> 
        <div id='elec'>Box 1b</div>
    </div>
</div>​

I’m basically wanting to replicate the services section on http://mitchell-me.com/
I’ll change it all etc later but the effect is killing me. I was given two suggestions last time, 1 was jquery which worked fine outside of div’s but since it has to be in the div’s i couldnt use it. The second was that the site was using tweenlite but that method seems overkill for just this particular feature.

So basically im struggling like mad, really need to wrap this section of the site up before xmas so hoping for some xmas luck here on stack overflow xD

Apologies for the code format, i can’t get it to sit properly using this editor.

  • 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-16T08:08:42+00:00Added an answer on June 16, 2026 at 8:08 am

    whipped this together, let me know if it suits your needs.
    here is a fiddle: http://jsfiddle.net/4FMGG/6/

    css

        body{
        text-align:center;
        background:#eee;
    }
    .container {
        width:400px; margin:100px auto 0;
        text-align:center;
        position:relative;
    }
    #dial {
        width:210px;position:relative;margin:0 auto;
    }
    #switch {
        cursor: pointer;
    }
    #gear {
        position:absolute;
        top:55px;left:55px;
        opacity:0;
    }
    #bulb {
        position:absolute;
        top:70px;left:83px;
    }
    #mech1, #mech2, #elec1, #elec2 {
        position:absolute;
        width:100px;
        height:100px;
        background:#fff;
    }
    #mech1 {
        top:0;right:0;
        display:none;
    }
    #elec1 {
        top:0;left:0;
    }
    #mech2 {
        bottom:0;left:0;
        display:none;
    }
    #elec2 {
        bottom:0;right:0;
    }
    

    html

    <div class="container">
        <div id="dial">
            <img src="http://mitchell-me.com/img/dial.png">
            <div id="bulb">
                <img src="http://mitchell-me.com/img/bulb.png">
            </div>
            <div id="gear">
                <img src="http://mitchell-me.com/img/gear.png">
            </div>
        </div>
        <div id="mech1"></div>
        <div id="mech2"></div>
        <div id="elec1"></div>
        <div id="elec2"></div>
        <div id="switch">
            <a id="one">One</a>
            <a id="two">Two</a>
        </div>
    </div>
    

    javascript

    must include the following libraries:

    //ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js

    //jqueryrotate.googlecode.com/files/jQueryRotate.2.2.js

    $("#one").click(function(){
        $('#dial').rotate({
            angle: 100, 
            animateTo:0,
            duration:1000
        });
        $('#bulb').animate({'opacity':1}, 1000);
        $('#gear').animate({'opacity':0}, 1000);
        $('#mech1, #mech2').fadeOut(1000);
        $('#elec1, #elec2').fadeIn(1000);
    });  
    
    
    $("#two").click(function(){
        $('#dial').rotate({
            angle: 0, 
            animateTo:100,
            duration:1000
        });
        $('#bulb').animate({'opacity':0}, 1000);
        $('#gear').animate({'opacity':1}, 1000);
        $('#mech1, #mech2').fadeIn(1000);
        $('#elec1, #elec2').fadeOut(1000);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I asked this question earlier, and after thinking about the topic some more, I
(I asked this question earlier, but had forgotten to mention some constraints. This is
Earlier today I asked this question . After spending some time investigating this issue,
So earlier I asked this question: JQuery Login Redirect. Code Included The php file
Earlier I asked this question ( and after some googling I read Using your
I asked this question earlier and I got very quick and helpful responses: Linq
I asked this question earlier: How to get delta between two text items But
I asked this question earlier. I am intrigued by std::set but I have another
I asked this question earlier and it was closed because it was a duplicate,
I asked this question earlier and am now trying to explore the idea of

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.