Jquery Alt文本的强制悬停
我有几十个热点(Jquery Alt文本的强制悬停,jquery,html,hover,Jquery,Html,Hover,我有几十个热点(和 *值得注意的是,人们可以很容易地与布朗芬布伦纳的生态系统理论进行比较,这是一种自然联系,因为他的理论确实为雷吉奥的实践提供了信息(更多信息,请参阅)但是这张图片是专门为这个项目制作的,它属于大急流城儿童发现中心 我没有进入插件,而是从每个区域获取值,并创建一个绝对定位的元素,该元素根据coords中的值定位 jQuery('area').each(function(){ var text = jQuery(this).attr('title'), link = jQu
和
*值得注意的是,人们可以很容易地与布朗芬布伦纳的生态系统理论进行比较,这是一种自然联系,因为他的理论确实为雷吉奥的实践提供了信息(更多信息,请参阅)但是这张图片是专门为这个项目制作的,它属于大急流城儿童发现中心
我没有进入插件,而是从每个区域
获取值,并创建一个绝对定位的元素,该元素根据coords
中的值定位
jQuery('area').each(function(){
var text = jQuery(this).attr('title'),
link = jQuery(this).attr('href'),
place = jQuery(this).attr('coords').toString(),
left = place.split(",")[0],
top = place.split(",")[1],
right = place.split(",")[2],
bottom = place.split(",")[3];
jQuery('<a href="'+link+'" style="position: absolute; top: '+top+'px; left: '+left+'px; background: white; border: 1px solid;">'+text+'</a>').appendTo('.entry-content');
//console.log(text + ' ' + link + ' ' + place + ' ' + left + ' ' + top + ' ' + right + ' ' + bottom);
jQuery('area')。每个(函数(){
var text=jQuery(this).attr('title'),
link=jQuery(this.attr('href'),
place=jQuery(this.attr('coords').toString(),
左=位置。拆分(“,”[0],
顶部=位置。拆分(“,”[1],
右=位置。拆分(“,”[2],
底部=位置。拆分(“,”[3];
jQuery(“”).appendTo(“”.entry content');
//控制台日志(文本+链接+位置+左侧+顶部+右侧+底部);
}))
这里有一个链接:我没有进入插件,而是从每个区域
获取值,并创建一个绝对定位的元素,该元素根据坐标中的值定位
jQuery('area').each(function(){
var text = jQuery(this).attr('title'),
link = jQuery(this).attr('href'),
place = jQuery(this).attr('coords').toString(),
left = place.split(",")[0],
top = place.split(",")[1],
right = place.split(",")[2],
bottom = place.split(",")[3];
jQuery('<a href="'+link+'" style="position: absolute; top: '+top+'px; left: '+left+'px; background: white; border: 1px solid;">'+text+'</a>').appendTo('.entry-content');
//console.log(text + ' ' + link + ' ' + place + ' ' + left + ' ' + top + ' ' + right + ' ' + bottom);
jQuery('area')。每个(函数(){
var text=jQuery(this).attr('title'),
link=jQuery(this.attr('href'),
place=jQuery(this.attr('coords').toString(),
左=位置。拆分(“,”[0],
顶部=位置。拆分(“,”[1],
右=位置。拆分(“,”[2],
底部=位置。拆分(“,”[3];
jQuery(“”).appendTo(“”.entry content');
//控制台日志(文本+链接+位置+左侧+顶部+右侧+底部);
}))
这里有一个链接:工具提示不是由alt
生成的。它是由title
生成的。工具提示的可能副本不是由alt
生成的。它是由title
生成的。可能是