-1
大家好我試圖當div.it懸停正在顯示才能得到HTML列表[目標對象]。如何,我可以顯示爲list.i嘗試下面的代碼如何在懸停div時顯示html列表?
var type= "x,y,z,a";
var active = type.split(",");
if (active .length == 0)
feature.attributes.ShowExceptionType = "display:none";
else
var item, items = [];
for (var i = 0; i < active .length; i++) {
item = {};
item.active = active [i];
items.push(item);
}
var main = $("<ul>");
var str = "";
for (var i = 0; i < items.length; i++) {
str += "<li>" + items[i].active + "</li>";
}
main.html(str);
$(document.body).append(main);
feature.attributes.HoverContent = $(document.body).append(main);
"description": "{{localize:iplMap:Mac}} : {ESN}<br/><div style='{ShowExceptionCount}' class='cart' id='append'>{{localize:iplMap:ExceptionType}}: ({ExceptionCount})</div>",
我想調用鼠標在feature.attributes.HoverContent = $(document.body).append(main)上輸入。 – Raju
爲什麼?你已經有jQuery導入 – OliverRadini
是的,但我需要impliment這其他div.On彈出我需要顯示我已經添加我的代碼 – Raju