今天在xhtml中使用javascript时一直报错,后来才发现在xhtml中javacript里使用'<' '&'是不合法的。<br />

Making JavaScript Compatible with XHTML

XHTML is subject to the same syntactical rules as XML. Because of this, an
XHTML processor treats the characters < and & as markup, even if they reside inside a

Note that JavaScript source code must be placed within the opening and closing elements of the CDATA section. The CDATA section itself should be commented out with a JavaScript single-line comment // as in the example above. This is so that the JavaScript
interrupter does not interpret the CDATA markup as JavaScript, which would cause a JavaScript error.

JavaScript code that is imported into an XHTML document from an external source file is always
compatible with XHTML. So, for example, any code you place into the external file external.js and import into an
XHTML file via the src attribute of the

在XHTML文档中合适的使用CSS和JavaScript

XHTML™ 1.0 The Extensible HyperText Markup Language (Second Edition) 定义XHTML是为了把HTML 4扩展成像XML 1.0一样的应用程序。

在许多站点中XHTML正在迅速的替代HTML 4;然而,主流浏览器对完全支持XHTML方面表现得不足,和网页设计师对HTML 4与XHTML的基本差异缺乏理解,产生了当今网络上的一个不断扩大的问题。

XHTML是XML,不是HTML

其中关于XHTML的主要的误解是,它仅仅是另外一个版本的HTML。这个误解产生于这样的事实:Microsoft® Internet Explorer只在文件以Mime类型为 text/html提交时,才支持XHTML,而标准中建议的类型其实是application/xhtml+xml

当一个XHTML页面的MIME类型被提交为text/html时,它被所有的浏览器当作HTML处理,就好像XHTML比起HTML来没有任何不同。但是当一个XHTML页面的MIME类型被提交为text/xml或<tt>application/xhtml+xml时,它将被当作XML文档处理,而设计和显示XML都是必须要遵守严格规则的。

真正的XHTML就是一个XML的应用,所以创建XHTML时也要遵守严格的规则。特别是:

  1. 未经过处理的<和<tt>&不允许出现在CDATA区域(<tt>...>)之外。
  2. 注释()中不能包含双横线。
  3. 包含在注释()中的内容将被忽略。

在内嵌的style和<tt>script中出现的问题

在被当作XML而不是HTML处理时,内嵌的style和script标记会产生几个不同的问题。

JavaScript中包含了一些在XHTML中不允许存在的字符

典型的JavaScript中包含了一些特殊字符,这些字符在XHTML中是不允许放在CDATA区域之外的。

注意这个例子不是以正确格式书写的XHTML,因为使用了未经处理的&#8220;<”,它只能在被当作XHTML或XML标记的一部分时出现。

在内嵌的style和<tt>script中使用注释

熟悉HTML的设计师通常把内嵌的style和<tt>script内容放到注释中,这样可以在不支持样式和脚本的浏览器中隐藏它们。

这个例子举例说明了特定的浏览器可以忽略注释里的内容。另外,这个例子还显示了不同的浏览器在处理<tt>text/xml或者 application/xhtml+xml内容时产生的不同问题。

Mozilla 1.1+/Opera 7
不能使用CSS,也不能执行JavaScript。
Netscape 7.0x/Mozilla 1.0.x
不能使用CSS,但可以执行JavaScript。
Internet Explorer 5.5+
无法正常显示文档。

包含双横线的内嵌style和<tt>script

另一个把JavaScript包含在XHTML文件的注释中产生的<a rel="internal" href="https://developer.mozilla.org/cn/Properly_Using_CSS_and_JavaScript_in_XHTML_Documents/Examples#Problem_3">问题,与在XHTML的注释中使用双横线会产生的问题一样。

使用CDATA替代注释

