聊天室隐藏法$BlogItemTitle$>
2/03/2011$BlogDateHeaderDate$> at 20:12$BlogItemDateTime$>
首先看个图:
把聊天室隐藏起来就是像上图这样子的放到旁边
平常我们都是把它放在homepage那边,现在换个方法
看起来不会比较乱的(如果blog真的有很多东西的话...
如上图:
把代表聊天室的图片按了后,聊天室就从旁边出来了
步骤:
1:<style type="text/css">
#gb{
position:fixed;
top:50px;
z-index:+1000;
}
* html #gb{position:relative;}
.gbtab{
height:100px;
width:30px;
float:left;
cursor:pointer;
background:url('http://i.imgur.com/IHwwt.png') no-repeat;
}
.gbcontent{
float:left;
border:2px solid #666666;
background:#F5F5F5;
padding:10px;
}
</style>
<script type="text/javascript">
function showHideGB(){
var gb = document.getElementById("gb");
var w = gb.offsetWidth;
gb.opened ? moveGB(0, 30-w) : moveGB(20-w, 0);
gb.opened = !gb.opened;
}
function moveGB(x0, xf){
var gb = document.getElementById("gb");
var dx = Math.abs(x0-xf) > 10 ? 5 : 1;
var dir = xf>x0 ? 1 : -1;
var x = x0 + dx * dir;
gb.style.right = x.toString() + "px";
if(x0!=xf){setTimeout("moveGB("+x+", "+xf+")", 10);}
}
</script>
<div id="gb">
<div class="gbtab" onclick="showHideGB()"> </div>
<div class="gbcontent">
CODE SHOUTBOX
<div style="text-align:right">
<a href="javascript:showHideGB()">
[close]
</a>
</div>
</div>
</div>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.right = (30-gb.offsetWidth).toString() + "px";
</script>
2:copy以上代码到HTML/JAVASCRIPT
3:copy你的聊天室的代码
4:paste进去[步骤1]的代码里(里面有指示)
*不要跟我贴了下去以后就直接保存啊,代码里面还要放你chatbox/shoutmix HTML的,看清楚来~
*图片可自行换
++++++++++++++++++++新年快乐!!++++++++++++++++++++
这代码有没有错,有没有对我不知道哈
我要feedback feedback =)
source: Cerita Hannafauzann Labels: 部落教学 $BlogItemBody$>
9 lovely comments
9 Comments:$BlogItemCommentCount$>
DAEBAK ^^$BlogCommentBody$>
$BlogCommentDeleteIcon$>
y my blog cant appear tis efect d?$BlogCommentBody$>
$BlogCommentDeleteIcon$>
我还是做不到><$BlogCommentBody$>
$BlogCommentDeleteIcon$>
请问要怎要换cbox的背景?/$BlogCommentBody$>
$BlogCommentDeleteIcon$>
http://my-style-my-story.blogspot.com/2010/07/cbox.html hope can help u =D$BlogCommentBody$>
$BlogCommentDeleteIcon$>
thk ya$BlogCommentBody$>
$BlogCommentDeleteIcon$>
paste进去[步骤1]的代码里(里面有指示) 是paste在哪里?$BlogCommentBody$>
$BlogCommentDeleteIcon$>
[ur shoutmix/chatbox code paste here] 蓝色highlight那个,把你的聊天室代码paste进去$BlogCommentBody$>
$BlogCommentDeleteIcon$>
请问。。。要怎么把图片跟chatbox拉靠近一些???太出来了><$BlogCommentBody$>
$BlogCommentDeleteIcon$>
$BlogItemCreate$>
|
聊天室隐藏法$BlogItemTitle$>
2/03/2011$BlogDateHeaderDate$> at 20:12 $BlogItemDateTime$>
首先看个图:
把聊天室隐藏起来就是像上图这样子的放到旁边
平常我们都是把它放在homepage那边,现在换个方法
看起来不会比较乱的(如果blog真的有很多东西的话...
如上图:
把代表聊天室的图片按了后,聊天室就从旁边出来了
步骤:
1:<style type="text/css">
#gb{
position:fixed;
top:50px;
z-index:+1000;
}
* html #gb{position:relative;}
.gbtab{
height:100px;
width:30px;
float:left;
cursor:pointer;
background:url('http://i.imgur.com/IHwwt.png') no-repeat;
}
.gbcontent{
float:left;
border:2px solid #666666;
background:#F5F5F5;
padding:10px;
}
</style>
<script type="text/javascript">
function showHideGB(){
var gb = document.getElementById("gb");
var w = gb.offsetWidth;
gb.opened ? moveGB(0, 30-w) : moveGB(20-w, 0);
gb.opened = !gb.opened;
}
function moveGB(x0, xf){
var gb = document.getElementById("gb");
var dx = Math.abs(x0-xf) > 10 ? 5 : 1;
var dir = xf>x0 ? 1 : -1;
var x = x0 + dx * dir;
gb.style.right = x.toString() + "px";
if(x0!=xf){setTimeout("moveGB("+x+", "+xf+")", 10);}
}
</script>
<div id="gb">
<div class="gbtab" onclick="showHideGB()"> </div>
<div class="gbcontent">
CODE SHOUTBOX
<div style="text-align:right">
<a href="javascript:showHideGB()">
[close]
</a>
</div>
</div>
</div>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.right = (30-gb.offsetWidth).toString() + "px";
</script>
2:copy以上代码到HTML/JAVASCRIPT
3:copy你的聊天室的代码
4:paste进去[步骤1]的代码里(里面有指示)
*不要跟我贴了下去以后就直接保存啊,代码里面还要放你chatbox/shoutmix HTML的,看清楚来~
*图片可自行换
++++++++++++++++++++新年快乐!!++++++++++++++++++++
这代码有没有错,有没有对我不知道哈
我要feedback feedback =)
source: Cerita Hannafauzann Labels: 部落教学 $BlogItemBody$>
9 Comments:$BlogItemCommentCount$>
DAEBAK ^^$BlogCommentBody$>
$BlogCommentDeleteIcon$>$BlogCommentAuthor$>
y my blog cant appear tis efect d?$BlogCommentBody$>
$BlogCommentDeleteIcon$>$BlogCommentAuthor$>
我还是做不到><$BlogCommentBody$>
$BlogCommentDeleteIcon$>$BlogCommentAuthor$>
请问要怎要换cbox的背景?/$BlogCommentBody$>
$BlogCommentDeleteIcon$>$BlogCommentAuthor$>
http://my-style-my-story.blogspot.com/2010/07/cbox.html hope can help u =D$BlogCommentBody$>
$BlogCommentDeleteIcon$>$BlogCommentAuthor$>
thk ya$BlogCommentBody$>
$BlogCommentDeleteIcon$>$BlogCommentAuthor$>
paste进去[步骤1]的代码里(里面有指示) 是paste在哪里?$BlogCommentBody$>
$BlogCommentDeleteIcon$>$BlogCommentAuthor$>
[ur shoutmix/chatbox code paste here] 蓝色highlight那个,把你的聊天室代码paste进去$BlogCommentBody$>
$BlogCommentDeleteIcon$>$BlogCommentAuthor$>
请问。。。要怎么把图片跟chatbox拉靠近一些???太出来了><$BlogCommentBody$>
$BlogCommentDeleteIcon$>$BlogCommentAuthor$>
$BlogItemCreate$>
|
Post a Comment