滑鼠移動到文字,顯示DIV的資訊

2021-08-18 13:50:24 字數 1230 閱讀 6429

頁面檔案:

')" οnmοuseοut="hidepopup()">')">

js檔案:

//滑鼠移入顯示div

function trigger(event, pk_accnt)

var html = hotelmanager.web.general.acccenter.mainaccount.getweek(pk_accnt).value;//c#後台處理好的html

var popup = document.getelementbyid("moveinfo");

popup.style.top = movey + "px";

popup.style.left = movex + "px";

popup.style.width = "490px";

popup.style.visibility = "visible";

popup.innerhtml = unescape(html);

}//滑鼠移除隱藏div

function hidepopup()

else if (dt.rows[i]["wek"].tostring() == "星期一" && num == 0)

else if (dt.rows[i]["wek"].tostring() == "星期二" && num == 0)

else if (dt.rows[i]["wek"].tostring() == "星期三" && num == 0)

else if (dt.rows[i]["wek"].tostring() == "星期四" && num == 0)

else if (dt.rows[i]["wek"].tostring() == "星期五" && num == 0)

else if (dt.rows[i]["wek"].tostring() == "星期六" && num == 0)

else if (dt.rows[i]["wek"].tostring() != "星期六" && num > 0)

if (dt.rows[i]["wek"].tostring() == "星期六" && num > 0)}}

html += "";

html +="";

htmlstr = html;

return html;

效果圖:

製作滑鼠移動到div上面顯示彈出框

三代親子嘉年華 span span class info span class username 周乃容 span span class split span img src resources img livesupport live zbbfcs 1.png span class playcou...

製作滑鼠移動到div上面顯示彈出框

三代親子嘉年華 span span class info span class username 周乃容 span span class split span img src resources img livesupport live zbbfcs 1.png span class playcou...

MFC 滑鼠移動時顯示提示資訊

1.在cmydlg.h標頭檔案中定義ctooltipctrl類 ctooltipctrl m tooltip 2.在cmydlg.cpp中的cmydlg oninitdialog 建立並新增需要提示的控制項 滑鼠移動時,提示資訊 m tooltip.create this m tooltip.add...