1. Trang chủ
  2. » Cao đẳng - Đại học

Tong hop code hay

13 28 0

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

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 13
Dung lượng 14,95 KB

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

Nội dung

Code hiệu ứng trỏ chuột cho blog trái tim Hôm này mình làm tặng tất cả các thành viên của Blog một code con trỏ tuyệt đẹp .Các bạn dùng thử sẽ biêt ngay tuyệt đẹp .Đoạn code sau đây tạo [r]

Trang 1

câu nói của danh nhân

chia sẻ đoạn code này với quý thầy cô! Thầy cô cho vào khối trên cột chức năng nhé!

<center><font color="#FF0000">"<script language="javascript" type=

"http://www.petalia.org/Loveland/lovequotes.js">

</script>"</font></center>

danh thắng Việt Nam

Quý thầy cô cho vào khối trên cột chức năng nhé!

Đoạn code đã được ĐTN BLOG kiểm tra!!

<script src=

"http://www.skydoor.net/gadget/vietnamtravel/random?format=javascript&amp;width=180"

type="text/javascript">

</script><object type="application/x-shockwave-flash" data=

"http://widgets.clearspring.com/o/4852c6ad8adeae53/4a34fa9f8d854a07/4852c6bf0dd110e3/9b0b5e18"

id="W4852c6ad8adeae534a34fa9f8d854a07" width="180" height=

"200"><param name="movie" value=

"http://widgets.clearspring.com/o/4852c6ad8adeae53/4a34fa9f8d854a07/4852c6bf0dd110e3/9b0b5e18">

<param name="wmode" value="transparent">

<param name="allowNetworking" value="all">

<param name="allowScriptAccess" value="always"></object>

lịch có flash ảnh bình minh rất đẹp

chia sẻ đoạn code này để thầy cô cho vào khối trên cột chức năng làm đẹp thêm cho trangriêng của mình! <embed src=

"http://d.violet.vn/uploads/resources/599/lichbloc_donbinhminh.swf"

"application/x-shockwave-flash" width="180" height="160">

lịch Logo kỷ niệm 1000 năm Thăng Long-HN

ặng quý thày cô đoạn code sau Quý thầy cô cho vào khối trên cột chức năng nhé!

Trang 2

width="180" height="180" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="never"></p>

Chúc nhiều niềm vui!

sách danh ngôn rất đẹp

chia sẻ với thầy cô đoạn code tuyệt hay này

Nhớ THANK admin nha!

Code:

"http://d.violet.vn/uploads/resources/599/danh_ngon.swf" width=

"520" height="180" type="application/x-shockwave-flash" wmode=

"transparent" allowscriptaccess="never">

Thầy cô copy rồi vào quản trị ->Thêm khối chính->Paste vào đó là Ok

Code gửi bài viết cho bạn bè

Đoạn code đã được kiểm tra:

<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&pub=huudiep1983"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js? pub=huudiep1983"></script>

2 Sau đó coppy và cho vào bài viết của Blog của quý thầy cô (Cho vào HTML -góc phải bên trên)

Code tạo chữ chạy cuối trang

Code đã kiểm tra Nội dung như sau:

<head><title></title></head><body><font

color=”2c40d1”><span style=”background-color:#ffffff; font-size: 15px”><marquee direction=”left” scrlldelay=”5” scrollamount=”5”> CẢM ƠN QUÝ THẦY CÔ ĐÃ ĐÓNG GÓP TÀI NGUYÊN! HẸN GẶP LẠI</marquee></span></font><b>

Chúc thành công!

Code tạo ảnh trượt 2 bên trang web, blog

xin gửi đến quý thầy cô đoạn code tạo ảnh trượt 2 bên trang web, blog như của trang này Các bạn sửa theo hướng dẫn rồi copy vào khối chính hoặc khối chức năng đều được Ảnh hiển thị tốt hơn ở trình duyệt Firefox và Google Chrome

