Php 以字幕代码显示类别库的突发新闻节目
我有一个最近发布的字幕代码,我想用类别库进行更改。假设我选择了特色类别。我想在这个字幕代码中显示最近10个特色类别的帖子标题 我最近的邮政编码如下Php 以字幕代码显示类别库的突发新闻节目,php,javascript,jquery,marquee,Php,Javascript,Jquery,Marquee,我有一个最近发布的字幕代码,我想用类别库进行更改。假设我选择了特色类别。我想在这个字幕代码中显示最近10个特色类别的帖子标题 我最近的邮政编码如下 <marquee width="820px" style="font-size: 12pt; height:32px;padding-bottom: 10px;" behavior="scroll" direction="left" bgcolor="#DEE9FB" scrollamount="2" scrolldelay="60" onmo
<marquee width="820px" style="font-size: 12pt; height:32px;padding-bottom: 10px;" behavior="scroll" direction="left" bgcolor="#DEE9FB" scrollamount="2" scrolldelay="60" onmouseover="this.stop()" onmouseout="this.start()"><?php $latest = get_posts('numberposts='.$bnews_options["BnEnumber"].'&offset='.$bnews_options["BnPostSkip"].'&cat='.$bnews_options["BnCatID"]); foreach( $latest as $post ): ?
<img src="http://hostshine.net/wp-content/uploads/2013/02/dot.png"> </font><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><?php endforeach; ?></marquee>
对于do it类别库,我可以更改哪些代码?您可以使用此代码。但请记住,我不支持你使用字幕代码
<marquee width="820px" style="font-size: 12pt; height:32px;padding-bottom: 10px;" behavior="scroll" direction="left" bgcolor="#DEE9FB" scrollamount="2" scrolldelay="60" onmouseover="this.stop()" onmouseout="this.start()"><?php query_posts('category_name=wordpress&showposts=5'); ?><?php while (have_posts()) : the_post(); ?><li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li><?php endwhile; ?></marquee>
请不要使用字幕