treehouse : what would you like to learn today?
Web Design Web Development iOS Development

mattgoucher

  • fade in fade out issue

    It will make your code 100 times easier to debug if everything is spaced correctly. Also, your script will run alot faster if you define your jQuery objects and then use then, instead of defining them over and over again. - Matt jQuery(document).…
    Comment by mattgoucher December 2011 permalink
  • fade in fade out issue

    If you want to continue to work with your existing code, there are a few things to note. // Your binding the mouseenter to a specific element link.bind('mouseenter', function(){ var tag = jQuery('#tt'); tag.html(jQ…
    Comment by mattgoucher November 2011 permalink
  • Precent this div from moving on browser resize?

    Instead of wrapping the video "pro-player-container" inside of the "filmstrip" div, why don't you just apply the styles to directly to the player? When the browser resizes, the player gets thrown into negative space because…
    Comment by mattgoucher November 2011 permalink
  • fade in fade out issue

    I think your going about this in the wrong direction a bit. In your most recent example, it looks like you have one container with that the text is supposed to populate? To me, it would make the most sense to grab the text from each of the images, …
    Comment by mattgoucher November 2011 permalink
  • Desperate for some simple jQuery help :(

    I would personally nest the drop down's inside the parent. If you did it that way, you can check to see if the user is hover on the nav element at all. Once their off the nav element, you obviously would fade accordingly. -Matt. Ho…
    Comment by mattgoucher November 2011 permalink
  • how to add speed to .css() in jquery

    The concept can be used easily for any type of hover. As for the if statement, it would help if you read it out loud. if Not background, return. Which means, if the background variable does not exist (or is empty) the script will return false. …
    Comment by mattgoucher November 2011 permalink
  • Desperate for some simple jQuery help :(

    If you wanted to make your navigation menu more dynamic, you could do something like this. In my example, I'm grabbing the subnav ID by connecting it with the parent element's ID. If you do something like this, your code will be alot leane…
    Comment by mattgoucher November 2011 permalink
  • how to add speed to .css() in jquery

    This can be accomplished using the hover method. Nothing crazy going on here, when the user hovers over any div with a class of hover. I'm using a data attribute on each div to 'store' the next background. If there is no background, n…
    Comment by mattgoucher November 2011 permalink
  • How do I remove the html from /contact.html?

    RewriteRule ^([^/]+)\.php/(.*)$ /$1/$2 [NE,R=301,L,NC]
    Comment by mattgoucher November 2011 permalink
  • 960gs based Wordpress theme floats left in Internet Explorer 7-8

    Have you tried giving your #container a width and specifying a margin? #container { margin: 0 auto; min-height: 500px; padding: 0; text-align: left; width: 960px; }
    Comment by mattgoucher November 2011 permalink