直接把JavaScript放入CDATA区域会在低版本不支持XML的浏览器中产生问题,不过,把JavaScript的注释(//……)与CDATA一起使用,就能解决向下兼容的问题了。

例子

在注释中使用内嵌style的CSS规则

例子1 - XHTML 1.0 Strict在<tt>text/html
这个例子举例说明当CSS规则包含内联和包含在注释中时的XHTML在<tt>text/html的行为。这个例子支持Netscape 7.x,Mozilla,Opera 7和Internet Explorer 5.5+那一个都能像期望一样应用CSS规则。
例子2 - XHTML 1.0 Strict在<tt>text/xml
这个例子举例说明当CSS规则包含内联和包含在注释中时的XHTML在<tt>text/xml的行为。这个例子支持Netscape 7.x,Mozilla,Opera 7但<strong>不支持Internet Explorer 5.5+。注意etscape 7.x,Mozilla和Opera同意包含在注释的内联CSS规则将被忽略。
例子3 - XHTML 1.0 Strict在<tt>application/xhtml+xml
这个例子举例说明当CSS规则包含内联和包含在注释中时的XHTML在<tt>application/xhtml+xml的行为。这个例子支持Netscape 7.x,Mozilla,Opera 7但<strong>不支持Internet Explorer 5.5+。注意etscape 7.x,Mozilla和Opera同意包含在注释的内联CSS规则将被忽略。

使用外部文件的CSS规则

例子4 - XHTML 1.0 Strict在<tt>text/html
这个例子举例说明当在使用外部文件的CSS规则的时候XHTML在<tt>text/html的行为。这个例子支持Netscape 7.x,Mozilla,Opera 7和Internet Explorer 5.5+。
例子5 - XHTML 1.0 Strict在<tt>text/xml
这个例子举例说明当在使用外部文件的CSS规则的时候XHTML在<tt>text/xml的行为。这个例子支持Netscape 7.x,Mozilla和Opera 7但不支持不支持Internet Explorer 5.5+
例子6 - XHTML 1.0 Strict在<tt>application/xhtml+xml
这个例子举例说明当在使用外部文件的CSS规则的时候XHTML在<tt>application/xhtml+xml的行为。这个例子支持Netscape 7.x,Mozilla和Opera 7但不支持不支持Internet Explorer 5.5+

建议

不要在XHTML中内联<tt>style或<tt>script

用外部文件包含CSS规则和JavaScript来替换内联样式和脚本是创建XHTML最佳方式,在向后兼容方式时,如果内容的MIME类型从<tt>text/html向<tt>application/xhtml+xml改变时将不会被打断。

这个建议可能看起来更强烈,可是,它是未来XHTML要打算的问题,当XHTML在<tt>text/html向<tt>application/xhtml+xml转移在几年后发生。

如果你仅仅测试你的XHTML在<tt>text/html的时候,那么你可能产生问题,例如像:不能准确的描述出主题。移动CSS和JavaScript到单独的文件是可靠的方法,关于改变你XHTML的服务方式。

理解XHTML 1.0的HTML兼容指导

这个XHTML 1.0 HTML Compatibility Guidelines帮助创建XHTML文档向后兼容性在那些不能理解XML的老浏览器。

请注意那是纯粹的XHTML文档,你不需要使用xml-stylesheet处理指导,但应该使用link涉及的外部文件包含CSS。

另外,附XHTML的一些规范:
1.所有的标记都必须要有一个相应的结束标记
以前在&nbsp;HTML 中,你可以打开许多标签,例
如&nbsp;

和&nbsp;

  • 而不一定写对应的&nbsp;

    和&nbsp;

  • 来关闭它们.但
    在&nbsp;XHTML 中这是不合法的.XHTML要求有严谨的结构,所有标签必须关闭.如果是单独不成对的标签,在标签最后加一个&nbsp;"/" 来关闭它.例如:

    网页设计师" src=http://images/logo_w3cn_200x80.gif"&n ... 00" />

    2.所有标签的元素和属性的名字都必须使用小写<br />
    与&nbsp;HTML 不
    一样,XHTML 对大小写是敏感的, 和&nbsp;<title> 是不同的标签.XHTML 要求所有的标签和属性的<br /> 名字都必须使用小写.例如:<body> 必须写成 <body> .大小写夹杂也是不被认可的,通<br /> 常&nbsp;dreamweaver 自动生成的属性名字&nbsp;"onMouseOver" 也必须修改成 "onmouseover".</p> <p>3.所有的 XML 标记都必须合理嵌套<br /><br /> 同样因为 XHTML 要求有严谨的结构,因此所有的嵌套都必须按顺序,以前我们这样写的代码:</p> <p><b></p> <p></b> <br /> 必须修改为:</p> <p><b></b></p> <p> 就是说,一层一层的嵌套必须是严格对称.</p> <p>4.所有的属性必须用引号 "" 括起来<br /><br /> 在&nbsp;HTML 中,你可以不需要给属性值加引号,但是在&nbsp;XHTML 中,它们必须被加引号.例如:<br /> <height=80> <br /> 必须修改为:<br /> <height="80"> <br /> 特殊情况,你需要在属性值里使用双引号,你可以用 ",单引号可以使用&nbsp;',例如:<br /> <alt="say'hello'"> </p> <p> 5.把所有&nbsp;< 和&nbsp;& 特殊符号用编码表示<br /><br /> 任何小于号(<),不是标签的一部分,都必须被编码为&nbsp;<<br /> 任何大于号(>),不是标签的一部分,都必须被编码为&nbsp;><br /> 任何与号(&amp;),不是实体的一部分的,都必须被编码为&nbsp;&</p> <p>6.给所有属性赋一个值<br /><br /> XHTML 规定所有属性都必须有一个值,没有值的就重复本身.例如:</p> <td nowrap> <input type="checkbox" name="shirt" value="medium" checked> <br /> 必须修改为:</p> <td nowrap="nowrap"> <input type="checkbox" name="shirt" value="medium" checked="checked" /> </p> <p>7.不要在注释内容中使用 "--","--" 只能发生在&nbsp;XHTML 注释的开头和结束,也就是说,在内容中它们不再有效.例如下面的代码是无效的:<br /> <!--这里是注释-----------这里是注释--> <br /> 用等号或者空格替换内部的虚线:<br /> <!--这里是注释============这里是注释--> </p> <p>以上这些规范有的看上去比较奇怪,但这一切都是为了使我们的代码有一个统一、唯一的标准,便于以后的数据再利用.</p> <div class="open_social_box share_box"><div class="share_button share_icon_weibo" onclick="share_button_click('http://v.t.sina.com.cn/share/share.php?url=%URL%&title=%TITLE%&pic=%PIC%&appkey=&ralateUid=&language=zh_cn&searchPic=false',event)" title="分享到微博"></div><div class="share_button share_icon_qqzone" onclick="share_button_click('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=%URL%&title=%TITLE%&desc=&summary=&site=&pics=%PIC%',event)" title="分享到QQ空间"></div><div class="share_button share_icon_qqweibo" onclick="share_button_click('http://share.v.t.qq.com/index.php?c=share&a=index&url=%URL%&title=%TITLE%&pic=%PIC%&appkey=',event)" title="分享到QQ微博"></div><div class="share_button share_icon_youdao" onclick="share_button_click('http://note.youdao.com/memory/?url=%URL%&title=%TITLE%&sumary=&pic=%PIC%&product=',event)" title="分享到网易有道笔记"></div><div class="share_button share_icon_wechat" onclick="share_button_click('QRCODE',event)" title="分享到微信"></div><div class="share_button share_icon_twitter" onclick="share_button_click('http://twitter.com/home/?status=%TITLE%:%URL%',event)" title="分享到 Twitter"></div><div class="share_button share_icon_facebook" onclick="share_button_click('http://www.facebook.com/sharer.php?u=%URL%&t=%TITLE%',event)" title="分享到 Facebook"></div><div class="open_social_qrcode" onclick="jQuery(this).hide();"></div></div> <div id='jp-relatedposts' class='jp-relatedposts' > <h3 class="jp-relatedposts-headline"><em>相关</em></h3> </div> </section> </article> <!-- / blog box--> <div class='entry commententry'> <div class="clearfix"></div> <div id="comments" class="rt_comments rt_form"> <div id="respond" class="comment-respond"> <h3 id="reply-title" class="comment-reply-title">Leave a Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="/2009/05/13/%E5%9C%A8xhtml%E4%B8%AD%E4%BD%BF%E7%94%A8javascript/?lang=zh-hans#respond" style="display:none;">Cancel reply</a></small></h3> <form action="http://www.sealyu.com/wp-comments-post.php" method="post" id="commentform" class="comment-form"> <div class="open_social_box login_box"></div><p class="comment-notes"><span id="email-notes">电子邮件地址不会被公开。</span> 必填项已用<span class="required">*</span>标注</p><div class="text-boxes"><ul><li><textarea tabindex="4" class="comment_textarea showtextback" rows="10" id="comment" name="comment">Comment *</textarea></li></ul></div><div class="clear space"></div><div class="text-boxes"><ul><li class="box three first comment-form-author"><input id="author" name="author" class="showtextback" type="text" value="Name *" size="30" /></li> <li class="box three comment-form-email"><input id="email" name="email" class="showtextback" type="text" value="Email *" size="30" /></li> <li class="box three last comment-form-url "><input id="url" name="url" class="showtextback" type="text" value="Website" size="30" /></li> </ul></div><p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="Post Comment" /> <input type='hidden' name='comment_post_ID' value='839' id='comment_post_ID' /> <input type='hidden' name='comment_parent' id='comment_parent' value='0' /> </p> <noscript><input type="hidden" name="JS04X7" value="NS1" /></noscript> <noscript><p><strong>Currently you have JavaScript disabled. In order to post comments, please make sure JavaScript and Cookies are enabled, and reload the page.</strong> <a href="http://enable-javascript.com/" rel="nofollow external" >Click here for instructions on how to enable JavaScript in your browser.</a></p></noscript> <p class="comment-subscription-form"><input type="checkbox" name="subscribe_comments" id="subscribe_comments" value="subscribe" style="width: auto; -moz-appearance: checkbox; -webkit-appearance: checkbox;" /> <label class="subscribe-label" id="subscribe-label" for="subscribe_comments">通过邮件通知我后续评论</label></p><p class="comment-subscription-form"><input type="checkbox" name="subscribe_blog" id="subscribe_blog" value="subscribe" style="width: auto; -moz-appearance: checkbox; -webkit-appearance: checkbox;" /> <label class="subscribe-label" id="subscribe-blog-label" for="subscribe_blog">通过邮件通知我有新文章</label></p> <input type="hidden" name="icl_comment_language" value="zh-hans" /> </form> </div><!-- #respond --> </div><!-- #comments --> </div> </div> </section><!-- / end section .content --> <!-- section .sidebar --> <section class="sidebar right sticky "> <div class="box box_layout clearfix column_class widget widget_categories"><div class="caption"><h3 class="featured_article_title">Category</h3></div><div class="space margin-b20"></div> <ul> <li class="cat-item cat-item-63"><a href="http://www.sealyu.com/category/apple/?lang=zh-hans" >Apple</a> </li> <li class="cat-item cat-item-112"><a href="http://www.sealyu.com/category/bigdata/?lang=zh-hans" >BigData</a> </li> <li class="cat-item cat-item-39"><a href="http://www.sealyu.com/category/css/?lang=zh-hans" >CSS</a> </li> <li class="cat-item cat-item-49"><a href="http://www.sealyu.com/category/ejb/?lang=zh-hans" >EJB</a> </li> <li class="cat-item cat-item-71"><a href="http://www.sealyu.com/category/guitar/?lang=zh-hans" >Guitar</a> </li> <li class="cat-item cat-item-69"><a href="http://www.sealyu.com/category/health-care/?lang=zh-hans" >Health Care</a> </li> <li class="cat-item cat-item-53"><a href="http://www.sealyu.com/category/hibernate/?lang=zh-hans" >Hibernate</a> </li> <li class="cat-item cat-item-65"><a href="http://www.sealyu.com/category/iphone/?lang=zh-hans" >iphone</a> </li> <li class="cat-item cat-item-43"><a href="http://www.sealyu.com/category/eclipse-swtjface-rcp/?lang=zh-hans" >Java IDE</a> </li> <li class="cat-item cat-item-38"><a href="http://www.sealyu.com/category/javascript/?lang=zh-hans" >Javascript</a> </li> <li class="cat-item cat-item-41"><a href="http://www.sealyu.com/category/java%e5%9f%ba%e7%a1%80/?lang=zh-hans" >Java基础</a> </li> <li class="cat-item cat-item-67"><a href="http://www.sealyu.com/category/jquery/?lang=zh-hans" >JQuery</a> </li> <li class="cat-item cat-item-42"><a href="http://www.sealyu.com/category/linux/?lang=zh-hans" >Linux</a> </li> <li class="cat-item cat-item-61"><a href="http://www.sealyu.com/category/maven/?lang=zh-hans" >Maven</a> </li> <li class="cat-item cat-item-59"><a href="http://www.sealyu.com/category/php/?lang=zh-hans" >PHP</a> </li> <li class="cat-item cat-item-56"><a href="http://www.sealyu.com/category/python/?lang=zh-hans" >Python</a> </li> <li class="cat-item cat-item-57"><a href="http://www.sealyu.com/category/seam/?lang=zh-hans" >Seam</a> </li> <li class="cat-item cat-item-66"><a href="http://www.sealyu.com/category/seo/?lang=zh-hans" >SEO</a> </li> <li class="cat-item cat-item-58"><a href="http://www.sealyu.com/category/spring/?lang=zh-hans" >Spring</a> </li> <li class="cat-item cat-item-55"><a href="http://www.sealyu.com/category/struts/?lang=zh-hans" >Struts</a> </li> <li class="cat-item cat-item-37"><a href="http://www.sealyu.com/category/web/?lang=zh-hans" >Web</a> </li> <li class="cat-item cat-item-108"><a href="http://www.sealyu.com/category/web3/?lang=zh-hans" >Web3</a> </li> <li class="cat-item cat-item-44"><a href="http://www.sealyu.com/category/web%e6%9c%8d%e5%8a%a1%e5%99%a8/?lang=zh-hans" >web服务器</a> </li> <li class="cat-item cat-item-46"><a href="http://www.sealyu.com/category/%e4%b8%ad%e5%8c%bb/?lang=zh-hans" >中医</a> </li> <li class="cat-item cat-item-52"><a href="http://www.sealyu.com/category/%e5%a8%b1%e4%b9%90/?lang=zh-hans" >娱乐</a> </li> <li class="cat-item cat-item-36"><a href="http://www.sealyu.com/category/%e6%95%b0%e6%8d%ae%e5%ba%93/?lang=zh-hans" >数据库</a> </li> <li class="cat-item cat-item-1"><a href="http://www.sealyu.com/category/%e6%9c%aa%e5%88%86%e7%b1%bb/?lang=zh-hans" >未分类</a> </li> <li class="cat-item cat-item-64"><a href="http://www.sealyu.com/category/%e6%b5%8b%e8%af%95/?lang=zh-hans" >测试</a> </li> <li class="cat-item cat-item-54"><a href="http://www.sealyu.com/category/%e7%89%88%e6%9c%ac%e6%8e%a7%e5%88%b6/?lang=zh-hans" >版本控制</a> </li> <li class="cat-item cat-item-62"><a href="http://www.sealyu.com/category/%e7%94%9f%e6%b4%bb/?lang=zh-hans" >生活</a> </li> <li class="cat-item cat-item-50"><a href="http://www.sealyu.com/category/%e7%b3%bb%e7%bb%9f%e6%9e%b6%e6%9e%84/?lang=zh-hans" >系统架构</a> </li> <li class="cat-item cat-item-45"><a href="http://www.sealyu.com/category/%e7%bb%bc%e5%90%88/?lang=zh-hans" >综合</a> </li> <li class="cat-item cat-item-48"><a href="http://www.sealyu.com/category/%e8%8b%b1%e8%af%ad/?lang=zh-hans" >英语</a> </li> <li class="cat-item cat-item-51"><a href="http://www.sealyu.com/category/%e8%ae%be%e8%ae%a1%e6%a8%a1%e5%bc%8f/?lang=zh-hans" >设计模式</a> </li> <li class="cat-item cat-item-47"><a href="http://www.sealyu.com/category/%e8%af%bb%e4%b9%a6/?lang=zh-hans" >读书</a> </li> <li class="cat-item cat-item-73"><a href="http://www.sealyu.com/category/%e8%b4%b9%e5%9f%8e%e7%94%9f%e6%b4%bb/?lang=zh-hans" >费城生活</a> </li> <li class="cat-item cat-item-40"><a href="http://www.sealyu.com/category/%e9%a1%b9%e7%9b%ae%e7%ae%a1%e7%90%86/?lang=zh-hans" >项目管理</a> </li> </ul> </div> </section><!-- / end section .sidebar --> </section> </section> </div><!-- / end div .content_area --> <div class="content_footer footer_widgets_holder"><section class="footer_widgets clearfix"></section></div> </div><!-- / end div .content_second_background --> </div><!-- / end div .content_holder --> </div><!-- end div #container --> <!-- footer --> <footer id="footer"> <!-- footer info --> <div class="footer_info"> <!-- left side --> <div class="part1"> <!-- footer nav --> <ul id="footer_links" class="footer_links"><li id="menu-item-658" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-home menu-item-658"><a href="http://www.sealyu.com/?lang=zh-hans">首页</a></li> <li id="menu-item-450" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-450"><a href="http://www.sealyu.com/my-products/?lang=zh-hans">Apps & Sites</a></li> <li id="menu-item-645" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-645"><a href="http://www.sealyu.com/blog/?lang=zh-hans">博客</a></li> <li id="menu-item-449" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-449"><a href="http://www.sealyu.com/contact-me/?lang=zh-hans">联系我</a></li> </ul> <!-- / end ul .footer_links --> <!-- copyright text --> <div class="copyright">Copyright © 2014 Haibo Yu, Inc. </div><!-- / end div .copyright --> </div><!-- / end div .part1 --> <!-- social media icons --> <!-- / end ul .social_media_icons --> </div><!-- / end div .footer_info --> </footer> <!-- / footer --> <script type='text/javascript'> /* <![CDATA[ */ r3f5x9JS=escape(document['referrer']); hf4N='209bb21c5f9d733bda9d7dff1639bee0'; hf4V='aa62b0548da1ba08b1da7fdf941f6ed7'; cm4S="form[action='http://www.sealyu.com/wp-comments-post.php']"; jQuery(document).ready(function($){var e="#commentform, .comment-respond form, .comment-form, "+cm4S+", #lostpasswordform, #registerform, #loginform, #login_form, #wpss_contact_form";$(e).submit(function(){$("<input>").attr("type","hidden").attr("name","r3f5x9JS").attr("value",r3f5x9JS).appendTo(e);$("<input>").attr("type","hidden").attr("name",hf4N).attr("value",hf4V).appendTo(e);return true;});$("#comment").attr({minlength:"15",maxlength:"15360"})}); /* ]]> */ </script> <div style="display:none"> </div> <!--[if lte IE 8]> <link rel='stylesheet' id='jetpack-carousel-ie8fix-css' href='http://www.sealyu.com/wp-content/plugins/jetpack/modules/carousel/jetpack-carousel-ie8fix.css?ver=20121024' type='text/css' media='all' /> <![endif]--> <link rel='stylesheet' id='buttons-css' href='http://www.sealyu.com/wp-includes/css/buttons.min.css?ver=69a42b9f4fe522062a2132f95317aa9b' type='text/css' media='all' /> <script type='text/javascript' src='http://www.sealyu.com/wp-content/plugins/jetpack/modules/photon/photon.js?ver=20130122'></script> <script type='text/javascript' src='https://s0.wp.com/wp-content/js/devicepx-jetpack.js?ver=201734'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-content/themes/rttheme18/js/jquery.easing.1.3.js?ver=69a42b9f4fe522062a2132f95317aa9b'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-content/themes/rttheme18/js/jquery.tools.min.js?ver=69a42b9f4fe522062a2132f95317aa9b'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-content/themes/rttheme18/js/waypoints.min.js?ver=69a42b9f4fe522062a2132f95317aa9b'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-content/themes/rttheme18/js/video_player/mediaelement-and-player.min.js?ver=69a42b9f4fe522062a2132f95317aa9b'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-content/themes/rttheme18/js/lightbox/js/jackbox-packed.min.js?ver=69a42b9f4fe522062a2132f95317aa9b'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-content/themes/rttheme18/js/colortip-1.0-jquery.js?ver=69a42b9f4fe522062a2132f95317aa9b'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-content/themes/rttheme18/js/jquery.flexslider.js?ver=69a42b9f4fe522062a2132f95317aa9b'></script> <script type='text/javascript'> /* <![CDATA[ */ var rt_theme_params = {"ajax_url":"http:\/\/www.sealyu.com\/wp-admin\/admin-ajax.php?lang=zh-hans","rttheme_template_dir":"http:\/\/www.sealyu.com\/wp-content\/themes\/rttheme18","sticky_logo":"on","content_animations":"on","page_loading":""}; /* ]]> */ </script> <script type='text/javascript' src='http://www.sealyu.com/wp-content/themes/rttheme18/js/script.js?ver=69a42b9f4fe522062a2132f95317aa9b'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-includes/js/comment-reply.min.js?ver=69a42b9f4fe522062a2132f95317aa9b'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-content/plugins/open-social/images/os.js?ver=69a42b9f4fe522062a2132f95317aa9b'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-content/plugins/wp-spamshield/js/jscripts-ftr-min.js'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-includes/js/wp-embed.min.js?ver=69a42b9f4fe522062a2132f95317aa9b'></script> <script type='text/javascript'> /* <![CDATA[ */ var icl_vars = {"current_language":"zh-hans","icl_home":"http:\/\/www.sealyu.com?lang=zh-hans"}; /* ]]> */ </script> <script type='text/javascript' src='http://www.sealyu.com/wp-content/plugins/sitepress-multilingual-cms/res/js/sitepress.js?ver=69a42b9f4fe522062a2132f95317aa9b'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-content/plugins/jetpack/_inc/spin.js?ver=1.3'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-content/plugins/jetpack/_inc/jquery.spin.js?ver=1.3'></script> <script type='text/javascript'> /* <![CDATA[ */ var jetpackCarouselStrings = {"widths":[370,700,1000,1200,1400,2000],"is_logged_in":"","lang":"zh","ajaxurl":"http:\/\/www.sealyu.com\/wp-admin\/admin-ajax.php","nonce":"63c9c910db","display_exif":"1","display_geo":"1","single_image_gallery":"1","single_image_gallery_media_file":"","background_color":"black","comment":"\u6761\u8bc4\u8bba","post_comment":"\u53d1\u8868\u8bc4\u8bba","write_comment":"\u64b0\u5199\u8bc4\u8bba...","loading_comments":"\u6b63\u5728\u52a0\u8f7d\u8bc4\u8bba...","download_original":"\u67e5\u770b\u5168\u5c3a\u5bf8 <span class=\"photo-size\">{0}<span class=\"photo-size-times\">\u00d7<\/span>{1}<\/span>","no_comment_text":"\u8bf7\u786e\u4fdd\u4e0e\u60a8\u7684\u8bc4\u8bba\u4e00\u8d77\u63d0\u4ea4\u90e8\u5206\u6587\u672c\u3002","no_comment_email":"\u8bf7\u63d0\u4f9b\u7528\u4e8e\u53d1\u8868\u8bc4\u8bba\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002","no_comment_author":"\u8bf7\u63d0\u4f9b\u60a8\u7528\u4e8e\u53d1\u8868\u8bc4\u8bba\u7684\u59d3\u540d\u3002","comment_post_error":"\u62b1\u6b49\uff0c\u53d1\u8868\u60a8\u7684\u8bc4\u8bba\u65f6\u51fa\u9519\u3002\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002","comment_approved":"\u60a8\u7684\u8bc4\u8bba\u5df2\u83b7\u5f97\u6279\u51c6\u3002","comment_unapproved":"\u6b63\u5728\u5ba1\u6838\u60a8\u7684\u8bc4\u8bba\u3002","camera":"\u7167\u76f8\u673a","aperture":"\u5149\u5708","shutter_speed":"\u5feb\u95e8\u901f\u5ea6","focal_length":"\u7126\u8ddd","copyright":"\u7248\u6743","comment_registration":"0","require_name_email":"1","login_url":"http:\/\/www.sealyu.com\/wp-login.php?redirect_to=http%3A%2F%2Fwww.sealyu.com%2F2009%2F05%2F13%2F%25e5%259c%25a8xhtml%25e4%25b8%25ad%25e4%25bd%25bf%25e7%2594%25a8javascript%2F%3Flang%3Dzh-hans","blog_id":"1","meta_data":["camera","aperture","shutter_speed","focal_length","copyright"],"local_comments_commenting_as":"<fieldset><label for=\"email\">\u7535\u5b50\u90ae\u7bb1\uff08\u5fc5\u586b\uff09<\/label> <input type=\"text\" name=\"email\" class=\"jp-carousel-comment-form-field jp-carousel-comment-form-text-field\" id=\"jp-carousel-comment-form-email-field\" \/><\/fieldset><fieldset><label for=\"author\">\u540d\u79f0\uff08\u5fc5\u586b\uff09<\/label> <input type=\"text\" name=\"author\" class=\"jp-carousel-comment-form-field jp-carousel-comment-form-text-field\" id=\"jp-carousel-comment-form-author-field\" \/><\/fieldset><fieldset><label for=\"url\">\u7f51\u5740<\/label> <input type=\"text\" name=\"url\" class=\"jp-carousel-comment-form-field jp-carousel-comment-form-text-field\" id=\"jp-carousel-comment-form-url-field\" \/><\/fieldset>"}; /* ]]> */ </script> <script type='text/javascript' src='http://www.sealyu.com/wp-content/plugins/jetpack/modules/carousel/jetpack-carousel.js?ver=20170209'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-includes/js/wp-a11y.min.js?ver=69a42b9f4fe522062a2132f95317aa9b'></script> <script type='text/javascript'> /* <![CDATA[ */ var wpLinkL10n = {"title":"\u63d2\u5165\u6216\u7f16\u8f91\u94fe\u63a5","update":"\u66f4\u65b0","save":"\u6dfb\u52a0\u94fe\u63a5","noTitle":"(\u65e0\u6807\u9898)","noMatchesFound":"\u672a\u627e\u5230\u7ed3\u679c\u3002","linkSelected":"\u94fe\u63a5\u5df2\u9009\u62e9\u3002","linkInserted":"\u94fe\u63a5\u5df2\u63d2\u5165\u3002"}; /* ]]> */ </script> <script type='text/javascript' src='http://www.sealyu.com/wp-includes/js/wplink.min.js?ver=69a42b9f4fe522062a2132f95317aa9b'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-includes/js/jquery/ui/core.min.js?ver=1.11.4'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-includes/js/jquery/ui/widget.min.js?ver=1.11.4'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-includes/js/jquery/ui/position.min.js?ver=1.11.4'></script> <script type='text/javascript' src='http://www.sealyu.com/wp-includes/js/jquery/ui/menu.min.js?ver=1.11.4'></script> <script type='text/javascript'> /* <![CDATA[ */ var uiAutocompleteL10n = {"noResults":"\u672a\u627e\u5230\u7ed3\u679c\u3002","oneResult":"\u627e\u52301\u4e2a\u7ed3\u679c\u3002\u4f7f\u7528\u4e0a\u4e0b\u65b9\u5411\u952e\u6765\u5bfc\u822a\u3002","manyResults":"\u627e\u5230%d\u4e2a\u7ed3\u679c\u3002\u4f7f\u7528\u4e0a\u4e0b\u65b9\u5411\u952e\u6765\u5bfc\u822a\u3002","itemSelected":"\u5df2\u9009\u62e9\u9879\u76ee\u3002"}; /* ]]> */ </script> <script type='text/javascript' src='http://www.sealyu.com/wp-includes/js/jquery/ui/autocomplete.min.js?ver=1.11.4'></script> <script type="text/javascript"> tinyMCEPreInit = { baseURL: "http://www.sealyu.com/wp-includes/js/tinymce", suffix: ".min", mceInit: {}, qtInit: {'comment':{id:"comment",buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,more,close"}}, ref: {plugins:"",theme:"modern",language:""}, load_ext: function(url,lang){var sl=tinymce.ScriptLoader;sl.markDone(url+'/langs/'+lang+'.js');sl.markDone(url+'/langs/'+lang+'_dlg.js');} }; </script> <script type="text/javascript"> var ajaxurl = "/wp-admin/admin-ajax.php"; ( function() { var init, id, $wrap; if ( typeof tinymce !== 'undefined' ) { if ( tinymce.Env.ie && tinymce.Env.ie < 11 ) { tinymce.$( '.wp-editor-wrap ' ).removeClass( 'tmce-active' ).addClass( 'html-active' ); return; } for ( id in tinyMCEPreInit.mceInit ) { init = tinyMCEPreInit.mceInit[id]; $wrap = tinymce.$( '#wp-' + id + '-wrap' ); if ( ( $wrap.hasClass( 'tmce-active' ) || ! tinyMCEPreInit.qtInit.hasOwnProperty( id ) ) && ! init.wp_skip_init ) { tinymce.init( init ); if ( ! window.wpActiveEditor ) { window.wpActiveEditor = id; } } } } if ( typeof quicktags !== 'undefined' ) { for ( id in tinyMCEPreInit.qtInit ) { quicktags( tinyMCEPreInit.qtInit[id] ); if ( ! window.wpActiveEditor ) { window.wpActiveEditor = id; } } } }()); </script> <div id="wp-link-backdrop" style="display: none"></div> <div id="wp-link-wrap" class="wp-core-ui" style="display: none" role="dialog" aria-labelledby="link-modal-title"> <form id="wp-link" tabindex="-1"> <input type="hidden" id="_ajax_linking_nonce" name="_ajax_linking_nonce" value="d9c37c58cf" /> <h1 id="link-modal-title">插入或编辑链接</h1> <button type="button" id="wp-link-close"><span class="screen-reader-text">关闭</span></button> <div id="link-selector"> <div id="link-options"> <p class="howto" id="wplink-enter-url">输入目标URL</p> <div> <label><span>URL</span> <input id="wp-link-url" type="text" aria-describedby="wplink-enter-url" /></label> </div> <div class="wp-link-text-field"> <label><span>链接文本</span> <input id="wp-link-text" type="text" /></label> </div> <div class="link-target"> <label><span></span> <input type="checkbox" id="wp-link-target" /> 在新标签页中打开链接</label> </div> </div> <p class="howto" id="wplink-link-existing-content">或链接到站点中的内容</p> <div id="search-panel"> <div class="link-search-wrapper"> <label> <span class="search-label">搜索</span> <input type="search" id="wp-link-search" class="link-search-field" autocomplete="off" aria-describedby="wplink-link-existing-content" /> <span class="spinner"></span> </label> </div> <div id="search-results" class="query-results" tabindex="0"> <ul></ul> <div class="river-waiting"> <span class="spinner"></span> </div> </div> <div id="most-recent-results" class="query-results" tabindex="0"> <div class="query-notice" id="query-notice-message"> <em class="query-notice-default">未指定搜索条件。自动显示近期条目。</em> <em class="query-notice-hint screen-reader-text">搜索或使用上下方向键来选择一项。</em> </div> <ul></ul> <div class="river-waiting"> <span class="spinner"></span> </div> </div> </div> </div> <div class="submitbox"> <div id="wp-link-cancel"> <button type="button" class="button">取消</button> </div> <div id="wp-link-update"> <input type="submit" value="添加链接" class="button button-primary" id="wp-link-submit" name="wp-link-submit"> </div> </div> </form> </div> <script type='text/javascript' src='https://stats.wp.com/e-201734.js' async defer></script> <script type='text/javascript'> _stq = window._stq || []; _stq.push([ 'view', {v:'ext',j:'1:5.1',blog:'103644843',post:'839',tz:'0',srv:'www.sealyu.com'} ]); _stq.push([ 'clickTrackerInit', '103644843', '839' ]); </script> </body> </html>