Anton の Blog
技术落伍
anton 发表于 2008-04-27 11:16:28
前两天把网友改了个模板,后来去看的时候发现他那个8BOX不错。
自己用后的确不错。功能也恰到好处,力挺一下。。。
想来现在的网页好看的都要FLASH的,自己的技术看来落伍了好多,
看到FLASH的源码都不会改的,落伍了,落伍了。
顺便做个链接,看看力作。。
silas.ycool.com
对YCOOL改动无语
anton 发表于 2008-04-27 11:10:12
好久没来怎么变成这个样子了,好不容易改回来了,估计也是暂时的。
YCOOL啊YCOOL。。。
增加功能的初衷是好的,但也不至于这么不负责任的把大家的图片都改的一塌糊涂吧。
也不事先做个调查。。。
WHEN YOU WERE YOUNG
虫虫 发表于 2007-12-11 09:23:47
歌手:the killers 专辑:sam's town
You sit there in your heartache
Waiting on some beautiful boy to
To save you from your old ways
You play forgiveness
Watch it now
Here he comes
He doesnt look a thing like Jesus
But he talks like a gentleman
Like you imagined
When you were young
Can we climb this mountain
I dont know
Higher now than ever before
I know we can make it if we take it slow
Let's take it easy
Easy now
Watch it go
We're burning down the highway skyline
On the back of a hurricane
That started turning
When you were young
When you were young
And sometimes you close your eyes
And see the place where you used to live
When you were young
They say the devil's water
It ain't so sweet
You dont have to drink right now
But you can dip your feet
Every once in a little while
You sit there in your heartache
Waiting on some beautiful boy to
To save you from your old ways
You play forgiveness
Watch it now
Here he comes
He doesnt look a thing like Jesus
But he talks like a gentleman
Like you imagined
When you were young
(talks like a gentleman)
(like you imagined)
When you were young
I said he doesnt look a thing like Jesus
He doesnt look a thing like Jesus
But more than you'll ever know
无聊到想吐的日子
虫虫 发表于 2007-08-22 23:13:52
刚刚无意中找到了两只小虫子的图片,有了个IDEA,就写了小钟的程序,打发无聊的时间咯!:)
<img id="sclock" src="http://foto.yculblog.com/anton/yellowminutes.gif" style="POSITION:absolute;left:0px"><br>
<img id="mclock" src="http://foto.yculblog.com/anton/yellowhours.gif" style="POSITION:absolute;left:0px"><br>
<img id="hclock" src="http://foto.yculblog.com/anton/yellowhours.gif" style="POSITION:absolute;left:0px"><br>
<img src="http://foto.yculblog.com/anton/yellowclock.gif" style="POSITION:absolute;left:0px">
<script language=javaScript>
<!--
function Times() {
thistime= new Date();
var hours=thistime.getHours();
if(hours>=12) hours-=12;
var minutes=thistime.getMinutes();
var seconds=thistime.getSeconds();
if(document.all) {
sclock.style.left = seconds*3;
mclock.style.left = minutes*3;
hclock.style.left = hours*15;
}
var timer=setTimeout("Times()",200)
}
Times();
//-->
</script>
幻灯片像册
虫虫 发表于 2007-08-18 21:34:34
其实我自己是不大用像册这个东西的,因为长得不帅,又特别讨厌拍照,所以根本就没什么照片可言,
不过我知道好多人都并非如此,所以今天琢磨着YCUL上加个像册之类的东西.
代码如下
<script language="javascript">
<!--
var npBase = "http://foto.yculblog.com/anton/np";
//此处设置了像册一的位置与一半的名字,像册一名称以np开头加数字,必须jpg,比如np0.jpg np1.jpg~np7.jpg
var npNum = 8;
//像册一的数目
var IDCtrl = 0;
var ID = 0;
var TimeOUT = null;
function PlayCho1(){
clearTimeout(TimeOUT);
npBase = "http://foto.yculblog.com/anton/np";
//此处设置了像册一的位置与一半的名字,像册一名称以np开头加数字,必须jpg,比如np0.jpg np1.jpg~np7.jpg
npNum = 8;
//像册一的数目
ID = 0;
CtrlID();
}
function PlayCho2(){
clearTimeout(TimeOUT);
npBase = "yellow/nnp";
//此处设置了像册二的位置与一半的名字,像册一名称以nnp开头加数字,必须jpg,比如nnp0.jpg nnp1.jpg~np3.jpg
npNum = 4;
//像册二的数目
ID = 0;
CtrlID();
}
function NpImg(){
imgNP.filters.BlendTrans.apply();
imgNP.src = npBase + ID +'.jpg';
imgNP.filters.BlendTrans.play();
UrlNP.href = npBase + ID +'.jpg';
}
function NpPlay(){
if(IDCtrl == 0){
clearTimeout(TimeOUT);
if(ID >= npNum) ID = 0;
NpImg();
ID++;
TimeOUT = setTimeout("NpPlay()", 7000);
}
}
function CtrlID(){
IDCtrl = 0;
NpPlay();
}
function PlayPre(){
clearTimeout(TimeOUT);
IDCtrl = 1;
if(ID <= 0) ID = npNum;
ID--;
NpImg();
TimeOUT = setTimeout("CtrlID()", 9000);
}
function PlayNext(){
clearTimeout(TimeOUT);
IDCtrl = 1;
ID++;
if(ID >= npNum) ID=0;
NpImg();
TimeOUT = setTimeout("CtrlID()", 9000);
}
//-->
</SCRIPT>
<div align=center style="width:100%;height:150px">
<a name=UrlNP target="_blank"><IMG src="javascript:NpPlay()" name=imgNP hspace=0 border=0 style="FILTER: BlendTrans(Duration=2); height: 100%;"></a>
//显示部分,可以根据自己的需要调节窗体的大小.
<br>
<br>
<img src="http://foto.yculblog.com/anton/leftarrow.gif" border=0 onClick="javascript:PlayPre()" style="cursor:hand" title="PreV"> <img src="http://foto.yculblog.com/anton/rightarrow.gif" border=0 onClick="javascript:PlayNext()" style="cursor:hand;" title="Next">
//两个按钮的图片
</div>
<br>
<br>
<a onClick="javascript:PlayCho1()" style="cursor:hand" title="change">像册一</a>
<a onClick="javascript:PlayCho2()" style="cursor:hand" title="change">像册二</a>
//像册的分类,对照上面自行添加
//另外大家注意图片的大小,为了美观和不至于发生溢处最好和窗体的比例一致
//纯属随便写写, 不好用的话希望不要挨骂
另一个版本,只是衔接的部分有所不同
<script language="javascript">
<!--
var npBase = "http://foto.yculblog.com/anton/np";
var npNum = 8;
var IDCtrl = 0;
var ID = 0;
var TimeOUT = null;
function PlayCho1(){
npBase = "http://foto.yculblog.com/anton/np";
npNum = 8;
var ID = 0;
CtrlID();
}
function PlayCho2(){
npBase = "http://foto.yculblog.com/anton/nnp";
npNum = 4;
var ID = 0;
CtrlID();
}
function NpImg(){
imgNP.filters.revealTrans.Transition=Math.floor(Math.random()*23);
imgNP.filters.revealTrans.apply();
imgNP.src = npBase + ID +'.jpg';
imgNP.filters.revealTrans.play();
UrlNP.href = npBase + ID +'.jpg';
}
function NpPlay(){
if(IDCtrl == 0){
clearTimeout(TimeOUT);
if(ID >= npNum) ID=0;
NpImg();
ID++;
TimeOUT = setTimeout("NpPlay()", 7000);
}
}
function CtrlID(){
IDCtrl = 0;
NpPlay();
}
function PlayPre(){
clearTimeout(TimeOUT);
IDCtrl = 1;
if(ID <= 0) ID = npNum;
ID--;
NpImg();
TimeOUT = setTimeout("CtrlID()", 9000);
}
function PlayNext(){
clearTimeout(TimeOUT);
IDCtrl = 1;
ID++;
if(ID >= npNum) ID=0;
NpImg();
TimeOUT = setTimeout("CtrlID()", 9000);
}
//-->
</SCRIPT>
<div align=center style="width:100%;height:150px">
<a name=UrlNP target="_blank"><IMG src="javascript:NpPlay()" name=imgNP hspace=0 border=0 style="FILTER: revealTrans(duration=2,transition=20); height: 100%;"></a>
<br>
<br>
<img src="http://foto.yculblog.com/anton/leftarrow.gif" border=0 onClick="javascript:PlayPre()" style="cursor:hand" title="PreV"> <img src="http://foto.yculblog.com/anton/rightarrow.gif" border=0 onClick="javascript:PlayNext()" style="cursor:hand;" title="Next">
</div>
<br>
<br>
<a onClick="javascript:PlayCho1()" style="cursor:hand" title="change">像册一</a>
<a onClick="javascript:PlayCho2()" style="cursor:hand" title="change">像册二</a>
无题
虫虫 发表于 2007-08-10 23:25:24
明天和老婆一起出去吧,看看电影也好,上次的变形金刚还不错,这两天不知道有什么好看的.
这年头找一种让人心悦的消遣方式还真困难,尤其是我这种病入膏肓的.
模版做来做去,觉得都没什么进步了.
面前似乎什么都止住了,停止不前生活.几乎无法印证时间的流淌.
罢了!看电视去了......
大功告成 请大家刷我老婆的BLOG
虫虫 发表于 2007-07-30 21:52:06
karana.yculblog.com