1. Trang chủ
  2. » Công Nghệ Thông Tin

Tổng hợp một số Mã nhúng (Code) hay cho anh em làm Blog, website Seo Blog

5 485 1

Đ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 5
Dung lượng 47,5 KB
File đính kèm Tổng hợp một số Mã nhúng.zip (9 KB)

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

Nội dung

Bạn muốn tạo một Blog (Website) giải tri, kinh doanh, kiếm tiền online trên một tên miền miễn phí (Ví dụ: Blogspot.com, Wordpress.com, Weebly.com,…), SEO blog. Dưới đây mình tổng hợp một số Mã nhúng (Code) hay thường dung.

Trang 1

Tổng hợp một số Mã nhúng (Code) hay cho an hem làm Blog, website Seo Blog.

Bạn muốn tạo một Blog (Website) giải tri, kinh doanh, kiếm tiền online trên một tên miền miễn phí (Ví dụ: Blogspot.com, Wordpress.com, Weebly.com,…), SEO blog Dưới đây mình tổng hợp một số Mã nhúng (Code) hay thường dung

1, Code chuyển hướng URL ( Auto Download)

<head>

<meta http-equiv="Refresh" content="1;url=http://123doc.org/trang-chu.htm">

</head>

Trong đó: 1 là thời gian (s) chờ chuyển hướng sang trang web khác

http://123doc.org/trang-chu.htm là trang đích cần chuyển hướng đến

2, Code đếm số lần Download hay đếm số lần truy cập

<a href="chu.htm" target="_blank"></a> ( Lượt tải : <script src="

http://123doc.org/trang-chu.htm " type="text/javascript"></script><script type="text/javascript">document.write(dsCounter);</script> lần )

Trong đó: phần bôi đỏ là Link của tài liệu cần Download

3, Code tạo Banner quảng cáo hiển thị ngẫu nhiên

<div align="center">

<table border="0" cellpadding="2" cellspacing="6" width="265" bgcolor="#ffffff">

<tbody><tr>

<td><center>

<! BANNER#1 >

<script language="JavaScript">

images = new Array(2);

images[0] = "<a href = ' URL OF ADVERTISER ' rel='nofollow' ><img src=' URL OF BANNER’S

IMAGE-1 ' border='0' height='125' width='125' alt=' AD DESCRIPTION '></a>";

images[1] = "<a href = ' URL OF ADVERTISER ' rel='nofollow' ><img src=' URL OF BANNER’S

IMAGE-2 ' border='0' height='125' width='125' alt=' AD DESCRIPTION '></a>";

index = Math.floor(Math.random() * images.length);

document.write(images[index]);

</script>

</center></td>

Trang 2

<! BANNER#2 >

<script language="JavaScript">

images = new Array(2);

images[0] = "<a href = ' URL OF ADVERTISER ' rel='nofollow' ><img src=' URL OF BANNER’S

IMAGE-1 ' border='0' height='125' width='125' alt=' AD DESCRIPTION '></a>";

images[1] = "<a href = ' URL OF ADVERTISER ' rel='nofollow' ><img src=' URL OF BANNER’S

IMAGE-2 ' border='0' height='125' width='125' alt=' AD DESCRIPTION '></a>";

index = Math.floor(Math.random() * images.length);

document.write(images[index]);

</script>

</center></td>

</tr>

<tr>

<td><center>

<! BANNER#3 >

<script language="JavaScript">

images = new Array(2);

images[0] = "<a href = ' URL OF ADVERTISER ' rel='nofollow' ><img src=' URL OF BANNER’S

IMAGE-1 ' border='0' height='125' width='125' alt=' AD DESCRIPTION '></a>";

images[1] = "<a href = ' URL OF ADVERTISER ' rel='nofollow' ><img src=' URL OF BANNER’S

IMAGE-2 ' border='0' height='125' width='125' alt=' AD DESCRIPTION '></a>";

index = Math.floor(Math.random() * images.length);

document.write(images[index]);

</script>

</center></td>

<td><center>

Trang 3

<! BANNER#4 >

<script language="JavaScript">

images = new Array(2);

images[0] = "<a href = ' URL OF ADVERTISER ' rel='nofollow' ><img src=' URL OF BANNER’S

IMAGE-1 ' border='0' height='125' width='125' alt=' AD DESCRIPTION '></a>";

images[1] = "<a href = ' URL OF ADVERTISER ' rel='nofollow' ><img src=' URL OF BANNER’S

IMAGE-2 ' border='0' height='125' width='125' alt=' AD DESCRIPTION '></a>";

index = Math.floor(Math.random() * images.length);

document.write(images[index]);

</script>

</td></center>

</tr>

</tbody></table>

<table border="0" bordercolor="#0084ce" cellpadding="2" cellspacing="6" width="265" bgcolor="#ffffff">

<tbody>

<tr>

<td><center><a href="http://123doc.org/trang-chu.htm" rel="nofollow"><img width="265" height="37" border="0" alt="Advertise Now!" src=" http://3.bp.blogspot.com/-

7XKNYmouzQc/T4JFy90vaXI/AAAAAAAABh4/toadlGw7RIs/s1600/ADVERTISE-HERE-namkna-blogspot-com.gif " /></a></center></td>

</tr>

</tbody></table>

</div>

4, Code tạo Banner quảng cáo hiển thị góc màn hình

<script type="text/javascript">

function hide_float_right() {

var content = document.getElementById('float_content_right');

var hide = document.getElementById('hide_float_right');

if (content.style.display == "none")

{content.style.display = "block"; hide.innerHTML = '<a href="javascript:hide_float_right()"> Đóng quảng cáo [X] </a>'; } else { content.style.display = "none"; hide.innerHTML = '<a href="javascript:hide_float_right()"> Xem quảng

cáo </a>';

}

Trang 4

}

</script>

<style>

.float-ck { position: fixed; bottom: 0px; z-index: 9000}

* html float-ck {position:absolute;bottom:auto;top:expression(eval

(document.documentElement.scrollTop+document.docum

entElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0))) ;}

