Write a simple width/height jQuery script

In Progress

I need a very simple jQuery script that does the following:

1) Get width and height of window using something like: $ (document). ready(function () { showWidth(".pre_banner", $(window).width()); });

2) Looks for these break points. and store the corresponding width and height as variables.

If window is larger than 1400px wide, width = 600px, height = 400px;

If window is 1000px to 1399px wide, width = 500px, height = 300px;

etc. I will define all the sizes, you just need to make sure I can add more easily

3) Display this image where the 1st variable (width) and 2nd variable (height) are the variables from #2

[url removed, login to view],400

As the window size changes so should the width/height variables of the image, reloading the src with the proper ending when needed.

I know javascript may be slightly faster but please use jQuery.

Skills: AJAX, Javascript, jQuery / Prototype

See more: script height, where can i get javascript, write simple, write a simple, jquery script, script src, javascript write display, jquery image add, jquery ajax add, javascript document ready, jquery add image, document ready javascript, 500px, jquery store, sure can write, write function outputs right side triangle height width, jquery window ajax, jquery image resize, jquery display, wide jquery, jpg resize, height, simple jquery script, image 600px 400px, jquery javascript ajax

About the Employer:
( 32 reviews ) Baltimore, United States

Project ID: #4681865

Awarded to:

dtbang

Ready to work now...

$9 USD / hour
(9 Reviews)
3.2

5 freelancers are bidding on average $9/hour for this job

truongnx15fl

Hi, I can help you to write the jquery code to adapt image dimension to to the Window size, thanks

$9 USD / hour
(10 Reviews)
3.7
ibbuzz

I can help you on this task.

$12 USD / hour
(10 Reviews)
3.6
MakeYouBelieve

Hi, I can do it for you. Regards.

$8 USD / hour
(12 Reviews)
3.4
Devtechsol

hi this is devtechsol and i am ready to start the work

$9 USD / hour
(1 Review)
0.0