123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /**
- * 显示
- */
- function countMcsj(e,count,text) {
- document.getElementById('bubble_tooltip').style.display = 'none';
- var str = text + "已有牧场" + count + "个";
- var obj = document.getElementById('bubble_tooltip');
- var obj2 = document.getElementById('bubble_tooltip_content');
- obj2.innerHTML = str;
- obj.style.display = "block";
- var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
- var x = e.clientX - 88;
- var y = e.clientY - obj.offsetHeight -1 + st;
- //var x = e.screenX - 100;
- //var y = e.screenY - 110;
- if (x < 0) {
- x = 0;
- }
- if (y < 0) {
- y = 0;
- }
- obj.style.left = x + "px";
- obj.style.top = y + "px";
- }
- /**
- * 无焦点
- */
- function emptyMcsj() {
- document.getElementById('bubble_tooltip').style.display = 'none';
- }
- /**
- * 跳转(目前只开放到省级跳转功能)
- */
- function loadXjCount(qhbm,count) {
- if (count < 1) {
- return false;
- }
- if (qhbm.substring(2) == "0000") {
- loadMcMap("",qhbm);
- } else {
- return false;
- }
- }
|