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

BO SUU TAP CODE TRANG TRI WEBSITE 01

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

Nội dung

Với kính thước trên dùng trên trang của tôi thì vừa nhưng dùng trên trang của thầy cô khác (trang có giao diện khác) thì thanh cuốn dọc bị che mất, vậy thầy cô có thể giảm kích thước wi[r]

(1)

MỘT SỐ CODE CHỮ

1.Chữ chạy sang trái

<marquee> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ </marquee>

2 Chữ chạy sang phải

<marquee direction="right"> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ </marquee>

3.Chữ chạy qua lại :

<marquee behavior="alternate"> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ </marquee>

4 Chữ chạy lên

<marquee direction="up"> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ </marquee>

5 Chữ chạy xuống

<marquee direction="down"> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ </marquee>

6 Chữ chạy lên xuống

<marquee direction="up" behavior="alternate"> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ </marquee>

7 Chữ bay hình sin

<marquee behavior="alternate" direction="up" width="80%"><marquee direction="right"> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ </marquee></marquee>

8 Chữ bay hình chữ Z

<marquee behavior="alternate" direction="up" width="80%"><marquee direction="right"

behavior="alternate"> WEBSITE THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ </marquee></marquee>

9 Mũi tên nhấp nháy

<marquee behavior="alternate" width="10%">>></marquee> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ <marquee behavior="alternate" width="10%"><<</marquee>

10 Mũi tên chạy ra

(2)

11.Chữ có màu nền

<font color="#FFFFFF"><marquee direction="left" style="background:BLUE"> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ </marquee></font>

12 Chữ có khung

<marquee style="border:BLUE 2px SOLID"> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ </marquee>

13 Chữ co dãn 1

<MARQUEE behavior=alternate direction=left scrollAmount=3 width="4%"><font

face=Webdings>3</font></MARQUEE><MARQUEE scrollAmount=1 direction=left width="2%">| | | </MARQUEE> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ <MARQUEE scrollAmount=1 direction=right width="2%">| | |</MARQUEE><MARQUEE behavior=alternate direction=right scrollAmount=3 width="4%"><font face=Webdings>4</font></MARQUEE>/

14 Chữ co dãn 2

<MARQUEE behavior=alternate direction=left scrollAmount=3 width="4%"><font

face=Webdings>4</font></MARQUEE><MARQUEE scrollAmount=1 direction=left width="2%">| | | </MARQUEE> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ <MARQUEE scrollAmount=1 direction=right width="2%">| | |</MARQUEE><MARQUEE behavior=alternate direction=right scrollAmount=3 width="4%"><font face=Webdings>3</font></MARQUEE>

15 Chữ chạy biến mất.

<marquee behavior="alternate"><marquee width="150"> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ

</marquee></marquee>

????: Rootvn Forum http://rootvn.net/showthread.php?t=43382

16.Chữ lơ lửng

<marquee behavior=alternate direction=up scrollamount=2 scrolldelay=65 height=80

style="Text-align;filter:wave(add=0,phase=1, freq=1,strength=15,color=.FFFFFF)"><center> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ <br >Giao lưu chia sẻ </center></marquee>

17- Chữ màu ( tĩnh):

<b><font color="#3300FF"> CHÀO MỪNG CÁC THẦY CÔ GIÁO ĐẾN VỚI </font><font

color="#FF00FF "> WEBSITE THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝCỦA QUANG TUẤN VÀ MINH THƯƠNG XIN CHÂN THÀNH CẢM ƠN ! </font></b>

Mã : <b><font color="#mã màu"> Đoạn văn </font></b>

18- Chữ màu chạy khung màu:

(3)

<b><font color="#3300FF">RẤT HÂN HẠNH ĐƯỢC CÁC BẠN ĐẾN THĂMWEBSITE THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝCỦA QUANG TUẤN VÀ MINH THƯƠNG XIN CHÂN THÀNH CẢM ƠN !

</font></b> </marquee>

Thay BLUE từ khác để màu khung theo ý muốn bạn Ví dụ: RED (đỏ), , GREEN (xanh cây), PINK (hồng), YELLOW (vàng), VIOLET (tím), BLACK (đen)

19) Chữ chạy điều chỉnh tốc size:

<marquee <font color="#FF0000" size="4"> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ </font></marquee>

20) Chữ chạy thay đổi tốc độ, size:

<b><marquee direction="left" scrollamount="6" onmouseover="this.stop();" onmouseout="this.start();"><font color="#FF0000" size="2"> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ </font></marquee></b>

21) Canh giữa:

<div align="center"> THƯ VIỆN DẠY VÀ HỌC ĐỊA LÝ </div>

=============================================================================

Tạo chữ chạy đầu trang với google

<marquee><span style="font-size:180%;" font="" color= "#4A6327"><a href="http://violet.vn/thanhduong_ltv" target= "_blank"><img src=

"http://blogtinhoc.violet.vn/uploads/resources/blog/495/violet.vn_500.png"></a></span></marquee> <form action="http://www.google.com/cse" id="cse-search-box"> <img border="0" align="center" alt="Google" src= "http://www.google.com/logos/Logo_25wht.gif"> <input type="hidden" name="cx"

value="012596416485239023597:bdyrt64se6s"> <input type= "hidden" name="ie" value="UTF-8"> <input type="text" name="q" size= "31"> <input type="submit" name="sa" value="Search"> <input type= "radio" name="sitesearch" value="http://violet.vn/" checked= "checked"> Violet <input type="radio"

name="sitesearch" value= "http://violet.vn/thanhduong_ltv/" checked="checked"> Blog Thanh Dương</form> <script type="text/javascript" src= "http://www.google.com/coop/cse/brand?form=cse-search-box%3C=vi"> </script>

cô Đàm Thị Xuân Uyên sửa link blog tin học thành cô

=================================================================

Nghe nhạc trực tuyến

<object width="190" height="200"><param name="movie"

value="http://www.nhaccuatui.com/l/cXiNbzXlRMwR" /><param name="quality"

(4)

quality="high" wmode="transparent" type="application/x-shockwave-flash"

