最新消息:

超级简单又实用的jquery图片预览功能

Cisco admin 2751浏览 0评论

以下为javascript代码: this.imagePreview = function() { xOffset = 10; yOffset = 30; $ (“a.preview”).hover( function(e) { this.t = this.title; this.title = “”; var c = (this.t != “”) ? “<br/>” + this.t : “”; $ (“body”).append(“<p id=’preview’><img src='” + this.href + “‘ alt=’Image preview’ />” + c + “</p>”); $ (“#preview”).css(“top”, (e.pageY – xOffset) + “px”).css(“left”, (e.pageX + yOffset) […]
飞自由,点点滴滴,从基础开始—PHP技术博客

转载请注明:爱开源 » 超级简单又实用的jquery图片预览功能

您必须 登录 才能发表评论!