将悬停消息添加到 SharePoint 中的选项
Adding hover message to choices in SharePoint
我不是程序员,这可以解释为什么我在执行此任务时遇到困难。
我在 sharepoint 上创建了一个调查,我想在一些多选选项中添加悬停消息以解释这些选项的含义。
当我将鼠标悬停在自然、技术和经济选项上时,我希望显示不同的消息。
我尝试使用悬停显示消息编辑下面的标题,但它没有保存。
如果可以,请告诉我。
This is the part of the survey that I want to edit and different messages displayed when I hover on any of the Hazard types options
您可以使用 jQuery 工具提示。
示例演示:
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script type="text/javascript">
$(function () {
$('span[title="Natural"]').tooltip({
content: "Natural Hazard"
});
$('span[title="Technical"]').tooltip({
content: "Technical Hazard"
});
$('span[title="Economical"]').tooltip({
content: "Economical Hazard"
});
})
</script>
我不是程序员,这可以解释为什么我在执行此任务时遇到困难。
我在 sharepoint 上创建了一个调查,我想在一些多选选项中添加悬停消息以解释这些选项的含义。 当我将鼠标悬停在自然、技术和经济选项上时,我希望显示不同的消息。 我尝试使用悬停显示消息编辑下面的标题,但它没有保存。
如果可以,请告诉我。
This is the part of the survey that I want to edit and different messages displayed when I hover on any of the Hazard types options
您可以使用 jQuery 工具提示。
示例演示:
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script type="text/javascript">
$(function () {
$('span[title="Natural"]').tooltip({
content: "Natural Hazard"
});
$('span[title="Technical"]').tooltip({
content: "Technical Hazard"
});
$('span[title="Economical"]').tooltip({
content: "Economical Hazard"
});
})
</script>