#float_content_right {border: 1px solid #01AEF0;}

#hide_float_right {text-align:right; font-size: 11px;}

#hide_float_right a {background: #01AEF0; padding: 2px 4px; color: #FFF;}

</style>

<div class="float-ck" style="right: 0px" >

<div id="hide_float_right">

<a href="javascript:hide_float_right()"> Đóng quảng cáo [X] </a></div>

<div id="float_content_right">

<! Start quang cao >

<a href=" http://123doc.org/trang-chu.htm ">

<img src="http://media2.thethaovanhoa.vn/2016/08/29/11/00/FacebookAdsCover_2 jpg">

</a>

<! End quang cao >

5, Code tạo Tabe Menu đơn giản

<table width="100%" cellspacing="0" cellpadding="0" border="0" font color="red"

<tr>

<td class=top_menu_table_cell>

<span class=top_menu><a class=top_menu href="/"> Trang chủ </a> |

<a class=top_menu href="http://vnexpress.net/tin-tuc/thoi-su"> Xã hội </a> |

<a class=top_menu href="http://vnexpress.net/tin-tuc/the-gioi"> Văn hóa </a> |

<a class=top_menu href="http://thethao.vnexpress.net/"> Giải trí </a>|

</td>

</tr>

</table>

Trong đó: Thay Link màu đỏ bằng Link của bạn vào

6, Code tạo menu sử dụng CSS đẹp và sinh động hơn.

<html>

<head>

<style>

ul {

list-style-type: none;

margin: 0;

padding: 0;

}

li {

display: inline;

background-color: #dddddd;

}

</style>

</head>

<body>

<ul>

<li><a href="#home">Home</a></li>

<li><a href="#news">News</a></li>

Trang 5

<li><a href="#contact">Contact</a></li>

<li><a href="#about">About</a></li>

</ul>

</body>

</html>

Trong đó phần bôi đỏ là Mã màu, bạn có thể thay đổi.

7, Code thêm Google Pag Rank vào website, blog của bạn.

<a href="http://smallseotools.com/google-pagerank-checker/" title="http://smallseotools.com/google-pagerank-checker/"><img src="http://smallseotools.com/pr?style=3" align="absmiddle" alt="http://smallseotools.com/google-pagerank-checker" border="0" /></a>

Bạn đặt Code trên vào bất cứ nơi nào tren Blog của bạn.

Ngày đăng: 17/10/2016, 16:07

TỪ KHÓA LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm

w