论坛首页 入门技术论坛

请教:有人用过Jquery的button这个plugin吗?

浏览 2009 次
该帖已经被评为新手帖
作者 正文
   发表时间:2008-05-07  
这个插件有谁用过吗?这个hash是怎么设置的啊?
这是我在网上找到的一个旧版API对他的描述:
Creates a button from an image element. This function attempts to mimic the functionality of the "button" found in modern day GUIs. There are two different buttons you can create using this plugin; Normal buttons, and Toggle buttons.

参数
hash (hOptions): with options, described below.
sPath Full path to the images, either relative or with full URL sExt Extension of the used images (jpg|gif|png)
sName Name of the button, if not specified, try to fetch from id
iWidth Width of the button, if not specified, try to fetch from element.width
iHeight Height of the button, if not specified, try to fetch from element.height
onAction Function to call when clicked / toggled. In case of a string, the element is wrapped inside an href tag.
bToggle Do we need to create a togglebutton? (boolean)
bState Initial state of the button? (boolean)
sType Type of hover to create (img|css)
   发表时间:2008-05-07  
有没有高人能指点一下?
0 请登录后投票
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics