Quotes help make search much faster. Example: "Practice Makes Perfect"

Monday, November 26, 2012

Codecademy: "Get Yourself In..."


//sample solution to script.js


$(document).ready(function(){
$('div').mouseenter(function(){
$('div').fadeTo('fast',1);
});
});

2 comments:

  1. Between the }); that ends your mouseenter() and the }); that ends your $(document).ready(), add a mouseleave() that uses fadeTo to return your div's opacity to 0.5. Like the previous fadeTo, it should have 'fast' as its first input.

    Click Save & Submit Code, then slowly mouse over your 'div' to see the effect! plese give a answer in jquery

    ReplyDelete
  2. Between the }); that ends your mouseenter() and the }); that ends your $(document).ready(), add a mouseleave() that uses fadeTo to return your div's opacity to 0.5. Like the previous fadeTo, it should have 'fast' as its first input.

    Click Save & Submit Code, then slowly mouse over your 'div' to see the effect! plese give a answer in jquery

    ReplyDelete


This is an example of scrolling text using Javascript.

Popular Posts