flashvars="&autostart=true" width="190" height="200"></embed></object>

===============================================================

CHAT VỚI YAHOO

<script

src="http://www.gmodules.com/ig/ifr?url=http://joppy.info/gadjets/yahoo-messenger.xml&amp;synd=open&amp;w=180&amp;h=400&amp;title=Yahoo!

+Messenger&amp;border=%23ffffff%7C3px%2C1px+solid+

%23999999&amp;output=js"></script>

================================================================

Code hiệu ứng thu nhỏ chữ , ảnh tự động phóng to chữ ảnh để chuột vào

Hiệu ứng thu nhỏ chữ tự động phóng to ảnh để chuột vào

Code giúp thu nhỏ chữ ảnh Khi di chuột đến, chữ ảnh tự động chở kích cỡ.

Để làm vậy, bước đầu tiên, ta copy code này, dán vào css

• Code dán vào css để sử dụng hiệu ứng phóng to ảnh, thu nhỏ chữ:

#blog_quote{font-size:5px;font-style:italic;color:#FF99FF;background:#000066;}#blog_quote:hover

{font-size:12px;font-weight:bold;font-style:normal;color:#CC99AA;background:transparent;}#blog_img img

{height:100px;}#blog_img img:hover {height:100%;}

Hoặc dùng đoạn code sau cho vào thông tin quyền

<link rel="stylesheet" type="text/css" media="screen" href="http://caobang83

webng.com/Phongto.css "/>

• Code dán vào viết để tạo hiệu ứng tự động thu nhỏ chữ viết dài:

<DIV id=blog_quote><Nội dung đoạn text muốn sử dụng hiệu ứng</DIV>

• Để sử dụng hiệu ứng cho ảnh ta dùng code:

<DIV id=blog_img> <IMG src="Linh ảnh"></DIV>

Đây sản phẩm code trên, để chuột lên ảnh để xem hiệu ứng:

(5)

===============================================================

CODE BÁO MỚI

<script type="text/javascript">

epi_id = 'epi-widget-container';

epi_width = 'auto';

epi_height = 'auto';

epi_theme = 'widgetDisplayThemePink';

</script>

<script type="text/javascript" src="http://www.baomoi.com/Widget/JS/Widget.js"></script>

<script type="text/javascript"

src="http://www.baomoi.com/Widget/GenerateJS.aspx?zone=-1&count=10&ntype=popular&dtype=1&target=0"></script>

================================================================

Để menu Quản Trị

(Tư liệu chưa thẩm định) Nguồn: tự soạn

Người gửi: Nguyễn Văn Danh (trang riêng) Ngày gửi: 05-09-2009

Dung lượng: 16.0 KB Số lượt tải:

Số lượt xem: 151

Mô tả: Đối với thầy cô nhiều kinh nghiệm việc menu ngang, có menu quản trị vào quản trị Nhưng với nhiều thành viên khác chưa quen, khó khăn để vào quản trị đặng chỉnh sửa lại sai sót

Tôi xin gởi lên đoạn code để thầy cô đưa vào khối cột chức tự tạo, giúp tạo bảng quản trị Khi menu ngang, thầy cô việc đăng nhập xong bấm vào phần quản trị tương ứng khối vào

(6)

dưới bảng xếp khối cột thầy cô

<script src="http://ndfmusic.googlepages.com/swapimages.js" type="text/javascript">

<! > </script>

<table border=0> <tr>

<td valign=center><font face=Arial size=2>

<div align=center><A onmouseover="MM_swapImage('leafc','','/uploads/resources/blog/663/hoa.gif',1)" onmouseout=MM_swapImgRestore() href="/thanhduong_ltv/admin"><img src="/images/dhtmlx/leaf.gif" name=leafc><br>Giao diện</A> </div><br>

</td></font></tr><tr>

<td><font face=Arial size=2>

<div align=center><A onmouseover="MM_swapImage('leafc1','','/uploads/resources/blog/663/hoa.gif',1)" onmouseout=MM_swapImgRestore() href="/thanhduong_ltv/admin/menu"><img

src="/images/dhtmlx/leaf.gif" name=leafc1><br>Menu</A> </div><br>

<div align=center><A onmouseover="MM_swapImage('leafc2','','/uploads/resources/blog/663/hoa.gif',1)" onmouseout=MM_swapImgRestore() href="/thanhduong_ltv/admin/listfolder"><img

src="/images/dhtmlx/leaf.gif" name=leafc2><br>Thư mục</a> </div><br>

<div align=center><A onmouseover="MM_swapImage('leafc3','','/uploads/resources/blog/663/hoa.gif',1)" onmouseout=MM_swapImgRestore() href="/listmember/joindate/0"><img src="/images/dhtmlx/leaf.gif" name=leafc3><br>Thành viên</a> </div><br>

<div align=center><A onmouseover="MM_swapImage('leafc4','','/uploads/resources/blog/663/hoa.gif',1)" onmouseout=MM_swapImgRestore() href="/thanhduong_ltv/admin/listblogentry"><img

src="/images/dhtmlx/leaf.gif" name=leafc4><br>Tài nguyên</a> </div> </td></font>

<td align=right><font face=Arial size=2>

<div align=center><A onmouseover="MM_swapImage('leafc5','','/uploads/resources/blog/663/hoa.gif',1)" onmouseout=MM_swapImgRestore() href="/thanhduong_ltv/admin/listentryinvalid"><img

src="/images/dhtmlx/leaf.gif" name=leafc5><br>Thùng rác</a> </div><br>

<div align=center><A onmouseover="MM_swapImage('leafc6','','/uploads/resources/blog/663/hoa.gif',1)" onmouseout=MM_swapImgRestore() href="/thanhduong_ltv/admin/listpoll"><img

src="/images/dhtmlx/leaf.gif" name=leafc6><br>Điều Tra Ý kiến</a> </div><br>

<div align=center><A onmouseover="MM_swapImage('leafc7','','/uploads/resources/blog/663/hoa.gif',1)" onmouseout=MM_swapImgRestore() href="/thanhduong_ltv/admin/listsupport"><img

src="/images/dhtmlx/leaf.gif" name=leafc7><br>Hỗ trợ trực tuyến</a> </div><br>

<div align=center><A onmouseover="MM_swapImage('leafc8','','/uploads/resources/blog/663/hoa.gif',1)" onmouseout=MM_swapImgRestore() href="/thanhduong_ltv/admin/advanced"><img

src="/images/dhtmlx/leaf.gif" name=leafc8><br>Thiết lập khác</a> </div> </td></tr></font></table>

================================================================

Code trang trước, đầu trang, tạo bạn in

<table width="600" height="23" border="0"> <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">

<td width="200" height="19"><div align="center"><a class="sidehrefvetrang" href="javascript:history.go(-1)">Về trang trước</a></div></td>

<td width="200"><div align="center"><a class="sidehrefvetrang" href="#top">Về đầu trang</a> </div></td> <td width="200"><div align="center"><a class="sidehrefvetrang" href="javascript:window.print();">Bản để in</a></div></td>

(7)

================================================================

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

Dưới code số dạng chữ chạy trạng thái-Xem chân trang Blog làm Vd:

Code 1:

<script language=JavaScript>

var speed =100 //Số lớn chữ chạy chậm var pause =

var timerID = null

var bannerRunning = false var ar = new Array()

ar[0] = " (¯`·.º-:¦:-gõ dịng chữ bạn muốn thể vào (¯`·.º-:¦:-" var currentMessage =

var offset =

function stopBanner() { if (bannerRunning) clearTimeout(timerID) bannerRunning = false } function startBanner() { stopBanner()

showBanner() }

function showBanner() {

var text = ar[currentMessage] if (offset < text.length) { if (text.charAt(offset) == " ") offset++

var partialMessage = text.substring(0, offset + 1) window.status = partialMessage

offset++

timerID = setTimeout("showBanner()", speed) bannerRunning = true

} else { offset =

currentMessage++

if (currentMessage == ar.length) currentMessage =

timerID = setTimeout("showBanner()", pause) bannerRunning = true

} }

startBanner(); </SCRIPT>

Code 2:

<SCRIPT>

var text1="==::::::::::gõ dòng chữ bạn muốn thể vào " comeback=0

cometo=0

function dis(){

window.status=text1.substring(0,cometo) if(comeback==1){

cometo ;

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

} else {cometo++;if(cometo==text1.length){comeback=1}} window.status=text1.substring(0,cometo)+"==::::: :::::>"

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

(8)

Code 3:

<SCRIPT language=Javascript> function initArray(n) { this.length = n;

for (var i =1; i <= n; i++) { this[i] = ' ' }

}

slide = new initArray(2);

slide[0]=":.:.:.:.:Welcome to Blog giáo viên Thái Bình:.:.:.:.:" ; slide[1]=":::::::::Rat han hanh duoc phuc vu cac ban:::::::::" ; slide[2]=":-:-:-:-:Chuc ban mot ngay`that vui ve:-:-:-:-:" ; var delay1 =

var delay2 = 0;

var text = slide[0] + " " ; var str = " " ;

var leftmsg = ""; var nextmsg = 0; function setMessage() {

if (str.length == 1)

{ while (text.substring(0, 1) == " ") {

leftmsg += str;

str = text.substring(0, 1);

text = text.substring(1, text.length); }

leftmsg += str;

str = text.substring(0, 1) ;

text = text.substring(1, text.length) ; for (var x = 0; x < 120; x++)

{ str = " " + str }; }

else {

str = str.substring(10, str.length) ; }

window.status = leftmsg + str; if (text == "")

{

str = " " ; nextmsg++ ;

if (nextmsg > slide.length) {

nextmsg = 0; }

text = slide[nextmsg] + " " ; leftmsg = "" ;

setTimeout('setMessage()',delay2); }

else {

setTimeout('setMessage()',delay1); }

}

setMessage(); </SCRIPT>

Code 4 <SCRIPT>

(9)

comeback=0 cometo=0

function dis(){

window.status=text1.substring(0,cometo) if(comeback==1){

cometo ;

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

} else {cometo++;if(cometo==text1.length){comeback=1}} window.status=text1.substring(0,cometo)+""

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

} dis() </SCRIPT>

Code Nét đẹp Việt Nam

(Tư liệu chưa thẩm định) Nguồn:

Người gửi: Nguyễn Hữu Huân (trang riêng) Ngày gửi: 22-07-2009

Dung lượng: 65.6 KB Số lượt tải:

Số lượt xem: 274 Mô tả:

Đoạn Code soạn ngày 22/7/2009 dùng thử thấy vui mắt nên giới thiệu để thầy cô dùng cho vui Thầy cô việc Copy Paste đoạn mã sau xong:

<p><iframe name="I1" src="http://netdepviet.org/vn/" width="500" height="279">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe></p>

Sau làm xong thầy cô thấy xuất hình ảnh trang thầy

Chờ khoảng nửa phút xuất hình ảnh xẽ tự liên kết đến giạo diện khác nhìn "mát mắt" Thầy kéo dọc xuống chút, lúc thầy cô khoanh chân, bỏ kính ngắm nhìn cô gái Việt Nam duyên dáng với đủ loại trang phục thay phiên lên trang thầy cô

Have a good time !

Với kính thước dùng trang tơi vừa dùng trang thầy khác (trang có giao diện khác) dọc bị che mất, thầy giảm kích thước width xuống chút đến vừa thơi

(10)

Với đoạn mã thầy vừa nghe ca nhạc vừa xem hình ảnh đẹp liên tục cập nhật Chúc thầy cô vui vẻ !

============================================================================

Tin tức – kiện

<script type="text/javascript" src="http://www.netvibes.com/js/UWA/load.js.php? env=BlogWidget2"></script>

<script type="text/javascript">

var BW = new UWA.BlogWidget({moduleUrl:'http://cdn.netvibes.com/modules/feedReader/feedReader.php? feedUrl=http%3A%2F%2Fvnexpress.net%2FRSS%2FGL%2FXa-hoi.rss&feedTitle=X%C3%A3%20h %E1%BB%99i%20-%20VnExpress.net'});

BW.setConfiguration({'title':'VnExpress.net', 'height':189, 'color':'blue'}); </script>

<script type="text/javascript" src="http://www.netvibes.com/js/UWA/load.js.php? env=BlogWidget2"></script>

<script type="text/javascript">

var BW = new UWA.BlogWidget({moduleUrl:'http://www.netvibes.com/modules/feedReader/feedReader.php? feedUrl=http%3A%2F%2Fvnexpress.net%2Frss%2Fgl%2Ftrang-chu.rss'});

BW.setConfiguration({'title':'Trang chủ - VnExpress.net', 'height':200, 'color':'blue'}); </script>

<script type="text/javascript" src="http://www.netvibes.com/js/UWA/load.js.php? env=BlogWidget2"></script>

<script type="text/javascript">

var BW = new UWA.BlogWidget({moduleUrl:'http://www.netvibes.com/modules/feedReader/feedReader.php? feedUrl=http%3A%2F%2Frss.pcworld.com.vn%2Frss%2Fbaiviet'});

BW.setConfiguration({'title':'TGVT - PC World Vietnam', 'height':157, 'color':'blue'}); </script>

<script type="text/javascript" src="http://www.netvibes.com/js/UWA/load.js.php? env=BlogWidget2"></script>

<script type="text/javascript">

var BW = new UWA.BlogWidget({moduleUrl:'http://www.netvibes.com/modules/feedReader/feedReader.php? feedUrl=http%3A%2F%2Frss.timnhanh.com%2Ftintuc'});

BW.setConfiguration({'title':'Tin Tức', 'height':165, 'color':'blue'}); </script>

==========================================================================

Mời trà

<center><object><embed src=

"http://d.violet.vn/uploads/resources/492/info@123doc.org" quality= "high" wmode="transparent" type="application/x-shockwave-flash" width="180" height="160"></object></center>

(11)

TẬP YOGA MỖI NGÀY

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"

codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" type="application/x-shockwave-flash" width="400px" height="323px" id="InsertWidget_7f96799e-9955-4fbb-b805-c77b7c68eae7" align="middle"><param name="movie"

value="http://widgetserver.com/syndication/flash/wrapper/InsertWidget.swf"/><param name="quality"

value="high" /><param name="wmode" value="transparent" /><param name="menu" value="false" /><param name="flashvars" value="r=2&appId=7f96799e-9955-4fbb-b805-c77b7c68eae7" /><param

name="allowScriptAccess" value="sameDomain" /> <embed

src="http://widgetserver.com/syndication/flash/wrapper/InsertWidget.swf" name="InsertWidget_7f96799e-9955-4fbb-b805-c77b7c68eae7" width="400px" height="323px" quality="high" menu="false"

pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" align="middle" allowScriptAccess="sameDomain" flashvars="r=2&appId=7f96799e-9955-4fbb-b805-c77b7c68eae7" /></object>

============================================================================ CODE ĐỒNG HỒ ĐỊA CẦU:

<!-Local Time Clock widget - HTML code - localtimes.info ><div align="center" style="margin:15px 0px 0px 0px"><div align="center" style="width:140px;border:1px solid #ccc;background:#fff ;color: #fff ;font-weight:bold"><a style="padding:2px 1px;margin:2px

1px;font-size:13px;line-height:16px;font-family:arial;text-decoration:none;color:#000 ;" href="http://localtimes.info/Asia/Vietnam/Qui_Nhon/"><img src="http://localtimes.info/images/countries/vn.png" border=0 style="border:0;margin:0;padding:0"> Qui Nhon Time</a></div><script type="text/javascript" src="http://localtimes.info/clock.php?

continent=Asia&country=Vietnam&city=Qui+Nhon&widget_number=121&fwdt=150&ham=1&hfg=1"></scri pt></div><!-end of code >

=============================================================================

CODE TRA ĐIỂM THI:

<script language="javascript" src="http://diemthi.baamboo.com/boxes/makecombo.js"></script> <script language="javascript" src="http://diemthi.baamboo.com/boxes/box_cover.js"></script>

=========================================================================== CODE DONG HO

<!-Local Time Clock widget - HTML code - localtimes.info ><div align="center" style="margin:15px 0px 0px 0px"><div align="center" style="width:140px;border:1px solid ;font-weight:bold"><a style="padding:2px 1px;margin:2px 1px;font-size:13px;line-height:16px;font-family:arial;text-decoration:none;color:#11ff11 ;" href="http://localtimes.info/Asia/Vietnam/Qui_Nhon/"><img

src="http://localtimes.info/images/countries/vn.png" border=0 style="border:0;margin:0;padding:0"> http://hoapt.co.cc</a></div><script type="text/javascript" src="http://localtimes.info/clock.php?

continent=Asia&country=Vietnam&city=Qui+Nhon&color=green&widget_number=1000&fwdt=150&mon=1 "></script></div><!-end of code >

============================================================================

CODE GIA VANG

(12)

============================================================================

CODE NGOAI TE

<iframe src="http://www.vietstock.com.vn/Transweb/tygia.htm" width="170" height="240" scrolling="yes" frameborder="0" marginheight="0" marginwidth="0"></iframe>

=============================================================================

CODE CHEN FLASH

<embed src="LINK FLASH" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="180" height="120">

-((LINK FLASH VI DU: http://d.violet.vn/uploads/resources/212/0.Lich_blog_dep.swf))) ((http://d.violet.vn/uploads/resources/212/0.Truongchi.swf))

============================================================================

CODE DONG HO + LICH BLOG

<embed src="http://d.violet.vn/uploads/resources/212/0.Lich_blog_dep.swf"

pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="180" height="220">

=========================================================================

Code tạo nút lên, xuống đặt trang BLOG

Copy paste vào cột chức năng: <center>

<div id='top-buttom_image'>

<a href='javascript:scroll(0,0)' title=' Về đầu trang'><img alt='Lên đầu trang' border='2' src="http://farm4.static.flickr.com/3496/3463533286_ee8ffe62cd_o.gif

"></a><br/>

<a href='javascript:scroll(0,9999999)' title='Về cuối trang '><img alt='Xuống cuối trang' border='2' src="http://farm4.static.flickr.com/3583/3437500265_69cea7f1f2_o.gif

"></a> </div> </center>

-Code nhúng phịng thí nghiệm Hóa học vào BLOG

<embed src='http://www.youtube.com/v/<object width="425" height="344"><param name="movie"

(13)

value="true"></param><param name="allowscriptaccess" value="always"></param><embed

src="http://www.youtube.com/v/at2wZa_J8Co&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425"

height="344"></embed></object>&autoplay=1' type='application/x-shockwave-flash' wmode='transparent' width='450' height='380'></embed>

-HƯỚNG DẪN TẠO HIỆU ỨNG CHO TRỎ CHUỘT

- Bước : bạn truy cập vào http://www.totallyfreecursors.com/

- Bước 2: click vào hình trỏ chuột mà bạn thích

- Bước 3: Trong cửa sổ ra, bạn copy mã code HTML

- Bước 4: Đặt code vào góc vui trang blog bạn

Code xuất khung : rê chuột vào vị trí khơng có link website hiệu ứng trỏ chuột có tác dụng

Ví dụ:

<div align="center" style="z-index:9;visibility:visible;"><a href="http://www.totallyfreecursors.com/" target="_blank" class="tfc"><img src="http://downloads.totallyfreecursors.com/public/CursorsLogo88-31.gif" border="0" width="88" height="31" alt="Free Tail MySpace Cursors at

www.totallyfreecursors.com" /></a></div><style>HTML,BODY{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/tail2.ani"),

url("http://downloads.totallyfreecursors.com/thumbnails/tail2.gif"), auto;}</style>

Code xuất khung : rê chuột vào vị trí có link website hiệu ứng trỏ chuột có tác dụng

Ví dụ:

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/tail2.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/Tail2.gif"), auto;}</style>

(14)

-Code chữ chạy phí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>KÍNH CHÀO Q THẦY CƠ ĐẾN THĂM WEBSITE </strong></marquee></span>

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

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

2) 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 THĂM WEBSITE</font>

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

Thầy thay mã màu khác: Vì dụ:

Màu xanh: #736AFF ; Màu tím: #B93B8F ; Màu cam: #FBB917 Màu đỏ: #F778A1 ; chọn màu khác tùy thích

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

<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 THĂM WEBSITE </font></marquee></span>

Thay mã màu trên

-CODE TẠO CON TRỎ CHUỘT NGỘ NGHĨNH 1) hiệu ứng chuột chùm 1

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/strtail.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/strtail.gif"), auto;}</style>