<html>

<head>

<title>uoon demo Set Position</title>

<style type="text/css">

.float {

Trang 3

width: 115px;

height: 200px;

border: solid 1px blue;

}

</style> </head> <body> <div style="width: 0px;height: 0px;"> <div id="a" class="float"><a href=" Link địa chỉ bạn muốn dẫn đến khi bấm chuột vào ảnh phải "><img src=' Link của ảnh sẽ hiển thị bên phải '></div> <div id="c" class="float"><a href=" Link địa chỉ bạn muốn dẫn đến khi bấm chuột vào ảnh trái"><img src=' Link của ảnh sẽ hiển thị bên trái '></div> </div> </body> <script type="text/javascript">

function setPosition(id, position) {

var store = { ram : { top : 0, left : 0, right : 0, bottom : 0 },

rom : { top : null, left : null, right : null, bottom : null }

};

for (var i in position) {store.rom[i] = position[i];}

var element = document.getElementById(id);

for (i in store) {element[i] = store[i];}

element.rom.move = function() {

Trang 4

if (window.innerHeight) {

var topPage = window.pageYOffset;

var leftPage = window.pageXOffset;

var rightPage = leftPage + window.innerWidth - element.offsetWidth;

var bottomPage = topPage + window.innerHeight - element.offsetHeight;

}

else {

var topPage = document.body.scrollTop;

var leftPage = document.body.scrollLeft;

var rightPage = leftPage + document.body.clientWidth - element.offsetWidth;

var bottomPage = topPage + document.body.clientHeight - element.offsetHeight;

}

element.style.position = "absolute";

if (element.rom.top != null) {

element.ram.top += Math.round((topPage + element.rom.top - element.ram.top)/20);

element.style.top = element.ram.top;

}

if (element.rom.left != null) {

element.ram.left += Math.round((leftPage + element.rom.left - element.ram.left)/20);

element.style.left = element.ram.left;

}

if (element.rom.right != null) {

element.ram.right += Math.round((rightPage - element.rom.right - element.ram.right)/20);

element.style.left = element.ram.right;

}

if (element.rom.bottom != null) {

element.ram.bottom += Math.round((bottomPage - element.rom.bottom - element.ram.bottom)/20); element.style.top = element.ram.bottom;

}

setTimeout("document.getElementById('"+element.id+"').rom.move()",10);

};

element.rom.move();

}

setPosition("a", {top: 20, right: 30});

setPosition("c", {top: 20, left: 30});

</script>

</body>

</html>

Chúc thành công!

Trang 5

Code chữ Mới và chữ New

Hôm nay ĐTN BLOG xin gửi tặng các bạn một số code chữ Mới và chữ New để các bạn cho vào bài viết trên blog của các bạn

1.Code chữ Mới :

<img src=" http://i649.photobucket.com/albums/uu213/tuongct1/icon-new.gif ">

2 chữ new xoay

<img src="http://www.3c.com.vn/Uploaded/hoant/Anh%20xep/new1.gif ">

3.Code chữ mới nhún nhảy :

<img src="http://i649.photobucket.com/albums/uu213/tuongct1/newtrang.gif ">

4 chữ new mũi tên

<img src="http://i242.photobucket.com/albums/ff54/trannampro/2.gif ">

Các bạn copy đoạn code tùy thích rồi chèn vào chỗ muốn nó hiện ra VD tôi chèn vào trước chữ " HIỆN MENU NHANH ĐTN" như bạn thấy đấy!

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

Code chữ chạy phía trên cùng của banner

1) Chạy qua,lại ( màu đen)

<span style="position: absolute; left: 0px; top: 0px; width: 100%"><marquee behavior="ALTERNATE"><strong>ĐTN BLOG KÍNH CHÀO QUÝ THẦY CÔ ĐẾN THĂM

</strong></marquee></span>

Muốn có màu thì thay đoạn code sau vào giữa thẻ : <strong>…</strong>

