WordPress: Template Tags/comments popup script:修订间差异
来自站长百科
无编辑摘要 |
无编辑摘要 |
||
第1行: | 第1行: | ||
== 描述== | == 描述== | ||
为一个评论弹出窗口,提供[[WordPress:Glossary#JavaScript|JavaScript]]编码。与[[WordPress:Template_Tags/comments_popup_link|comments_popup_link()]]用在一起,这个标签可以用在一个模板的任何位置,但是通常是放在一个网页的<head>部分的内部。 | |||
为一个评论弹出窗口,提供[[WordPress:Glossary#JavaScript|JavaScript]]编码。与[[WordPress:Template_Tags/comments_popup_link| | |||
== 用法== | == 用法== | ||
%%% <?php comments_popup_script(width, height); ?> %%% | %%% <?php comments_popup_script(width, height); ?> %%% | ||
==例子== | ==例子== | ||
将弹窗口的宽度设置为400像素,高度设置为500像素。 | 将弹窗口的宽度设置为400像素,高度设置为500像素。 | ||
<?php comments_popup_script(400, 500); ?> | <?php comments_popup_script(400, 500); ?> | ||
== 参数 == | == 参数 == | ||
; width : (''integer | ; width : (''integer'') 弹出窗口的宽度。默认为<tt>400</tt> (像素)。 | ||
; height: (''integer'')弹出窗口的高度。默认为<tt>400</tt> (像素)。 | |||
; | |||
== 相关的 == | == 相关的 == | ||
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