WordPress: Template Tags/comments popup script:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
 
第1行: 第1行:
== Description ==
== 描述==
== 描述==


Outputs the [[WordPress:Glossary#JavaScript|JavaScript]] code for a comments popup window. Used in tandem with [[WordPress:Template_Tags/comments_popup_link|comments_popup_link()]], this tag can be used anywhere within a template, though is typically placed within the <head> portion of a page.
为一个评论弹出窗口,提供[[WordPress:Glossary#JavaScript|JavaScript]]编码。与[[WordPress:Template_Tags/comments_popup_link|comments_popup_link()]]用在一起,这个标签可以用在一个模板的任何位置,但是通常是放在一个网页的<head>部分的内部。
 
为一个评论弹出窗口,提供[[WordPress:Glossary#JavaScript|JavaScript]]编码。与[[WordPress:Template_Tags/comments_popup_link|评论_弹出_链接()]]用在一起,这个标签可以用在一个模板的任何位置,但是通常是放在一个网页的<head>部分的内部。
 
== Usage ==
 
== 用法==
== 用法==


%%% <?php comments_popup_script(width, height); ?> %%%
%%% <?php comments_popup_script(width, height); ?> %%%
%%% <?php comments_popup_script(width, height); ?> %%%
== Example ==


==例子==
==例子==
Sets the popup window's width to 400 pixels, and height to 500 pixels.


将弹窗口的宽度设置为400像素,高度设置为500像素。
将弹窗口的宽度设置为400像素,高度设置为500像素。
<?php comments_popup_script(400, 500); ?>


<?php comments_popup_script(400, 500); ?>
<?php comments_popup_script(400, 500); ?>
== Parameters ==


== 参数 ==
== 参数 ==


; width : (''integer'') The width of the popup window. Defaults to <tt>400</tt> (pixels).
; width : (''integer'') 弹出窗口的宽度。默认为<tt>400</tt> (像素)。
; height: (''integer'') The height of the popup window. Defaults to <tt>400</tt> (pixels).
; height: (''integer'')弹出窗口的高度。默认为<tt>400</tt> (像素)。
 
 
; 宽度 : (''整数'') 弹出窗口的宽度。默认为<tt>400</tt> (像素)。
; 高度: (''整数'') 弹出窗口的高度。默认为<tt>400</tt> (像素)。
 
 
== Related ==
 
{{Tag Comments Tags}}


{{PHP Function Tag Footer}}
== 相关的 ==
== 相关的 ==



2008年7月11日 (五) 11:34的最新版本

描述[ ]

为一个评论弹出窗口,提供JavaScript编码。与comments_popup_link()用在一起,这个标签可以用在一个模板的任何位置,但是通常是放在一个网页的<head>部分的内部。

用法[ ]

%%% <?php comments_popup_script(width, height); ?> %%%

例子[ ]

将弹窗口的宽度设置为400像素,高度设置为500像素。

<?php comments_popup_script(400, 500); ?>

参数[ ]

width
(integer) 弹出窗口的宽度。默认为400 (像素)。
height
(integer)弹出窗口的高度。默认为400 (像素)。

相关的[ ]

comments_number, comments_link, comments_rss_link, comments_popup_script, comments_popup_link, comment_ID, comment_author, comment_author_IP, comment_author_email, comment_author_url, comment_author_email_link, comment_author_url_link, comment_author_link, comment_type, comment_text, comment_excerpt, comment_date, comment_time, comments_rss_link, comment_author_rss, comment_text_rss, comment_link_rss, permalink_comments_rss

模板:PHP 函数 标签 页底文字