<font color="#736AFF" size="4"> NỘI DUNG CHỮ CHẠY </font>

1) Chạy qua,lại ( có màu)

<span style="position: absolute; left: 0px; top: 0px; width: 100%"><marquee behavior="ALTERNATE"><strong><font color="#B93B8F"

> CHÀO MỪNG CÁC THẦY CÔ GIÁO ĐẾN VỚI ĐTN BLOG </font>

</strong></marquee></span>

Các thầy cô có thể thay mã màu khác:

Vì dụ:

Màu xanh: #736AFF ; Màu tím: #B93B8F ; Màu cam: #FBB917

Màu đỏ: #F778A1 ; hoặc chọn màu khác tùy thích

3) Chạy từ phải sang trái:

Trang 6

<span style="position: absolute; left: 0px; top: 0px; width: 100%"> <marquee <font color="#B93B8F" size="4"> CHÀO MỪNG CÁC THẦY CÔ GIÁO ĐẾN VỚI BLOG </font></marquee></span>

Thay mã màu như trên!

Chúc các Thầy cô giáo thành công !

Code làm đổi màu đường link khi đưa chuột vào

Các bạn copy đoạn code này rồi cho vào khối chính là chắc chắn được Rất đẹp

background-image:url( http://www.poqbum.com/animated_hover/images/rainbow.gif ); font-size:10pt;

color:;

text-decoration:none;

}

</style>

Chúc bạn như ý!

Code tạo hình trái tim bằng tên bạn

<html><body>

alert("Bạn chưa nhập đoạn text cần tạo hình trái tim vào ô trống!");

}

heart += " _" + partString(string, 8) + " " + partString(string, 9) + "\n"; heart += " " + partString(string, 12) + " _" + partString(string, 15) + "\n"; heart += " " + partString(string, 17) + " _" + partString(string, 18) + "\n";

Trang 7

heart += " _" + partString(string, 28) + "\n"; heart += " " + partString(string, 22) + "\n"; heart += " " + partString(string, 18) + "\n"; heart += " _" + partString(string, 13) + "\n"; heart += " _" + partString(string, 9) + "\n"; heart += " _" + partString(string, 6) + "\n"; heart += " " + partString(string, 4) + "\n"; heart += " _" + partString(string, 2) + "\n";

}

}

</script>

<p align="center">nhập từ mún tạo thành trái tim vào đây<br /><input id="text" name="text" size="37"></p><p align="center"><input name="Create Heart" accesskey="g" onclick="return createHeart('text', 'result');" value="Tạo trái tim" type="button"></p><p align="center">Copy hình vừa tạo và dán vào blog thôi.</p><p align="center"><textarea cols="45" rows="23" readonly="readonly" wrap="OFF" id="result" onclick="this.focus(); this.select();"></textarea><p align="center">Thích không ^^</p><p align="center"><strong>© <a href="http://www.kidpro.forumup.vn">Forum x3</a></strong></p>

</body></html>

Code Chữ Chạy DướI Thanh Trạng Thái(4 kiểu)

Dưới đây là code của một số dạng chữ chạy dưới thanh trạng thái-Xem dưới chân trang Blog của tôi làm Vd: Code 1:

Code: HTML

<script language=JavaScript>

ar[0] = " (¯`·.º-:¦:-gõdòng chữ bạn muốn thể hiện vào đây (¯`·.º-:¦:-"

clearTimeout(timerID)

Trang 8

offset++

offset++

currentMessage++

}

}

startBanner();

</SCRIPT>

Code 2:

Code: HTML

<SCRIPT>

comeback=0

cometo=0

window.status=text1.substring(0,cometo)

if(comeback==1){

cometo ;

if(cometo==0){comeback=0}

if(cometo==text1.length){window.setTimeout("dis()" ,500);} else {window.setTimeout("dis()",50);} }

dis()

</SCRIPT>

Code 3:

