/ Published in: jQuery
Expand |
Embed | Plain Text
$(document).ready(function(){ var div_pics_top_css = { 'position':'absolute', 'top':'13px', 'left':'343px', 'height':'80px', 'width':'450px', 'background':'url(/images/all.jpg) repeat-x 0px 0px ' } $('div#pics_top').css(div_pics_top_css); setInterval ("move_gall()", 33); }) function move_gall(){ var b = $('div#pics_top').css('background').replace(/px/gi,'').split(' '); var l_pos = String(b[b.length-2]-1)+'px' $('div.pics_top').css('background-position',l_pos) }
Comments
Subscribe to comments
You need to login to post a comment.

in IE we have problem with getting "backgroud" css propertie of object.
in opera problems
total variant:
$(document).ready(function(){ if ($.browser.opera){
})
function move_gall(){
}