2) hình khỉ

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/monkeyani.cur"), url("http://downloads.totallyfreecursors.com/thumbnails/monkey-ani.gif"), auto;}</style>

(15)

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/sparklepink.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/SparklePink.gif"), auto;}</style>

4) hình biểu tượng đội bóng đá M.U

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/manchesterunitedbadge.cur"), url("http://downloads.totallyfreecursors.com/thumbnails/manchester-united-badge.gif"), auto;}</style>

5) hình bé ngộ nghĩnh

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/babyrollani.cur"), url("http://downloads.totallyfreecursors.com/thumbnails/baby-roll-ani.gif"), auto;}</style>

6) hình trái tim

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/hearttailup.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/hearttailup.gif"), auto;}</style>

7) hình ếch 1

<style>A:hover{cursor:

url("http://downloads.totallyfreecursors.com/cursor_files/frog26workinginbackground.ani"),

url("http://downloads.totallyfreecursors.com/thumbnails/frog26workinginbackground.gif"), auto;}</style>

8) hình ếch 2

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/frog26verticalresize.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/frog26verticalresize.gif"), auto;}</style>

9) hình chùm 2

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/tail2.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/Tail2.gif"), auto;}</style>

10) hình bướm

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/butterflyani1.cur"), url("http://downloads.totallyfreecursors.com/thumbnails/butterfly-ani1.gif"), auto;}</style>

