Metaobjects

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-09 19:43:26

软件介绍

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>


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

Rails Cookbook

Rails Cookbook

奥西尼 / 江苏东南大学 / 2007-6 / 68.00元

Rails是业界领先的新一代Web 2.0应用程序开发框架,而这本《Rails Cookbook》里充满了为了让你成为Rails开发专家而准备的各种解决方案。讨论范围覆盖了从基本概念,如安装Rails及设置开发环境,到最新的各种技巧,如开发符合REST协议规范的Web服务等。 Rails可提供更轻量级的代码、更丰富的功能和更快捷的量身定制过程,由此带来了一场Web开发革命。《Rails Co......一起来看看 《Rails Cookbook》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具