Suddenly,this summer...


时 间 记 忆

最 新 评 论

站 内 搜 索

友 情 连 接
· 管理入口
· 我的另一个BLOG|More Than Words
· 灆銫貓眼|伱怺逺是我啲最愛
· St.wizard |Spirit Lodge
· 大尾巴狼|大尾巴狼杀人手册
订阅 RSS
0013232
歪酷博客
 
@ 2006-12-16 23:56

原来的歪酷的计数器是用图片显示的,不知道什么时候开始就只剩文字了。于是很多人都另外申请一个漂亮的计数器。
本文教你简单的使用自己的计数器图片,以歪酷的计数器的数值,来实现自己特色的计数器。
说明,计数器图片(0到9共10张)全部使用如下地址格式:
http://foto.yculblog.com/booker//0.gif
...
jpg等亦可,但是下边代码中红色标识处就得改成相应的。
主函数如下:
<script type="text/javascript">
<!--
function drawCnt(){
    var strImgCnt = "";    //计数器html字符串
    //计数器图片的基地址
    var baseurl = "http://www.test.com/";
    //按照ID取得计数器的div对象
    var ps = document.getElementById("counter");
    //取得计数器数值
    var nCnt = ps.innerHTML;
    var i = 0;
    //循环,按照每个数字,组合成一个图片串,存入strImgCnt
    for(i=0;i<nCnt.length;i++){
        strImgCnt = strImgCnt+"<img src=''"+baseurl+nCnt.charAt(i)+".gif'' alt=''0'' />";
    }
    //将计数器处的代码由数值替换成图片
    ps.innerHTML= strImgCnt;
}
//-->
</script>
以下是启动代码,加在<div id="counter">{counter}</div>之后,如果不是<div id="counter">{counter}</div>,请修改自己的{counter}处。当然,也可以不用这种方式,你用什么定义都无所谓,用<p>、<span>等均可,id设为"counter"即可。熟悉javascript的,我就不用解释过多了。
<script type="text/javascript">
<!--
    drawCnt();
//-->
</script>


 
@ 2006-12-16 23:54

/*===========日志标题连接=============*/
.post_title:visited {
  font-family: "Verdana";
 font-size: 14px; 
                  color: #000000;
              padding-left: 29px;
              padding-bottom: 14px;
              background: url(http://node2.foto.ycstatic.com/200705/14/4/17699476.jpg) no-repeat bottom left;}
.post_title:hover {
  font-family: "Verdana";
 font-size: 14px; 
                color: #808080;
              padding-left: 29px;
              padding-bottom: 14px;
              background: url(http://node2.foto.ycstatic.com/200705/14/4/17699476.jpg) no-repeat bottom left; text-decoration: none;position : relative; top : 1px; left :

1px;
}
.post_title:link {
  font-family: "Verdana";
 font-size: 14px; 
                            color: #000000;
              padding-left: 29px;
              padding-bottom: 14px;
              background: url(http://node2.foto.ycstatic.com/200705/14/4/17699476.jpg) no-repeat bottom left; }



 
@ 2006-12-16 23:51

如果想在文章底加一条分割线的话。
只要加入一句CSS代码就行!
代码:.post_footer      { border-bottom:solid 1px #cecece;padding-bottom:6px;}


 
@ 2005-08-23 22:56

边框样式 语法: border-style: <值>
  none:无样式;
  dotted:点线;
  dashed:虚线;
  solid:实线;
  double:双线;
  groove:槽线;
  ridge:脊线;
  inset:内凹;
  outset:外凸。

上边框  语法: border-top: <值>
右边框  语法: border-right: <值>
下边框  语法: border-bottom: <值>
左边框  语法: border-left: <值>
边框  语法: border: <值>


 
@ 2005-08-19 22:11

想让表格变得半透明:

<STYLE type=text/css>
<!--
table{FILTER: Alpha(opacity=80);}
-->
</STYLE>

括号中的透明数值可以根据需要调整。

背景图片固定在页面角上不动
<style>body {background-attachment: fixed; background-image: url(图象地址); background-repeat: no-repeat; background-position: right bottom}</style>

代码最后background-position还有两个选项:top和left。
可以单独使用,也可以象本例一样组合使用。
top:顶部
bottom:底部
left:左边
right:右边
top left:左上角
top right:右上角
right bottom:右下角
left bottom:左下角


 
@ 2005-08-18 23:16

鼠标样式一般用css代码修改,例如:

<style>BODY{cursor:url("鼠标文件地址");}</style>

(鼠标文件一般为.ani或者为.cur格式。)

也可以修改成常见的样式,例如只是修改成手形鼠标:

<style>BODY{cursor:hand}</style>

鼠标样式可以自己制作,推荐软件:Microangelo.


 
@ 2005-08-18 07:47

http://upload.jmqs.com/[感觉比较好]

http://www.freefilehosting.net/


 
@ 2005-08-18 07:44

<!-- BEGIN: last_followups -->
<!-- BEGIN: followups_row -->
{followups.post_time} <a href=post-{followups.post_id}.html#followups_{followups.id}>{followups.content_s}</a><br>
<!-- END: followups_row -->
<!-- END: last_followups -->

用于不是由歪酷本身模板改的模板。



 
@ 2005-08-14 17:09

<P>{你要的文字}&nbsp;&nbsp;&nbsp;<EMBED name=wma src=音乐地址 hidden=true type=audio/mpeg loop="true">&nbsp;<A href="javascript:document.wma.play()" target=_self>on</A> │ <A href="javascript:document.wma.stop()" target=_self>off</A>&nbsp;</P>
插入这个代码就可以咯
插入的位置我是用FP调整的.


 
@ 2005-08-12 19:27

<head>
<meta http-equiv="Page-Enter" content="blendTrans(Duration=1.0)">
<meta http-equiv="Page-Exit" content="blendTrans(Duration=1.0)">
<meta http-equiv="Site-Enter" content="blendTrans(Duration=1.0)">
<meta http-equiv="Site-Exit" content="blendTrans(Duration=1.0)">
</head>