gpt4 book ai didi

php - 如何实现数据库数据悬停动态描述显示?

转载 作者:行者123 更新时间:2023-12-01 04:10:06 25 4
gpt4 key购买 nike

如何实现数据库数据悬停动态描述显示?在我的项目中,在产品悬停上使用某些产品的产品分页,我想动态显示一个弹出窗口,功能上使用什么功能,例如 ajax、json 或其他一些基于其可能的技术?

最佳答案

试试这个,

演示 Ajax Tooltip

我正在使用 Jquery UI 工具提示,它使用 ajax 请求在数据库中的工具提示中显示您的 IP 地址,

$(function() {
$( document ).tooltip({
position: {
my: "center bottom-20",
at: "center top",
using: function( position, feedback ) {

$that = $( this )

$.ajax({
url: 'http://ip.jsontest.com/',


success: function(result){
$that.text(result.ip)
}
});
$( this ).css( position );
$( "<div>" )
.addClass( "arrow" )
.addClass( feedback.vertical )
.addClass( feedback.horizontal )
.appendTo( this );
}
}
});
});

关于php - 如何实现数据库数据悬停动态描述显示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21570232/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com