Online Promoters™ :: Web Development made simple

Tag Archives: prototype

Setting & Getting background position with Prototype, Javascript

Getting the background position of a css element with prototype (javascript framework) is a bit tricky. Usually in all the good browser we refer to the background position of a css element by 'background-position'. As you probably know there usually is one shitty browser which always needs some "special attention" and several lines of code added just to work. Our today's example follows the pattern....

by Webmaster