Annulleret

Fixed background image in IE with javascript

To fix a background image in the browser everybody uses background-attachment: fixed. However in IE this CSS property only works for the body tag while it works also for divs in Firefox and other browsers. So there must be a Javascript solution for IE.

Please look at [url removed, login to view] in IE. The body tag holds the yellow lines so the grass was placed into a div as a fixed background image. For this page I used a script that I found at [url removed, login to view] but as you see the background image jumps when you scroll up and down. Using IE expressions in the stylesheet results in the same behaviour.

I found another solution: Dean Edwards' IE7 javascript library ([url removed, login to view]). Using this script the background image doesn't jump but it sometimes completely disappears when the browser is resized. On the other hand the layout is messed up a little as soon as I link the library to the head section. Of course I could fix the CSS file but I don't want to fix a stylesheet that has worked before I added some Javascript classes.

So what I need to be done by a Javascript expert: Take either the first one of these open source scripts ([url removed, login to view]) and fix it or write a new function. The script must work on IE 5.0, IE 5.5, IE 6.0 (Windows) and IE 5.2 (Mac).

One word before I close this project:
the communication by all of those few bidders was very bad. Not one of them posted a PM, and one left a question that I asked him without any answer.

Færdigheder: Javascript, Web Design

Se mere: fixed background image javascript, background image fixed, you messed up, yellow software, windows fix it website, using expressions, open source software css, is it fixed, image in html 5, image design software, image by design, div fix website, design div in website, background image for website design, background design for html, a background design, 9 to 5 mac, fixed background javascript, fixed background image javascript solution, what is javascript, what is a javascript, javascript what is, javascript image library, yellow page script, write some software as soon

Om arbejdsgiveren:
( 17 bedømmelser ) Baden, Austria

Projekt-ID: #61121