1. Trang chủ
  2. » Giáo án - Bài giảng

CHÁT TRÊN BLOG CỦA BẠN -

2 162 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 2
Dung lượng 25,5 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

View shoutbox Blog giáo viên Thái Bình [Hide] var gb = document.getElementById"gb"; gb.style.right = 30-gb.offsetWidth.toString + "px"; 2.Hướng dẫn -Thay địa chỉ blog và tên Bl

Trang 1

<style type="text/css">

#gb{

position:fixed;

top:50px;

z-index:+1000;

}

* html #gb{position:relative;}

.gbtab{

height:150px;

width:30px;

float:left;

cursor:pointer;

background:url('http://farm3.static.flickr.com/2636/3935353655_32c6d2bb30_o.png') no-repeat;

}

.gbcontent{

float:left;

border:2px solid #990000;

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">

Trang 2

<iframe title="bloggiaovienthaibinh" src=

"http://www6.shoutmix.com/?bloggiaovienthaibinh" width="250"

height="400" frameborder="0" scrolling="auto"><a href=

"http://www6.shoutmix.com/?bloggiaovienthaibinh">View

shoutbox</a></iframe><br>

<a href="http://bloggiaovienthaibinh.110mb.com/flash/index.html"

title="trongbang-studio">Blog giáo viên Thái Bình </a><br>

<div style="text-align:right">

<a href="javascript:showHideGB()">

[Hide]

</a>

</div>

</div>

</div>

<script type="text/javascript">

var gb = document.getElementById("gb");

gb.style.right = (30-gb.offsetWidth).toString() + "px";

</script>

2.Hướng dẫn

-Thay địa chỉ blog và tên Blog trênở dòng sau

<a href="http://bloggiaovienthaibinh.110mb.com/flash/index.html"

title="trongbang-studio">Blog giáo viên Thái Bình </a><br>

-Các bạn coppy code cho vào thẻ body với blog violet thì cho vào thông tin bản quyền hoặc vào khối nào đó

Chúc các thầy cô và các bạn thành công

Ngày đăng: 07/07/2014, 02:00

TỪ KHÓA LIÊN QUAN

w