11) hình naturo

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/naruto3.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/Naruto3.gif"), auto;}</style>

12) hình xương ngộ nghĩnh

<div align="center" style="z-index:9;visibility:visible;"><a href="http://www.totallyfreecursors.com/"

target="_blank" class="tfc"><img src="http://downloads.totallyfreecursors.com/public/CursorsLogo88-31.gif" border="0" width="88" height="31" alt="Free Alien Dance MySpace Cursors at

www.totallyfreecursors.com" /></a></div><style>HTML,BODY{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/aliendance.ani"),

url("http://downloads.totallyfreecursors.com/thumbnails/aliendance.gif"), auto;}</style>

(16)

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/8ballflame.cur"), url("http://downloads.totallyfreecursors.com/thumbnails/8ball-flame.gif"), auto;}</style>

14) hình bài

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/acespades.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/AceSpades.gif"), auto;}</style>

15) hình trái bóng bi da

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/8balllg.cur"), url("http://downloads.totallyfreecursors.com/thumbnails/8BallLG.gif"), auto;}</style>

16) hình biểu tượng yahoo

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/bounce.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/bounce.gif"), auto;}</style>

17) hình thỏ

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/duchrabbit.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/DuchRabbit.gif"), auto;}</style>

18) hình trái tim

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/iloveanimals1.cur"), url("http://downloads.totallyfreecursors.com/thumbnails/iloveanimals-pink.gif"), auto;}</style>

19) hình gấu

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/koala.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/Koala.gif"), auto;}</style>

20) hình kanguru

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/kangaroo.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/kangaroo.gif"), auto;}</style>

21) hình gấu trúc

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/panda1.cur"), url("http://downloads.totallyfreecursors.com/thumbnails/panda1.gif"), auto;}</style>

22) hình bé baby 1

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/baby1.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/Baby1.gif"), auto;}</style>

23) hình bé baby 2

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/babygirl-ani.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/BabyGirl-ani.gif"), auto;}</style>

(17)

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/argentina.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/ARGENTINA.gif"), auto;}</style>

25) hình cờ Anh

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/england.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/ENGLAND.gif"), auto;}</style>

26) hình cờ nhật bản

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/japan.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/JAPAN.gif"), auto;}</style>

27) hình cờ việt nam

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/vietnam.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/VIETNAM.gif"), auto;}</style>

chúc bạn có giây phút thư giản vui vẽ, thấy thik thank nhá

28) hình chử i love my pet

<style>A:hover{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/lovemypets.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/LoveMyPets.gif"), auto;}</style>

-Code hiệu ứng nhiều hoa rơi blog

( Thêm khối paste vào đặt vào mục thông tin quyền ) -Mã code

sau -<script>

//var pictureSrc = ‘http://img244.imageshack.us/img244/1024/snowbw4.gif’; //the location of the snowflakes//Noel

var pictureSrc = ‘http://s351.photobucket.com/albums/q463/web_tgth/th_Hoadao.gif’; //the location of the snowflakes//Xuân

var pictureWidth = 20; //the width of the snowflakes var pictureHeight = 20; //the height of the snowflakes var numFlakes = 10; //the number of snowflakes

var downSpeed = 0.01; //the falling speed of snowflakes (portion of screen per 100 ms) var lrFlakes = 10; //the speed that the snowflakes should swing from side to side

if( typeof( numFlakes ) != ‘number’ || Math.round( numFlakes ) != numFlakes || numFlakes < ) { numFlakes = 10; }

//draw the snowflakes

for( var x = 0; x < numFlakes; x++ ) { if( document.layers ) { //releave NS4 bug

document.write(‘<layer id=”snFlkDiv’+x+’”><img src=”’+pictureSrc+’” height=”’+pictureHeight+’” width=”’+pictureWidth+’” alt=”*” border=”0”></layer>’);

} else {

(18)

} }

//calculate initial positions (in portions of browser window size) var xcoords = new Array(), ycoords = new Array(), snFlkTemp; for( var x = 0; x < numFlakes; x++ ) {

xcoords[x] = ( x + ) / ( numFlakes + );

do { snFlkTemp = Math.round( ( numFlakes – ) * Math.random() ); } while( typeof( ycoords[snFlkTemp] ) == ‘number’ );

ycoords[snFlkTemp] = x / numFlakes; }

