• 下面这一句是用来显示WP的分类清单:
    wp_list_cats();
    但这句函数式还贴心的替使用者保留了不少设定.
    例如下面这句就是告诉它我的分类要依照名称排序、并显示拥有的文章数量、而且分类之后要显示分类RSS连结。
    wp_list_cats("sort_column=name&optioncount=1&feed=RSS");
    除开头的第一个项目之外,每个项目名称之前必须加上一个「&」记号。

    各个自设选项列表如下

    sort_column
    ID或name,预设为‘ID
    分别为依ID值或分类名称排序

    sort_order
    asc或desc,预设为递增asc
    排序递增或递减

    list
    0或1,预设为以清单方式显示: 1
    设定是否以清单方式显示?
    将会在分类上加上<ul> <li>

    optiondates
    0或1,预设为不显示: 0
    设定是否显示每个分类下最新发表文章的发表日期?

    optioncount
    0或1,预设为不显示: 0
    是否显示分类所拥有的文章计数?

    hide_empty
    0或1,预设为隐藏: 1
    设定是否隐藏无文章的分类?

    use_desc_for_title
    0或1,预设为显示成分类说明: 1
    设定分类连结的title是否显示为分类说明?
    <a title="分类说明" href="…>

    children
    0或1,预设为显示: 1
    是否显示子分类

    hierarchical
    0或1,预设为层级方式显示: 1
    子分类是否以层级方式显示

    child_of
    无预设值
    只显示某项分类(ID)的子分类
    child_of=分类ID值
    有设定此项目的话,hide_empty要设为0

    exclude
    无预设值
    设定不要显示的分类ID,可为复数
    如exclude=ID1,ID2,ID3,…..

    feed
    无预设值
    设定分类RSS的显示文字
    如feed=RSS
    如果这个项目有设定的话,分类之后将会显示分类Feed的连结

    feed_image
    无预设值
    设定分类RSS的图片路径
    如feed=images/rss.gif
    如果同时有设定feed_image与feed,则将以feed_image为主

    参考文件Template Tags/wp list cats « WordPress Codex
  • 2007-10-20滚动代码 - [代码]

    <marquee bgcolor="#ffffff"  behavior=scroll direction=up scrollamount=1 align="left"  style="text-indent:0px; width:120px;height:30px;color:#CCCCCC; font-size: 12px"> 要滚动的内容 </marquee>
  • 2007-10-20收藏到的代码 - [代码]

    <strong>收藏到:</strong>
    <a href="javascript:window.open('http://cang.baidu.com/do/add?it='+encodeURIComponent(document.title.substring(0,76))+'&iu='+encodeURIComponent(location.href)+'&fr=ien#nw=1','_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0" title="百度收藏">百度收藏</a>

    <a href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)" title="QQ书签">QQ书签</a>

    <a href="#" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=780,height=550,left=80,top=80,status=yes,resizable=yes');">雅虎收藏</a>


    <a href="javascript:location.href='http://www.google.com/bookmarks/mark?op=add&bkmk='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)" target="_blank">Google书签</a>

    <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();">新浪ViVi</a>


    <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();">365Key</a>

    <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(yesky=window.open('http://hot.yesky.com/dp.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t)+'&st=2','yesky','scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes'));yesky.focus();">天极网摘</a> 

     <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://my.poco.cn/fav/storeIt.php?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t)+'&img=http://www.h-strong.com/blog/logo.gif','keyit','scrollbars=no,width=475,height=575,status=no,resizable=yes'));keyit.focus();">POCO网摘</a>

    <a href="javascript:t=document.title;u=location.href;e=document.selection?(document.selection.type!='None'?document.selection.createRange().text:''):(document.getSelection?document.getSelection():'');void(open('http://bookmark.hexun.com/post.aspx?title='+escape(t)+'&url='+escape(u)+'&excerpt='+escape(e),'HexunBookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));">和讯网摘</a>

    <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('http://www.bolaa.com/CommendBlog/SmallLogin.aspx?title='+escape(d.title)+'&newspath='+escape(d.location.href)+'&subtitle='+escape(t),'bolaa','width=400px,height=400px'));blog.focus();">博拉推荐</a>

     <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.cn3.cn/user/addurl.asp?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=490,height=450,left=120,top=50,status=no,resizable=yes'));keyit.focus();">天下图摘</a>

    <a href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)" target="_blank">digg发现</a>

    <a href="javascript:location.href='http://del.icio.us/post?&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)" target="_blank">Del.icio.us</a>

  • 首先先提供两种代码:
      
    代码一:
    <script language="javascript">
    <!--
    function statusMessageObject(p,d) {
    this.msg = MESSAGE
    this.out = " "
    this.pos = POSITION
    this.delay = DELAY
    this.i = 0
    this.reset = clearMessage
    }
    function clearMessage() {
    this.pos = POSITION
    }
    var POSITION = 100
    var DELAY = 5
    var MESSAGE = "γ蚊ж子ま的情感世界欢迎您的光临!请您多提意见,谢谢!"
    var scroll = new statusMessageObject()
    function scroller() {
    for (scroll.i = 0; scroll.i < scroll.pos; scroll.i++) {
    scroll.out += " "
    }
    if (scroll.pos >= 0)
    scroll.out += scroll.msg
    else scroll.out = scroll.msg.substring(-scroll.pos,scroll.msg.length)
    window.status = scroll.out
    scroll.out = " "
    scroll.pos--
    if (scroll.pos < -(scroll.msg.length)) {
    scroll.reset()
    }
    setTimeout ('scroller()',scroll.delay)
    }
    function snapIn(jumpSpaces,position) {
    var msg = scroll.msg
    var out = ""
    for (var i=0; i<position; i++)
    {out += msg.charAt(i)}
    for (i=1;i<jumpSpaces;i++)
    {out += " "}
    out += msg.charAt(position)
    window.status = out
    if (jumpSpaces <= 1) {
    position++
    if (msg.charAt(position) == ' ')
    {position++ }
    jumpSpaces = 100-position
    } else if (jumpSpaces > 3)
    {jumpSpaces *= .75}
    else
    {jumpSpaces--}
    if (position != msg.length) {
    var cmd = "snapIn(" + jumpSpaces + "," + position + ")";
    scrollID = window.setTimeout(cmd,scroll.delay);
    } else {
    window.status=""
    jumpSpaces=0
    position=0
    cmd = "snapIn(" + jumpSpaces + "," + position + ")";
    scrollID = window.setTimeout(cmd,scroll.delay);
    return false
    }
    return true
    }
    snapIn(100,0);
    // -->
    </script>

    效果是所要显示的文字在状态栏上一个一个地从右向左飞动!具体效果请参看此地址里所演示的:http://haobeizhan.go3.icpcn.com/zhuangtailan/gegefeidong.txt

    代码二:
    <script language="javascript">
    var msg = "γ蚊ж子ま的情感世界欢迎您的光临!请您多提意见,谢谢!" ;
    var interval = 120
    var spacelen = 120;
    var space10=" ";
    var seq=0;
    function Helpor_net() {
    len = msg.length;
    window.status = msg.substring(0, seq+1);
    seq++;
    if ( seq >= len ) {
    seq = 0;
    window.status = '';
    window.setTimeout("Helpor_net();", interval );
    }
    else
    window.setTimeout("Helpor_net();", interval );
    }
    Helpor_net();
    </script>

    效果是文字在状态栏上从左往右一个一个地显示,就象一个一个打出的字一样!具体效果请参看此地址里所演示的:http://haobeizhan.go3.icpcn.com/zhuangtailan/congzuowangyou.txt

    代码是有了,但是别急,这些代码是不能直接弄到新浪博客上的!心急的朋友可以先把这两段代码拿到此网站:http://zj16888.91.tc/zhq/888.htm去测试一下具体实际效果!

    接下来要新建一个txt文本,其实就是记事本了,然后把代码复制进去,其中代码中将在状态栏上显示的的文字效果“γ蚊ж子ま的情感世界欢迎您的光临!请您多提意见,谢谢!”要改成你自己的文字。当然不能太贪心了,只能复制其中的一种代码。

    注意:此文本的名字要用英文或者数字的,不能用中文,要不然最后会没效果的!

    接下来得把这个刚刚建好的txt文本传到一个网络硬盘,是不是纳闷了,网络硬盘是个什么东西?哪有?不用担心,我手头上所知道的有三个网络硬盘都是免费的!

    其一就是海川网络PC:http://www.pc54.com/,该网站免费提供30M的空间,但是我个人这个网站提供的网络硬盘不好用,主要是速度太慢了!
    其二就是中联网:http://home.3326.com/,该网站免费提供100M的空间,单个文件上传大小最大为3M,速度较快,但是申请比较烦琐了一点,一般人可能不知道具体什么申请,不过你如果有耐心,慢慢摸索的话是没有问题的!
    其三就是www.ik8.com,该网站免费提供1G空间,申请很方便,而且速度也还行,建议使用这个网络硬盘!

    我个人用的用的是中联网的!由于时间原因,这里就不一一介绍怎么申请了!把txt文本上传到网络硬盘之后获得它的网络路径,即URL地址!然后把这个地址代入到下面这段代码中:

    <IFRAME marginWidth=0 marginHeight=0 src="文本URL地址" frameBorder=0 width=0 scrolling=no height=0></IFRAME>

    这段代码才是要弄到新浪模板上的代码,就此就完成了弄代码的整个过程。
  • <script>

    var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
    var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

    function getthedate(){
    var mydate=new Date()
    var year=mydate.getYear()
    if (year < 1000)
    year+=1900
    var day=mydate.getDay()
    var month=mydate.getMonth()
    var daym=mydate.getDate()
    if (daym<10)
    daym="0"+daym
    var hours=mydate.getHours()
    var minutes=mydate.getMinutes()
    var seconds=mydate.getSeconds()
    var dn="AM"
    if (hours>=12)
    dn="PM"
    if (hours>12){
    hours=hours-12
    }
    if (hours==0)
    hours=12
    if (minutes<=9)
    minutes="0"+minutes
    if (seconds<=9)
    seconds="0"+seconds
    //change font size here
    var cdate="<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn
    +"</b></font></small>"
    if (document.all)
    document.all.clock.innerHTML=cdate
    else
    document.write(cdate)
    }
    if (!document.all)
    getthedate()
    function goforit(){
    if (document.all)
    setInterval("getthedate()",1000)
    }

    </script>
    <body onload="goforit()">
    <span id="clock"></span>