Tiêu đề: 4 Tổng Hợp Code HTML - JavaScript hay cho web
8. Chữ ẩn hiện và thay đổi chữ
Code:
[font=Courier New]<script LANGUAGE="Javascript">
<!-- This script and many more are available free online at --> <!-- The Javascript Source!! http://thangbombh.sg.st --> <!-- ThangBomBH, [/font][url=http://clanyalz.forum-viet.com/mailto:thangbombh@thangbombh.zzn.com][font=Courier New][color=#ff0099]thangbombh@thangbombh.zzn.com[/color][/font][/url][font=Courier New]. -->
<!-- Begin // add as many or as few messages as you would like var msg=new Array() msg[0]="<CENTER>Chao mung cac ban den voi ThangBomBH Homepages ...!</CENTER>"; msg[1]="<CENTER>...Chuc cac ban luon thanh dat va vui ve.</CENTER>"; msg[2]="<CENTER>Just type in \"<A href='http://thangbombh.sg.st/'>Thangbombh.sg.st</A>\"</CENTER>"; msg[3]="<CENTER>Cam on cac ban da ghe tham !</CENTER>";
// set your first set of colors. Use as many or as few as you wish. var colors1=new Array("ffffff", "eeeeff", "ddddff", "ccccff", "bbbbff", "aaaaff", "9999ff", "8888ff", "7777ff", "6666ff", "5555ff", "4444ff", "3333ff","2222ff", "1111ff", "0000ff")
//set your second set of colors // *** must have exactly the same number of colors as the array above *** var colors2=new Array("ffffff", "ffeeee", "ffdddd", "ffcccc", "ffbbbb", "ffaaaa", "ff9999", "ff8888", "ff7777", "ff6666", "ff5555", "ff4444", "ff3333", "ff2222", "ff1111", "ff0000")
//set the height of the display in pixels high=60;
//set the width of the display in pixels wide=350;
//set the pixel coordinates for the upper left hand corner of the display Xpos=220; Ypos=180;
// move the display away from the edges of the background pad=15;
// set the background color of the display bgcol="ffffff";
//add a background image if you want. // *** for no image, just leave empty quotes (ex. cellbg=""; ) *** cellbg="faderbg.jpg";
// set the font fntFam="verdana,helvetica,arial"; fntSize=14;
// set how how many seconds you want the message to stay remain at totality. pause=2.5;
// Do not edit these values below!!!
icolor=0; mcolor=1; imsg=0; spWidth=wide-(2*pad); totality=false; glowing=true; var theMsg=""; var cellcontent=""; pause=pause*1000; if(cellbg.length>4){cellbg=" background="+cellbg} else{cellbg="";}