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

Wednesday, November 7, 2012

Codecademy: Sample Solution to Rotate Function for "Changing Dimensions" under the jQuery track



function rotate($that) {
    //swap the height and width attributes
    //of $that using .height and .width;
var $originalheight = $that.height();
var $originalwidth = $that.width();
$that.height($originalwidth);
$that.width($originalheight);
}

//note there is still additional code for script.js past this line in the original exercise

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts