1
0
Fork 0
forked from 0x2620/oxjs

fix bugs in map and video player

This commit is contained in:
rlx 2011-12-23 05:05:41 +00:00
commit 5803633835
2 changed files with 15 additions and 9 deletions

View file

@ -860,11 +860,20 @@ Ox.Map = function(options, self) {
$placeControl.appendTo(self.$map);
});
setTimeout(function() {
var element = self.$map.$element[0].children[0].children[2].children[0];
element.style.backgroundImage = '-webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0px, rgba(255, 255, 255, 0.1) 50px)';
element.style.color = 'rgb(192, 192, 192)';
element.style.textShadow = '1px 1px 0 rgb(64, 64, 64)';
element.children[3].style.color = 'rgb(192, 192, 192)';
var $element;
try {
$element = $(self.$map.find('a[href$="terms_maps.html"]').parent()).css({
color: 'rgb(192, 192, 192)',
textShadow: '1px 1px 0 rgb(64, 64, 64)'
});
['moz', 'o', 'webkit'].forEach(function(browser) {
$element.css({
backgroundImage: '-' + browser
+ '-linear-gradient(left, rgba(255, 255, 255, 0) 0px, rgba(255, 255, 255, 0.1) 50px)',
});
});
$element.children().css({color: 'rgb(192, 192, 192)'});
} catch (e) {}
}, 0)
}
}