Welcome to this Blog. This blog is about some Blogger Design Tips and is for my personal used. IF you have come have, just see.Everything at there were copyright from many web and some is my thing=)
Although many things were copy from but also have this word give all of you, Don't be a Copycat! always copied anything.
Just like that, Thankview=)

Nice Looking around at here.

Friday, September 3, 2010

★ 簡單

簡單。。[[ 去html/javascript ]] PASTE !!

1.sharebar 

<script src="http://sharebar.addthiscdn.com/v1/sharebar.js" type="text/javascript"></script>

2.back to up scroll

<a href='#' style='display:scroll;position:fixed;bottom:5px;right:5px;' title='Back to Top'><img src='图片网址'/></a>

把 [[ 圖片網址 ]]
換成 下面這個

小 :https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuaUZJ3NBgmrwxsRRzqpPP-26EEiG61r0OacGgBs-0inxCTz-7UxWmts0fa60SRgxLofeQyFJ5QVjf31whxHgpW9RasFsHHSPTNN7EEb1FAb_cb_d1-vNHZXf-jCIKF79HpacNFs1YyN0B/s1600/bttp-3.png

大點 : https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCWSzM6IsddwxkjVqKHzv9JYM1gcq9zoQ1JW-9s4eqyMvC9QDd9Ba0AvNb4dggpHrmNT_2dc84roiYKv6AmstTtqcbx_vihMjCsMQ90eiY47m_0IbwwTKTcYtgs7SCBsUJriIz-3HQfxcU/s400/bttp-14.png


3.pop up [[ 一開的時候 ]]

<script> function MYALERT() {
alert("上了贼船~就要Follow哦~"); } MYALERT()
</script>

4.no right click

<script language="JavaScript">
<!--


//Disable right mouse click Script


var message="偷东西啊///[ No Right Click ]";


///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}


function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}


if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}


document.oncontextmenu=new Function("alert(message);return false")


// -->
</script>


5.訪客計時器 [[ 你逗留了幾秒 ]]

<form name="myform">
<td valign="top" width="135">
<input value="在线时间" name="clock" size="8"/></td>
</form>
<script language="JavaScript">
var id, iM = 0, iS = 1;
start = new Date();
function go()
{
now = new Date();
time = (now.getTime() - start.getTime()) / 1000;
time = Math.floor( time);
iS = time % 60;
iM = Math.floor( time / 60);
if ( iS < 10)
document.myform.clock.value = " " + iM + " 分 0" + iS + " 秒";
else
document.myform.clock.value = " " + iM + " 分 " + iS + " 秒";
id = setTimeout( "go()", 1000);
}
go();
</script>

6.摩天輪 [[ 黑 ]]

時鐘
<center><a href="http://kenchyclass.blogspot.com/" target="_blank"><embed height="250" src="http://img112.imageshack.us/img112/1673/33506637jl7.swf" type="application/x-shockwave-flash" width="210" wmode="transparent"></embed></a></center>

文字
<center><a href="http://kenchyclass.blogspot.com/" target="_blank"><embed flashvars="Txt=第一段话文字#第二段话文字" height="180" src="http://img509.imageshack.us/img509/8486/35193766cr3.swf" type="application/x-shockwave-flash" width="200" wmode="transparent"></embed></a></center>

7. 鼠标效果(飘浮文字)


<script language="javascript">




var text='将你的字打在这';


var delay=40;
var Xoff=0;
var Yoff=-30;
var txtw=14;
var beghtml='<font color="#00436e"><b>';
var endhtml='</b></font>';


ns4 = (navigator.appName.indexOf("Netscape")>=0 && document.layers)? true : false;
ie4 = (document.all && !document.getElementById)? true : false;
ie5 = (document.all && document.getElementById)? true : false;
ns6 = (document.getElementById && navigator.appName.indexOf("Netscape")>=0 )? true: false;
var txtA=new Array();
text=text.split('');
var x1=0;
var y1=-1000;
var t='';


for(i=1;i<=text.length;i++){
t+=(ns4)? '<layer name="txt'+i+'" top="-100" left="0" width="'+txtw+'" height="1">' : '<div id="txt'+i+'" style="position:absolute; top:-100px; left:0px; height:1px; width:'+txtw+'; visibility:visible;">';
t+=beghtml+text[i-1]+endhtml;
t+=(ns4)? '</layer>' : '</div>';
}
document.write(t);


function moveid(id,x,y){
if(ns4)id.moveTo(x,y);
else{
id.style.left=x+'px';
id.style.top=y+'px';
}}


function animate(evt){
x1=Xoff+((ie4||ie5)?event.clientX+document.body.scrollLeft:evt.pageX);
y1=Yoff+((ie4||ie5)?event.clientY+document.body.scrollTop:evt.pageY);
}


function getidleft(id){
if(ns4)return id.left;
else return parseInt(id.style.left);
}


function getidtop(id){
if(ns4)return id.top;
else return parseInt(id.style.top);
}


function getwindowwidth(){
if(ie4||ie5)return document.body.clientWidth+document.body.scrollLeft;
else return window.innerWidth+pageXOffset;
}


function movetxts(){
for(i=text.length;i>1;i=i-1){
if(getidleft(txtA[i-1])+txtw*2>=getwindowwidth()){
moveid(txtA[i-1],0,-1000);
moveid(txtA[i],0,-1000);
}else moveid(txtA[i], getidleft(txtA[i-1])+txtw, getidtop(txtA[i-1]));
}
moveid(txtA[1],x1,y1);
}


window.onload=function(){
for(i=1;i<=text.length;i++)txtA[i]=(ns4)?document.layers['txt'+i]:(ie4)?document.all['txt'+i]:document.getElementById('txt'+i);
if(ns4)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=animate;
setInterval('movetxts()',delay);
}
</script>


8.標題滾動

<script language="javascript">
<!--
var tx = new Array (
"将你要的标题打在这",
"要加多一个的话就像这样");


var txcount=1;//1代表你只打1行,2行就打2


var i=1;
var wo=0;
var ud=1;
function animatetitle()
{
window.document.title=tx[wo].substr(0, i)+"_";
if (ud==0) i--;
if (ud==1) i++;
if (i==-1) {ud=1;i=0;wo++;wo=wo%txcount;}
if (i==tx[wo].length+10) {ud=0;i=tx[wo].length;}
// if (window.document.title.length < 20 ) window.document.title=window.document.title+"-";
// if (window.document.title.length == 20 ) window.document.title=window.document.title+"]";
// if (window.document.title.length == 21 ) setTimeout("window.document.title='Animierte Seitentitel '; ",1000);


parent.window.document.title=tx[wo].substr(0, i)+"_";
setTimeout("animatetitle()",200);
}


animatetitle();


// -->


</script>





== FINISH ==

No comments:

Post a Comment