//now animate

function flakeFall() {

if( !getRefToDivNest(‘snFlkDiv0’) ) { return; }

var scrWidth = 0, scrHeight = 0, scrollHeight = 0, scrollWidth = 0;

//find screen settings for all variations Doing this every time allows for resizing and scrolling if( typeof( window.innerWidth ) == ‘number’ ) { scrWidth = window.innerWidth; scrHeight = window.innerHeight; } else {

if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {

scrWidth = document.documentElement.clientWidth; scrHeight = document.documentElement.clientHeight; } else {

if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { scrWidth = document.body.clientWidth; scrHeight = document.body.clientHeight; } } }

if( typeof( window.pageYOffset ) == ‘number’ ) { scrollHeight = pageYOffset; scrollWidth = pageXOffset; } else {

if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { scrollHeight = document.body.scrollTop; scrollWidth = document.body.scrollLeft; } else {

if( document.documentElement && ( document.documentElement.scrollLeft ||

document.documentElement.scrollTop ) ) { scrollHeight = document.documentElement.scrollTop; scrollWidth = document.documentElement.scrollLeft; } }

}

//move the snowflakes to their new position for( var x = 0; x < numFlakes; x++ ) {

if( ycoords[x] * scrHeight > scrHeight – pictureHeight ) { ycoords[x] = 0; } var divRef = getRefToDivNest(‘snFlkDiv’+x); if( !divRef ) { return; }

if( divRef.style ) { divRef = divRef.style; } var oPix = document.childNodes ? ‘px’ : 0; divRef.top = ( Math.round( ycoords[x] * scrHeight ) + scrollHeight ) + oPix;

divRef.left = ( Math.round( ( ( xcoords[x] * scrWidth ) – ( pictureWidth / ) ) + ( ( scrWidth / ( ( numFlakes + ) * ) ) * ( Math.sin( lrFlakes * ycoords[x] ) – Math.sin( * lrFlakes * ycoords[x] ) ) ) ) + scrollWidth ) + oPix;

ycoords[x] += downSpeed; }}

//DHTML handlers

function getRefToDivNest(divName) {

if( document.layers ) { return document.layers[divName]; } //NS4 if( document[divName] ) { return document[divName]; } //NS4 also

if( document.getElementById ) { return document.getElementById(divName); } //DOM (IE5+, NS6+, Mozilla0.9+, Opera)

if( document.all ) { return document.all[divName]; } //Proprietary DOM – IE4 return false;

}

(19)

-Mã code 13 kiểu chữ New, mới, hot

Các Thầy/ thiết kế chữ nhấp nháy theo ý Nếu khơng tự làm được, bạn copy code sau vào sau tiêu đề viết

Code1: ( chữ new)

<img src="http://freewebs.com/dophuongoanh/new.gif"> Code2: ( Hót)

<img src="http://ketnoibanbe.org/forum/images/icons/new.gif"> Code3: ( chữ new)

<img src="http://www.gdtd.com.vn/images/new.gif"> Code 4: ( Chữ New)

<img src="http://www.3c.com.vn/Uploaded/hoangtv/07-06-007/new_ani.gif"> Code 5: ( Mới)

<img src="http://thcsdetham.edu.vn/Home_news.gif">

Code 6: New có mũi tên

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

<img src="http://i649.photobucket.com/albums/uu213/tuongct1/icon-new.gif "> Code 8: New nhún nhẩy

<img src="http://i649.photobucket.com/albums/uu213/tuongct1/newtrang.gif "> Code 9: Chữ New xoay

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

<img src="http://www.3c.com.vn/Uploaded/hoant/anh3cdotcom/image004.gif "> Code 11: Chữ New ấn tượng

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

Code 12 Chữ New dịu mắt

<img src="http://www.vantholacviet.org/images/new.gif">

Code 13: Chữ New

(20)

Code quảng cáo hai bên trượt chạy tất trình duyệt