Code: HTML

<SCRIPT language=Javascript>

}

Trang 9

slide = new initArray(2);

slide[1]=":::::::::Rat han hanh duoc phuc vu cac ban:::::::::" ;

{

{

}

}

else

{

}

{

{

}

setTimeout('setMessage()',delay2);

}

else

{

setTimeout('setMessage()',delay1);

}

}

setMessage();

</SCRIPT>

Code 4

Code: HTML

Trang 10

comeback=0

cometo=0

window.status=text1.substring(0,cometo)

if(comeback==1){

cometo ;

if(cometo==0){comeback=0}

window.status=text1.substring(0,cometo)+""

if(cometo==text1.length){window.setTimeout("dis()" ,500);} else {window.setTimeout("dis()",50);} }

dis()

</SCRIPT>[/i]

Code hiệu ứng trỏ chuột cho blog (trái tim)

Hôm này mình làm tặng tất cả các thành viên của Blog một code con trỏ tuyệt đẹp Các bạn dùng thử sẽ biêt ngay tuyệt đẹp Đoạn code sau đây tạo ra hiệu ứng trái tim rất đẹp cho chuột khi bạn click vào 1 link nào đó

Code

Quote:

a:hover

{text-decoration:none;

color:#D570EE;

text-decoration:none;

font-weight:bold;

background-image:url(http://img651.imageshack.us/img651/7486/heartye.gif);}

Thay hình sau bằng hình bạn thích http://img651.imageshack.us/img651/7486/heartye.gif

Code ngày tháng có thêm lời chào thú vị bằng JavaScript

Chào các thầy cô hôm này tôi bổ sung thêm các thây cô đoạn code:

-Từ 1 đến < 5 giờ sáng sẽ có hiện ngày tháng năm và thêm một lời chào : Bạn dậy sớm quá vậy?Hại sức khỏe

từ 5 - 10 có lời chào : Chào buổi sáng và chúc một ngày tốt lành

từ 11 - 12 có lời chào : Chào buổi trưa - Bạn ăn cơm chưa vậy ?

từ 17 đến <18 giờ có lời chào : Chào buổi chiều - Chắc là bạn ăn cơm rồi nhỉ ?

Trang 11

từ 21 đến 24 có lời chào : Chúc bạn ngủ ngon và có giấc mơ đẹp

Code:

<center><script type="text/javascript">

year+=1900

daym="0"+daym var dayarray=new Array("CHỦ NHẬT","THỨ HAI","THỨ BA","THỨ TƯ","THỨ NĂM","THỨ

Array("","02","03","04","05","06","07","08","09","10","11","12")

document.write("<font color='#0066cc' face='Arial' size='2'><b>"+dayarray[day] +", "+daym+"/"+montharray[month]+"/"+year+"<\/b><\/font>")

</script></center>

<script language="JavaScript" type="text/javascript">

// Get the cuurent day and convert it to the name of the day

// Get the current date; if it's before 2000,add 1900

// Get the current month and convert it to the name of the month

Trang 12

if (monthValue == 3)

// Get the current year; if it's before 2000, add 1900

else

// Customize the greeting based on the current hours

{ greeting = "<center>Blog giáo viên Thái Bình chào ngày mới! <\/center>" greeting1 = "<center>Chúc các bạn một ngày mới an lành!<\/center>"

}

{

greeting1 = "<center>Chúc các bạn một buổi sáng tốt lành!<\/center>"

}

{

greeting1 = "<center>Chúc các bạn có một ngày thành công và hạnh phúc!.<\/center>"

}

{ greeting = "<center>Đã buổi trưa rồi đó!<\/center>" greeting1 = "<center>Chúc các bạn có bữa trưa thật ngon miệng!<\/center>"

}

{

greeting1 = "<center>Hãy cố gắng hoàn thành công việc trong ngày!<\/center>"

}

{

Ngày đăng: 24/06/2021, 15:43

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w