1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need custom script fixed

Discussion in 'Hire a Freelancer' started by acapitalTee, Feb 15, 2014.

  1. acapitalTee

    acapitalTee Power Member

    Joined:
    Dec 20, 2012
    Messages:
    574
    Likes Received:
    228
    I had a script made which had an image and when main image was clicked, a gif underneath would show and then show a message. It stopped working after I updated my theme. I tried reverting back but it did not fix the problem. Here is the script

    Code:
    <script type="text/javascript">$(document).ready(function() {
    	$('.gif').hide();
    	$('.message').hide();
    	$(".frame").click(function() {
    	$('.img').hide();
    	$('.gif').show();
      	$
    	//$(".glass").fadeIn(0);
    	});
      
    });
    </script>

    There's an image in a frame covering a gif image. when the image is clicked the gif image is shown for a few seconds and then the message pops up. It doesn't do anything when clicked. Anybody can fix this post message here with price or pm me.
     
    Last edited: Feb 15, 2014
  2. iBrazilian

    iBrazilian Regular Member

    Joined:
    Oct 10, 2013
    Messages:
    440
    Likes Received:
    231
    That would be because of your jQuery version isn't compatible with the following code, you need to either find another code or let us know which version of jQuery you are running after you updated your theme.

    Also you could achieve the same thing with the "toggle" with your latest jQuery version in your theme.
     
    Last edited: Feb 15, 2014
  3. acapitalTee

    acapitalTee Power Member

    Joined:
    Dec 20, 2012
    Messages:
    574
    Likes Received:
    228
    I reverted the theme back to the original one and it still doesn't work though
     
  4. iBrazilian

    iBrazilian Regular Member

    Joined:
    Oct 10, 2013
    Messages:
    440
    Likes Received:
    231
    Send me the link of your website on PM, or if you have skype it'll be easier.
     
  5. iBrazilian

    iBrazilian Regular Member

    Joined:
    Oct 10, 2013
    Messages:
    440
    Likes Received:
    231
    Actually here, take a look at this.. Just noticed.

    Code:
    $('.gif').hide();
    $('.message').hide();
        $(".frame").click(function()
        {
            $('.img').hide();
            $('.gif').show();
            [COLOR=#008000]$[/COLOR]
            //$(".glass").fadeIn(0);
        });
      
    });
    If you see the green money sign, either you accidently removed something from there or that sign ( $ ) shouldn't be there at all, but my first guess would be that you accidently removed something from there.

    SOLUTION:
    Removed the only $ there where I showed; the green; then test if the script works again.