<style type="text/css"> float {

width: 100px; height: 800px;

border: solid 1px white; }

</style> </head>

<div style="width: 970px;height: 0px;">

<div id="a" class="float"><a HREF="http://caobang83.violet.vn" TARGET="_blank"> <img src=" http://thichnhac.com/test_float_banner.jpg" border="0"></a></div>

<div id="c" class="float"><a href=" http://caobang83.violet.vn" target="_blank"> <img src=" http://thichnhac.com/test_float_banner.jpg " border="0"></a></div> </div>

</body>

<script type="text/javascript"> function setPosition(id, position) { var store = {

ram : { top : 0, left : 0, right : 0, bottom : },

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() { 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;

(21)

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: 0, left: 910}); setPosition("c", {top: 0, left: 0}); </script>

Code quảng cáo trượt hai bên (cách 2)

Chắc hẳn lướt web bạn khơng lần thấy banner trượt bên trang web, Điều làm cho trang web đẹp cịn đem lại tính chuyên nghiệp cho trang web bạn Đối với trang web lớn vị trí quảng cáo hai bên chi phí cao Vì ln ln xuất người nhìn thấy đâu trang web Nhân tiện làm project NIIT q4 post cách làm quang cáo truotj bên cho bạn tham khảo

Trước hết copy đoạn code sau lưu lại với đuôi js chẳng hạn đặt file có tên quangcao.js: Cịn khơng muốn tạo riêng file khác copy tồn đoạn đưa vào thẻ <head> đoạn script </head>

<script language=”javascript”> var adRWidth=110;

var adLWidth=1002; function FloatTopDiv(){

startX = document.body.clientWidth - adRWidth, startY = -110; var ns = (navigator.appName.indexOf(’Netscape’) != -1); var d = document;

if (document.body.clientWidth < 980) startX = - adRWidth; function ml(id)

{

var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id]; if(d.layers)el.style=el;

el.sP=function(x,y) {

this.style.left=x;this.style.top=y; };

el.x = startX; el.y = startY; return el; }

window.stayTopLeft=function() {

(22)

{

ftlObj.x = - adRWidth;ftlObj.y = 0; ftlObj.sP(ftlObj.x, ftlObj.y); }

else {

if (document.documentElement && document.documentElement.scrollTop) var pY = ns ? pageYOffset : document.documentElement.scrollTop;

else if (document.body)

var pY = ns ? pageYOffset : document.body.scrollTop;

if (document.body.scrollTop > 10){ startY = } else { startY = 10 }; if (document.body.clientWidth >= 1024)

{

ftlObj.x = document.body.clientWidth - adRWidth; ftlObj.y += (pY + startY - ftlObj.y)/8;

ftlObj.sP(ftlObj.x, ftlObj.y); }

else {

ftlObj.x = startX;

ftlObj.y += (pY + startY - ftlObj.y)/8; ftlObj.sP(ftlObj.x, ftlObj.y);

} }

setTimeout(’stayTopLeft()’, 1); }

ftlObj = ml(’divAdRight’); stayTopLeft();

}

function FloatTopDiv2() {

startX2 = document.body.clientWidth - adLWidth, startY2 = -100; var ns2 = (navigator.appName.indexOf(’Netscape’) != -1);

var d2 = document;

if (document.body.clientWidth < 980) startX2 = -adRWidth; function ml2(id)

{

var el2=d2.getElementById?d2.getElementById(id):d2.all?d2.all[id]:d2.layers[id]; if(d2.layers)el2.style=el2;

el2.sP=function(x,y) {

this.style.left=x;this.style.top=y; };

el2.x = startX2; el2.y = startY2; return el2; }

window.stayTopLeft2=function() {

if (document.body.clientWidth < 980) {

ftlObj2.x = - adRWidth;ftlObj2.y = 0; ftlObj2.sP(ftlObj2.x, ftlObj2.y); }

else {

(23)

else if (document.body)

var pY2 = ns2 ? pageYOffset : document.body.scrollTop;

if (document.body.scrollTop > 10) { startY2 = } else { startY2 = 10 }; if (document.body.clientWidth >= 1024)

{

ftlObj2.x = 0;

ftlObj2.y += (pY2 + startY2 - ftlObj2.y)/8; ftlObj2.sP(ftlObj2.x, ftlObj2.y);

} else {

ftlObj2.x = startX2;

ftlObj2.y += (pY2 + startY2 - ftlObj2.y)/8; ftlObj2.sP(ftlObj2.x, ftlObj2.y);

} }

setTimeout(’stayTopLeft2()’, 1); }

ftlObj2 = ml2(’divAdLeft’); stayTopLeft2();

}

function ShowAdDiv() {

var objAdDivLeft = document.getElementById(’divAdLeft’); var objAdDivRight = document.getElementById(’divAdRight’); if (document.body.clientWidth < 980)

{

objAdDivLeft.style.left = - adRWidth; objAdDivRight.style.left = - adRWidth; }

else {

objAdDivLeft.style.left = 0;

objAdDivRight.style.left = document.body.clientWidth - adRWidth; FloatTopDiv();

FloatTopDiv2(); }

}

ShowAdDiv(); </script>

sau bạn copy đoạn code sau đưa vào trang bạn muốn hiển thị quảng cáo , Nếu file HTML đặt vào thẻ <body></body> , file php đặt hay bên

<!–Phần cho bên trái–>

<DIV id=divAdLeft style=’LEFT: 1px; WIDTH: 110px; POSITION: absolute; TOP: 71px’> <a href=”http://thichnhac.com” target=”_blank”>

<IMG hspace=0 src=’link đến ảnh’ width=110 border=0> </a>

</DIV>

<!–Phần cho bên phải–>

<DIV id=divAdRight style=’LEFT: 892px; WIDTH: 110px; POSITION: absolute; TOP: 71px’> <a href=”http://thichnhac.com” target=”_blank”>

(24)

</a> </DIV>

<div align=”center”> </div>

* đoạn script bên đưa vào <head></head>

<SCRIPT src=”quangcao.js” type=text/javascript></SCRIPT>

