Learn to Like Your Job
As vice president of a Los Angeles film-production company in the 1980s, Ronald Kaufman had nearly everything that he’d ever wanted in a job — great pay, friendly co-workers and interesting work coordinating product...
As vice president of a Los Angeles film-production company in the 1980s, Ronald Kaufman had nearly everything that he’d ever wanted in a job — great pay, friendly co-workers and interesting work coordinating product...
Q: I am a senior executive and haven’t looked for a job in more than 10 years. How can I make my résumé more current by today’s standards? –Boston, Mass. Getty Images A: While the résumé...
You aced the interview, your résumé sings, but in the end, you didn’t get the job. Chances are, you’ll never know why. It is a painful conundrum of the job search process: Rejected candidates...
<!DOCTYPE html> <html> <head> <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js”> </script> <script> $(document).ready(function(){ $(“#start”).click(function(){ $(“div”).animate({height:300},3000); $(“div”).animate({width:300},3000); }); $(“#complete”).click(function(){ $(“div”).finish(); }); }); </script> </head> <body> <p> <button id=”start”>Start Animation</button> <button id=”complete”>Finish Current Animation</button> </p> <div style=”background:#98bf21;height:100px;width:100px”> </div> </body> </html>
<!DOCTYPE html> <html> <head> <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js”> </script> <script> $(document).ready(function(){ $(“#start”).click(function(){ $(“div”).animate({height:300},1500); $(“div”).animate({width:300},1500); $(“div”).animate({height:100},1500); $(“div”).animate({width:100},1500); }); $(“#stop”).click(function(){ $(“div”).clearQueue(); }); }); </script> </head> <body> <button id=”start”>Start Animation</button> <button id=”stop”>Stop Animation</button> <br><br> <div style=”background:red;height:100px;width:100px;”> </div> </body> </html>
<!DOCTYPE html> <html> <head> <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js”> </script> <script> $(document).ready(function(){ $(“button”).click(function(){ $(“#div1”).delay(“slow”).fadeIn(); $(“#div2”).delay(“fast”).fadeIn(); $(“#div3”).delay(800).fadeIn(); $(“#div4”).delay(2000).fadeIn(); $(“#div5″).delay(4000).fadeIn(); }); }); </script> </head> <body> <p>This example sets different speed values for the delay() method.</p> <button>Click to fade in...
What if you wish to use other frameworks on your pages, while still using jQuery? jQuery and Other JavaScript Frameworks As you already know; jQuery uses the $ sign as a shortcut for jQuery....
With jQuery, it is easy to work with the dimensions of elements and browser window. jQuery Dimension Methods jQuery has several important methods for working with dimensions: width() height() innerWidth() innerHeight() outerWidth() outerHeight() jQuery...
The jQuery slide methods slides elements up and down. jQuery Sliding Methods With jQuery you can create a sliding effect on elements. jQuery has the following slide methods: slideDown() slideUp() slideToggle() jQuery slideDown() Method...
A callback function is executed after the current effect is 100% finished. jQuery Callback Functions JavaScript statements are executed line by line. However, with effects, the next line of code can be run even...
<!DOCTYPE html> <html> <head> <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js”> </script> <script> $(document).ready(function(){ $(“.btn1”).click(function(){ $(“p”).fadeOut() }); $(“.btn2”).click(function(){ $(“p”).fadeIn(); }); }); </script> </head> <body> <p>This is a paragraph.</p> <button>Fade out</button> <button>Fade in</button> </body> </html> Definition and Usage The fadeOut()...
jQuery Effect Methods The following table lists all the jQuery methods for creating animation effects. Method Description animate() Runs a custom animation on the selected elements clearQueue() Removes all remaining queued functions from the...
jQuery selectors are one of the most important parts of the jQuery library. jQuery Selectors jQuery selectors allow you to select and manipulate HTML element(s). jQuery selectors are used to “find” (or select) HTML...
In general the CSS Sticky Footer is the best way to go, as it works perfectly smoothly and doesn’t require JavaScript. If the markup required simply isn’t possible, this jQuery JavaScript might be an option. HTML...
The below code will give you the X, Y coordinates of a mouse click within a given box. Removing all the stuff about the offset, you can easily get the X, Y coordinates of...
Following are few very useful jQuery Tips and Tricks for all jQuery developers. I am sharing these as I think they will be very useful to you. Disclaimer: I have not written all of the...
Somewhere between a fifth to a third of the million students graduating out of India’s engineering colleges run the risk of being unemployed. Others will take jobs well below their technical qualifications in a market where...
Many people dream of shedding the corporate life and starting their own companies. They imagine creating the next Google or Apple . From Steve Jobs to Bill Gates to Pierre Omidyar, many of the world’s richest people on...
Consider the Pros and Cons of Working for Yourself The first big question you’ll need to answer is whether the benefits of being your own boss truly outweigh the disadvantages. Pros: The pros are pretty...
Many of my friends dream about starting their own business but they never do it. Here are 10 tips that might help you finally find your idea and get started. 1. Do nothing, go...
jQuery.data() is used to set/return arbitrary data to/from an element. Syntax: jQuery.data(element, key, value) “element” is the DOM element to which the data is associated. “key” is an arbitrary name of the piece of...
The animate function is used to apply the custom animation effect to elements. -Syntax: $(selector).animate({params}, [duration], [easing], [callback]) “param” defines the CSS properties on which you want to apply the animation. “duration” specify how...
Google Will Soon Launch Google Web Designer, A Free HTML5 Development Tool For Creating Web Apps, Sites And Ads Google will soon launch Google Web Designer, an HTML5 development tool for “creative professionals.” The service,...
How to store the uploaded file to the final location? move_uploaded_file ( string filename, string destination) This function checks to ensure that the file designated by filename is a valid upload file (meaning that...
How can I set a cron and how can I execute it in Unix, Linux, and windows? Cron is very simply a Linux module that allows you to run commands at predetermined times or...
How can increase the performance of MySQL select query? We can use LIMIT to stop MySql for further search in table after we have received our required no. of records, also we can use...
What is maximum size of a database in mysql? If the operating system or filesystem places a limit on the number of files in a directory, MySQL is bound by that constraint. The efficiency...
What is the use of friend function? Friend functions Sometimes a function is best shared among a number of different classes. Such functions can be declared either as member functions of one class or...
How to reset/destroy a cookie ? Reset a cookie by specifying expire time in the past: Example: setcookie(‘Test’,$i,time()-3600); // already expired time Reset a cookie by specifying its name only Example: setcookie(‘Test’); What types...