Metaobjects

程序名称:Metaobjects

授权协议: 未知

操作系统: 未知

开发语言:

Metaobjects 介绍

The metadata plugin on steroids , now at version 1.3 (released on
2007-03-02)

Metaobjects is used for setting properties of DOM elements, from something as
simple as a boolean to something as complex as a function declaration or
executable code, too.

In the following example we set the title property of the span to the title of
the web page without a single line of javascript ( pretty useless, but awesome
;-)

BEFORE

<span><object class="metaobject"> <param name="title" value="document.title"/> </object>Hover your mouse here to see the title of this page</span>

AFTER

<span>Hover your mouse here to see the title of this page</span>

As you see the metaobject is automatically removed. And abracadabra… if you
does as it says (hover) you’ll really see the tooltip with the title of the
page, even if there is not an HTML explicit “title” property.

You can also use the added metadata from jQuery, like here:

BEFORE

<span id="foo"><object class="metaobject"> <param name="bar" value="Hello World!"/> </object>I'm going to say... </span>

USING jQuery

$( "#foo" ).append( $( "#foo" )[0].bar );

AFTER

<span id="foo">I'm going to say... Hello World!</span>

Metaobjects 官网

http://plugins.jquery.com/project/metaobjects

相关编程语言

多功能下拉选择插件 SelectPage 简洁而强大的下拉分...
AutoComplete 是一个 jQuery Mobile 的插件,用于实...
Combogrid 是一个jQuery插件用于为输入框添加高级自...
Autobox2这个jQuery插件,可以用于创建类似于Facebo...
Link Scraper TextBox 是一个文本框的扩展插件,当你...
Awesomplete 超小超好用的超漂亮的 autocomplete 框...