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

PHP 6与MySQL 5基础教程

PHP 6与MySQL 5基础教程

(美)厄尔曼 / 陈宗斌 等 / 人民邮电出版社 / 2008-11-1 / 65.00元

本书是一部经典的入门级著作,采用基于任务的方法来讲授PHP和MySQL,使用大量图片指导读者深入学习语言,并向读者展示了如何构造动态Web站点。书中用简洁、直观的步骤和讲解提供了学习任务和概念的最快方式。通过学习本书,读者可以快速、高效地掌握PHP和MySQL,成为一位构建Web站点的高手。 本书适合初中级Web应用开发和设计人员阅读。 本书是讲述PHP和MySQL技术的畅销书,以深入......一起来看看 《PHP 6与MySQL 5基础教程》 这本书的介绍吧!

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

多种字符组合密码

URL 编码/解码
URL 编码/解码

URL 编码/解码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具