jQuery imgDesc

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-10 14:57:06

软件介绍

Description

This plugin is written with the develpment of PageTalks, accidently. As PageTalks is based on jQuery Libary, jQuery code is required.

Requirements

  • jQuery Libary, just downlaod fromjQuery Offical Site
  • imgDesc script file(oops……)
  • a little knowledge on xhtml and js

Features

This plugin will automatically take title attribute in IMG tag as the description of the image. If IMG is not wrapped by a Anchor tag, the plugin will wrap it with one. This plugin currently support two parameters, all of which are optional.

  • autohide if the plugin should automatically hide the description and show it when mouseover. Default "yes"
  • text Customize the value of description. Default value is the title attribut of IMG tag

Usage

Load jQuery Libary
You can directly add the following code in <head> tag:<script type="text/javascript" src="jquery..js"></script>
Load imgDesc Plugin
<script type="text/javascript" src="jquery.imgdesc.js"></script>
Assing the target object
follow the jQuery code style:$("img").imgDesc();You can, of course , apply some change, customizing the way it show up and the value of description:$("img").imgDesc({autohide: "yes", text : "This is a sample text!"});

本文地址:https://codercto.com/soft/d/23080.html

产品经理的第二本书

产品经理的第二本书

[美] 哥乔斯 / 戴维侬 / 中国财政经济出版社 / 2004-4 / 39.80元

产品经理的第二本书:产品经理实战技巧指南,ISBN:9787500570950,作者:(美)琳达·哥乔斯(Linda Gorchels)著;戴维侬译;戴维侬译一起来看看 《产品经理的第二本书》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试