Thật đơn giản phải không? Chúc bạn thành công đừng quên nhận xét để người rút kinh nghiệm

HD:Coppy đoạn code vào notepad save đuôi js Gọi Blog theo cú pháp

<script src="jumptop.js"></script>

/***********************************************

* Bằng To Top Link Script- © trongbangstudio (http://caobang83.violet.vn) * Last updated Nov 13th, 09'

* This notice MUST stay intact for legal use

* Visit http://caobang83.violet.vn/ for full source code ***********************************************/

//Specify the text to display var displayed="[Top]"

///////////////////////////Do not edit below this line//////////// var logolink='javascript:window.scrollTo(0,0)'

var ns4=document.layers var ie4=document.all

var ns6=document.getElementById&&!document.all function ietruebody(){

return (document.compatMode!="BackCompat")? document.documentElement : document.body }

function regenerate(){ window.location.reload() }

function regenerate2(){ if (ns4)

setTimeout("window.onresize=regenerate",400) }

if (ie4||ns6)

document.write(''+displayed+'')

function createtext(){ //function for NS4 staticimage=new Layer(5)

staticimage.left=-300

staticimage.document.write(''+displayed+'') staticimage.document.close()

staticimage.visibility="show" regenerate2()

staticitns() }

function staticit(){ //function for IE4/ NS6

var w2=ns6? pageXOffset+w : ietruebody().scrollLeft+w var h2=ns6? pageYOffset+h : ietruebody().scrollTop+h crosslogo.style.left=w2+"px"

crosslogo.style.top=h2+"px" }

function staticit2(){ //function for NS4

staticimage.left=pageXOffset+window.innerWidth-staticimage.document.width-28 staticimage.top=pageYOffset+window.innerHeight-staticimage.document.height-10 }

function inserttext(){ //function for IE4/ NS6 if (ie4)

(25)

crosslogo=document.getElementById("logo") crosslogo.innerHTML=''+displayed+''

w=ns6 || window.opera? window.innerWidth-crosslogo.offsetWidth-20 : ietruebody().clientWidth-crosslogo.offsetWidth-10

h=ns6 || window.opera? window.innerHeight-crosslogo.offsetHeight-15 : ietruebody().clientHeight-crosslogo.offsetHeight-10

crosslogo.style.left=w+"px" crosslogo.style.top=h+"px" if (ie4)

window.onscroll=staticit else if (ns6)

startstatic=setInterval("staticit()",100) }

if (ie4||ns6){

if (window.addEventListener)

window.addEventListener("load", inserttext, false) else if (window.attachEvent)

window.attachEvent("onload", inserttext) else

window.onload=inserttext

window.onresize=new Function("window.location.reload()") }

else if (ns4)

window.onload=createtext

function staticitns(){ //function for NS4 startstatic=setInterval("staticit2()",90) }

Đàm Thị Xuân Uyên Nguyễn Văn Danh (trang riêng) Nguyễn Hữu Huân (trang riêng) "http://d.violet.vn/uploads/resources/492/info@123doc.org" qua http://www.totallyfreecursors.com/ ("http://downloads.totallyfreecursors.com/cursor_files/strtail.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/strtail.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/monkeyani.cur"), ("http://downloads.totallyfreecursors.com/thumbnails/monkey-ani.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/sparklepink.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/SparklePink.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/manchesterunitedbadge.cur"), ("http://downloads.totallyfreecursors.com/thumbnails/manchester-united-badge.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/babyrollani.cur"), ("http://downloads.totallyfreecursors.com/thumbnails/baby-roll-ani.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/hearttailup.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/hearttailup.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/frog26workinginbackground.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/frog26workinginbackground.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/frog26verticalresize.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/frog26verticalresize.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/tail2.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/Tail2.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/butterflyani1.cur"), ("http://downloads.totallyfreecursors.com/thumbnails/butterfly-ani1.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/naruto3.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/Naruto3.gif"), a "http://downloads.totallyfreecursors.com/public/CursorsLogo88-31.gif" ("http://downloads.totallyfreecursors.com/cursor_files/aliendance.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/aliendance.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/8ballflame.cur"), ("http://downloads.totallyfreecursors.com/thumbnails/8ball-flame.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/acespades.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/AceSpades.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/8balllg.cur"), ("http://downloads.totallyfreecursors.com/thumbnails/8BallLG.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/bounce.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/bounce.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/duchrabbit.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/DuchRabbit.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/iloveanimals1.cur"), ("http://downloads.totallyfreecursors.com/thumbnails/iloveanimals-pink.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/koala.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/Koala.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/kangaroo.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/kangaroo.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/panda1.cur"), ("http://downloads.totallyfreecursors.com/thumbnails/panda1.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/baby1.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/Baby1.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/babygirl-ani.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/BabyGirl-ani.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/argentina.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/ARGENTINA.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/england.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/ENGLAND.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/japan.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/JAPAN.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/vietnam.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/VIETNAM.gif"), a ("http://downloads.totallyfreecursors.com/cursor_files/lovemypets.ani"), ("http://downloads.totallyfreecursors.com/thumbnails/LoveMyPets.gif"), a ‘http://img244.imageshack.us/img244/1024/snowbw4.gi ‘http://s351.photobucket.com/albums/q463/web_tgth/th_Hoadao.gi "http://www.gdtd.com.vn/images/new.gif"> "http://thcsdetham.edu.vn/Home_news.gif" "http://i242.photobucket.com/albums/ff54/trannampro/2.gif "http://i649.photobucket.com/albums/uu213/tuongct1/icon-new.gif "http://i649.photobucket.com/albums/uu213/tuongct1/newtrang.gif "http://www.3c.com.vn/Uploaded/hoant/Anh%20xep/new1.gif "http://www.3c.com.vn/Uploaded/hoant/anh3cdotcom/image004.gif " http://thichnhac.com/test_float_banner.jpg" borde " http://caobang83.violet.vn" t ”http://thichnhac.c staticimage.document.write(''+displayed+' Cao Bằng @

Ngày đăng: 26/05/2021, 00:17

w