var scrolled;
function load_messes()
{
$.ajax({
type: "POST",
url: "chatread.php",
data: "req=ok",
success: function(test)
{
var $mcaht = $("#mcaht"),
scroll = $mcaht.scrollTop(),
messageCount = $mcaht.children().length;
$mcaht.empty().append(test);
scroll && $mcaht.scrollTop(scroll);
if(!scrolled || messageCount < $mcaht.children().length) {
$mcaht.scrollTop(90000);
!scrolled && (scrolled = true);
}
}
});
}
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') && location.hostname === this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
$('a[href*=#]:not([href=#])').click(function(e) {
if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') && location.hostname === this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
e.preventDefault();
}
}
});
<ul class="third_menu"><!--Wtoroe dopolnitelnoe menu-->
<li class="openThirdMenu">
li.openThirdMenu:hover .third_menu
$(this).attr("value")
? А почему у вас координаты одинаковые?$('.wrap').on('click', function(e){
var button = $(this).find('.button');
if (e.target !== button[0]) {
button.click();
}
});
var map;
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
center: {lat: 59.211499, lng: 39.839916},
zoom: 18,
panControl: false,
zoomControl: false,
mapTypeControl: false,
scaleControl: false,
streetViewControl: false,
overviewMapControl: false
});
var image = 'img/arrow1.png';
var beachMarker = new google.maps.Marker({
position: {lat: 59.211499, lng: 39.839916},
map: map,
icon: image
});
var styles = [
{
featureType: "labels",
elementType: "icon",
stylers: [
{ visibility: "off" }
]
}
];
map.setOptions({styles: styles}); // Добавить
}
var styles = [
{
featureType: "all",
stylers: [
{ saturation: -80 }
]
},
{
featureType: "road.arterial",
elementType: "geometry",
stylers: [
{ hue: "#00ffee" },
{ saturation: 50 }
]
},
{
featureType: "poi.business",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
}
];
VK.Widgets.Group("vk_groups", {mode: 0, width: "600"
.b-popup-content {
position: absolute;
left: 0;
right: 0;
}