Tan8/6Online
Dragon Quest
- 15/2/07
- 1,265
- 8
Lỗi trình duyệt thì chả có cách nào cả bạn ạ ! IF từ xưa tới nay đều không hỗ trợ các loại trình duyệt khác ngoài IE !![]()
mình xài IE bạn àh :p
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Lỗi trình duyệt thì chả có cách nào cả bạn ạ ! IF từ xưa tới nay đều không hỗ trợ các loại trình duyệt khác ngoài IE !![]()
[align=center]Chữ cần căn lề giữa[/align]
<script>
if(location.href.match('act=Post') || location.href.match('act=Msg') || location.href.match('index.php?')){
function tagCenter()
{
document.getElementsByName('Post')[0].value += " [align=center]Text[/align]"
}
[B][COLOR="Red"]var x = document.getElementsByTagName('td')
for(y=0;y<x.length;y++){
if(x[y].innerHTML.match(/Close all Tags/i) && x[y].className == "pformright"){
x[y].innerHTML +='<br>'
x[y].innerHTML +=' <input type="button" accesskey="center" value="CENTER" onclick="tagCenter();" class="codebuttons" name="center">'
}}}[/COLOR][/B]
</script>

Lâu không đụng đến IF.Mod ơi cái đoạn code kia không được.Chèn vô Footer rồi vẫn chả có hiện tượng gì xảy ra cả.
<script>
if(location.href.match('act=Post') || location.href.match('act=Msg') || location.href.match('index.php?')){
function tagYou()
{
document.getElementsByName('Post')[0].value += " /you"
}
function tagCenter()
{
document.getElementsByName('Post')[0].value += " [align=center]Text[/align]"
}
function tagMusic()
{
document.getElementsByName('Post')[0].value += " [music]URL[/music]"
}
function tagVideo()
{
document.getElementsByName('Post')[0].value += " [video]URL[/video]"
}
function tagFlash()
{
document.getElementsByName('Post')[0].value += " [flash]URL[/flash]"
}
function tagIframe()
{
document.getElementsByName('Post')[0].value += " [iframe]URL[/iframe]"
}
function tagHinh()
{
document.getElementsByName('Post')[0].value += " [hinh]URL[/hinh]"
}
var x = document.getElementsByTagName('td')
for(y=0;y<x.length;y++){
if(x[y].innerHTML.match(/Close all Tags/i) && x[y].className == "pformright"){
x[y].innerHTML +='<br>'
x[y].innerHTML +=' <input type="button" accesskey="you" value="YOU" onclick="tagYou();" class="codebuttons" name="you">'
x[y].innerHTML +=' <input type="button" accesskey="center" value="CENTER" onclick="tagCenter();" class="codebuttons" name="center">'
x[y].innerHTML +=' <input type="button" accesskey="music" value="MUSIC" onclick="tagMusic();" class="codebuttons" name="music">'
x[y].innerHTML +=' <input type="button" accesskey="left" value="VIDEO" onclick="tagVideo();" class="codebuttons" name="video">'
x[y].innerHTML +=' <input type="button" accesskey="flash" value="FLASH" onclick="tagFlash();" class="codebuttons" name="flash">'
x[y].innerHTML +=' <input type="button" accesskey="iframe" value="FRAME" onclick="tagIframe();" class="codebuttons" name="iframe">'
x[y].innerHTML +=' <input type="button" accesskey="hinh" value="HINH" onclick="tagHinh();" class="codebuttons" name="hinh">'
}}}
</script>
(thông cảm vì dạo này không có thời gian nên rất ngại động vào IF , với lại mình cũng không còn có forum IF để thử xem code còn chạy đựoc ko
)cho xin cái code khi forum đang load thì nó có cái hình báo đang tải.. giúp với cảm ơn

<div class="maintitle"> <font face="Times New Roman" color="#326205" size=3><b><Font color=#000000>DIỄN ĐÀN 10A2</font> </b></Font>
</div>
<div style='overflow:auto;height:200px;width:180px;color:blue'>
<a target=_blank href=http://s11.invisionfree.com/Ruihana/index.php?><center><b><img src="http://i63.photobucket.com/albums/h125/ruihana/new1.gif"> Thông Tin <img src="http://i63.photobucket.com/albums/h125/ruihana/new1.gif"></b></center></a><br><br>
<MARQUEE behavior='scroll' direction='up' height='220' scrollamount='1' scrolldelay='70' width='100%' onmouseover='this.stop()' onmouseout='this.start()'> <p align="justify">
<a href=http://z6.invisionfree.com/DienDanBaDinh/index.php?/
><b><img src="http://i63.photobucket.com/albums/h125/ruihana/ongsao.gif"> Diễn Đàn Ba Đình <img src="http://i63.photobucket.com/albums/h125/ruihana/ongsao.gif"></b></a>
<br><br>
<img src=http://70.85.169.212/3396/113/upload/p1097237.gif>
<a href=http://s9.invisionfree.com/muathu/index.php?act=idxact=idx>..: INVISIONFREE:..</a>
<br><br>
<img src=http://70.85.169.212/3396/113/upload/p1097237.gif>
<a href=http://s7.invisionfree.com/MOD_TONG_HOP/index.phpact=idx>SKIN INVISIONFREE</a>
<br><br>
<img src=http://70.85.169.212/3396/113/upload/p1097237.gif>
<a href=http://s3.invisionfree.com/xuantim/index.php>GIAO LUU</a>
<br><br>
</Marquee>
</div>
</div>
</div>
</td><td class="row2" valign="top"><!--coded by HolySavior at www.ifsupport.net //--><table align="right" width="30%" class="row2" valign="top"><tr><td><div class="tableborder">
<div class='tableborder'>
<div class='maintitle'> Clock</div>
<div class='tablepad'>
<center><iframe src="http://i2.photobucket.com/albums/y8/dntg/clockcalendar.swf"width="160" height="180" scrolling="no" frameborder="1"></iframe>
</div>
<div class="maintitle">Xem lịch</div>
<div class="tablepad">
<script> var day_of_week = new Array('Su','Mo','Tu','We','Th','Fr','Sa');var month_of_year = new Array('Tháng M?t','Tháng Hai',
'Tháng Ba','Tháng Tu','Tháng Nam',
'Tháng Sáu','Tháng B?y',
'Tháng Tám','Tháng Chín',
'Tháng Mu?i','Tháng M.M?t',
'Tháng M.Hai');var Calendar = new Date();var year = Calendar.getYear();var month = Calendar.getMonth();
var today = Calendar.getDate();var weekday = Calendar.getDay();var DAYS_OF_WEEK = 7;var DAYS_OF_MONTH = 31;var cal;Calendar.setDate(1);Calendar.setMonth(month);var TR_start = '<TR>';var TR_end = '</TR>';var highlight_start = '<TD WIDTH="10"><TABLE CELLSPACING=0 BORDER=1 BGCOLOR=DEDEFF BORDERCOLOR=ffcccc> <TR><TD WIDTH=10><B><CENTER>';var highlight_end = '</CENTER></TD></TR></TABLE></B>';var TD_start = '<TD WIDTH="20"><CENTER>';var TD_end = '</CENTER></TD>';cal = '<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 BORDERCOLOR=ffffff><TR><TD>';cal += '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=1>' + TR_start;cal += '<TD COLSPAN="' + DAYS_OF_WEEK + '" BGCOLOR="#ffffff"> <CENTER><B>';cal += month_of_year[month]+ ', ' + year + '</B>' + TD_end + TR_end;cal += TR_start;for(index=0; index < DAYS_OF_WEEK; index++) { if(weekday == index) cal += TD_start + '<B>' + day_of_week[index] + '</B>' + TD_end; else cal += TD_start + day_of_week[index] + TD_end;} cal += TD_end + TR_end;cal += TR_start;for(index=0; index < Calendar.getDay(); index++) cal += TD_start + ' ' + TD_end; for(index=0; index < DAYS_OF_MONTH; index++) { if( Calendar.getDate() > index ) { week_day =Calendar.getDay(); if(week_day == 0) cal += TR_start; if(week_day != DAYS_OF_WEEK) { var day = Calendar.getDate(); if( today==Calendar.getDate() ) cal += highlight_start + day + highlight_end + TD_end; else cal += TD_start + day + TD_end; } if(week_day == DAYS_OF_WEEK) cal += TR_end; } Calendar.setDate(Calendar.getDate()+1);} cal += '</TD></TR></TABLE></TABLE>';document.write(cal);</script>
<center>
</div>
</div>
</center>
</div>
</div>
<div class='tableborder'>
<div class='maintitle'><img src='http://67.18.37.14/style_images/1/nav_m.gif' border='0' alt='' width='8' height='8'> Liên Kết Logo Free</div>
<div class='tablepad'>
<marquee direction=up scrollamount=2><center>
<a href="http://s14.invisionfree.com/tuoitre8x/index.php?act=site"><img src="http://img240.imageshack.us/img240/7746/logo2ht.jpg
" border="0" alt="Tuoi Tre 8x" width="88" height="31"></a>
<br><br>
<a href="http://z10.invisionfree.com/ohlala/index.php?act=site" target="_blank"><img src="http://70.84.190.115/3262/104/upload/p823903.png" border="0" alt="ohlala.vnn.bz"></a>
<br><br>
<a href="http://tranhung.18.forumer.com/index.php?act=idx" target="_blank"><img src="http://i48.photobucket.com/albums/f243/muathu07/bame/TRAN_HUNG.gif" alt="Giải trí, giao lưu, học hỏi ..."></a>
<br><br>
<a href="http://s3.invisionfree.com/xuantim/index.php" target="_blank"><img src="http://i48.photobucket.com/albums/f243/muathu07/bame/akj0qb1.gif" border="0" alt="Yueding" width="88" height="31"></a><br><br>
<a href="http://s14.invisionfree.com/onlinelove" target="blank"> <img src="http://smg.photobucket.com/albums/v624/thanmayman/th_User.gif" border="0"alt="FanClub" / width="88" height="31"></a>
<br><br>
<a href="http://z7.invisionfree.com/MOD_TONG_HOP/index.php?act=idx" target="blank"> <img src="http://i48.photobucket.com/albums/f243/muathu07/bame/1LS1.gif" border="0"alt="Candy" / width="88" height="31"></a>
<br><br>
<a href="http://www.echip.com.vn/" target="_blank"><img src="http://www.echip.com.vn/echip.jpg" border="0" alt="Tuổi Trẻ Bạc Liêu" width="88" height="31"></a>
<br><br>
<a href="http://zaizaizone.info.ms/" target="_blank" alt="Zai Zai"><img src="http://tinypic.com/jax47c.gif"></a><br><br>
<a href="http://s9.invisionfree.com/muathu/index.php?act=idx" target="_blank"><img
src="http://i48.photobucket.com/albums/f243/muathu07/bame/HACKMOD.gif" alt="Giấc Mơ Tình" width="88" height="31"></a>
<br><br>
</center></marquee></div></div><div class="tableborder">
<div class="tableborder">
<div class="maintitle">Thời Tiết</div>
<div class="tablepad">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="row1" align="center">
Thủ đô Hà Nội<br />
<img src="http://banners.wunderground.com/banner/gizmotimetemp_both/language/www/global/stations/48820.gif"
alt="Ha Noi" height=41 width=127>
<br /><br />
Cố đô Huế<br />
<img src="http://banners.wunderground.com/banner/gizmotimetemp_both/language/www/global/stations/48852.gif"
alt="Co Do Hue" height=41 width=127><br /><br />
Tp Hồ Chí Minh
<br /><img src="http://banners.wunderground.com/banner/gizmotimetemp_both/language/www/global/stations/48900.gif"
alt="Ho Chi Minh" height=41 width=127><br /><br />
Tp Ðà Nẵng<br />
<img src="http://banners.wunderground.com/banner/gizmotimetemp_both/language/www/global/stations/48855.gif"
alt="Da Nang" height=41 width=127><br /><br />
</span></td>
</tr>
</table>
</div>
<div class="tableborder">
<div class="maintitle"> Tìm Kiếm</div>
<div class="tablepad"><center>
<TABLE><tr><td>
<FORM Gởi qua=GET action="http://www.google.com/search" target="_blank">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif"
border="0" ALT="Google" align="absmiddle"></A>
<INPUT TYPE=text name=q size=25 maxlength=255 value="" style="font-size:10px">
<INPUT type=submit name=btnG VALUE="Tìm kiếm" style="font-size:10px">
</td></tr>
</FORM>
</TABLE>
<FORM name=links><SELECT
onchange="window.open(this.options[this.selectedIndex].value,'_blank'); sites.options[0].selected=true"
size=1 name=sites border="0"> <OPTION value=""
selected> .:: Liên kết nhanh ::. </OPTION> <OPTION
value="">------ Tin tuc -----</OPTION>
<OPTION
value=http://www.ohlala.net.ms>OHLALA</OPTION>
<OPTION
value=http://www.laodong.com.vn>Bao lao dong</OPTION>
<OPTION value=http://www.vnexpress.net>Tin nhanh Viet
nam</OPTION> <OPTION
value=http://www.tuoitre.com.vn>Tuoi tre
Online</OPTION> <OPTION
value=http://infogate.vnn.vn>Infogate</OPTION> <OPTION
value="">------ The thao -----</OPTION>
<OPTION
value=http://thethao.vnn.vn/>Dien dan the
thao</OPTION> <OPTION
value=http://www.thethaovietnam.com.vn>The thao Viet
nam</OPTION> <OPTION
value=http://www.espnstar.com>ESPN</OPTION> <OPTION
value=http://www.soccernet.com>Soccer net</OPTION>
<OPTION value="">----- Live Score -----</OPTION>
<OPTION value=http://www.livescore.com>Live
Score</OPTION> <OPTION value="">----- Kinh doanh
------</OPTION>
<OPTION
value=http://business.vnn.vn/>Vnn business</OPTION>
<OPTION value=http://www.vnemart.com.vn/>Vietnam
Business Portal</OPTION> <OPTION
value=http://www.baomuaban.com>Bao mua ban</OPTION>
<OPTION value=http://tintuc.vnn.vn/forum/>3M
Forum</OPTION> <OPTION value="">----- Giai tri
----</OPTION> <OPTION
value=http://filmvn.com/main/index.php>Film
Vietnam</OPTION>
<OPTION
value=http://www.vnntelevision.net/>Truyen hinh truc
tuyen</OPTION> <OPTION
value=http://www.vtv.org.vn>Truyen hinh Viet
nam</OPTION>
<OPTION
value=http://itv.com.vn/>iTV</OPTION>
<OPTION
value=http://www.vnntelevision.net/>Truyen hinh Vnn
Internet</OPTION> <OPTION value="">----- Suc khoe
------</OPTION>
<OPTION
value=http://www.cimsi.org.vn/>Thong tin y
duoc</OPTION>
<OPTION
value=http://www.who.int/en/>WHO</OPTION> <OPTION
value="http://www.benhviennhitu.org.vn/ ">Benh vien
nhi TW</OPTION> <OPTION
value="http://www.hcmc-cordbloodbank.org.vn ">TT Huyet
hoc TPHCM</OPTION> <OPTION
value="http://www.medic.com.vn ">TT chuyen khoa
Medic</OPTION> <OPTION
value=http://www.doctorhuy.com>Chuyen khoa
mat</OPTION> <OPTION value="">----- Cong nghe
-----</OPTION> <OPTION
value="http://pcworld.com.vn ">The gioi vi
tinh</OPTION> <OPTION
value="http://www.vkx.com.vn ">Cong ty Thiet bi tong
dai</OPTION> <OPTION
value=http://www.cdit.com.vn>CDIT</OPTION> <OPTION
value="">----- Thoi tiet -----</OPTION> <OPTION
value="http://www.kttv-nb.org.vn ">Khi tuong thuy
van</OPTION><OPTION value=""
>--- Dien thoai di dong ---</OPTION>
<OPTION
value=http://www.nokia.com.vn/>Nokia Vietnam</OPTION>
<OPTION value=http://www.fptmobile.com.vn/>Fpt
mobile</OPTION> <OPTION
value=http://www.thegioimobi.com>Sieu thi
DTDD</OPTION></SELECT></FORM></P>
<STYLE TYPE="text/css">
BODY{cursor: url(http://www33.websamba.com/trongtuan/dochanh/relax/images/cursor.ani);}
a {cursor: url();}
</STYLE>
<style type="text/css">a:hover {background:url(http://www.geocities.com/mha87/redheart.gif); text-decoration: none;cursor: url(http://img95.imageshack.us/img95/7131/tim6kk.gif)}</style>
<!--ADD ANOTHER BOX HERE //-->
</td></tr></table><table valign="top"><tr>
<div class="tableborder">
<div class="maintitle">!! Welcome to Diễn đàn 10A2!!</div>
<div class="tablepad">
<center>
<script LANGUAGE="JavaScript">
<!--
// Store the date In avarlable
d = new Date()
dateText = ""
// Get the cuurent day and convert it to the name of the day
dayValue = d.getDay()
if(dayValue == 0)
dateText += "Chủ Nhật"
else if (dayValue == 1)
dateText += "Thứ Hai"
else if (dayValue == 2)
dateText += "Thứ Ba"
else if (dayValue == 3)
dateText += "Thứ Tư"
else if (dayValue == 4)
dateText += "Thứ Năm"
else if (dayValue == 5)
dateText += "Thứ Sáu"
else if (dayValue == 6)
dateText += "Thứ Bảy"
// Get the current date; if it's before 2000,add 1900
dateText += ", Ngày " + d.getDate()+","
// Get the current month and convert it to the name of the month
monthValue = d.getMonth()
dateText += " "
if (monthValue == 0)
dateText += "Tháng 1"
if (monthValue == 1)
dateText += "Tháng 2"
if (monthValue == 2)
dateText += "Tháng 3"
if (monthValue == 3)
dateText += "Tháng 4"
if (monthValue == 4)
dateText += "Tháng 5"
if (monthValue == 5)
dateText += "Tháng 6"
if (monthValue == 6)
dateText += "Tháng 7"
if (monthValue == 7)
dateText += "Tháng 8"
if (monthValue == 8)
dateText += "Tháng 9"
if (monthValue == 9)
dateText += "Tháng 10"
if (monthValue == 10)
dateText += "Tháng 11"
if (monthValue == 11)
dateText += "Tháng 12"
// Get the current year; if it's before 2000, add 1900
if (d.getYear() < 2000)
dateText += ", Năm " + (1900 + d.getYear())
else
dateText += ", Năm " + (d.getYear())
// Get the current minutes
minuteValue = d.getMinutes()
if (minuteValue < 10)
minuteValue = "0" + minuteValue
// Get the current hours
hourValue = d.getHours()
// Customize the greeting based on the current hours
if (hourValue < 12)
{
greeting = "<center>Chào buổi sáng!</center>"
greeting1 = "<br><center>Chúc các bạn một ngày thành công.</center>"
timeText = " Bây giờ là: " + hourValue + ":" + minuteValue + " AM"
}
else if (hourValue == 12)
{
greeting = "<center>Chào buổi trưa!</center>"
greeting1 = "<br><center>Chúc các bạn có một buổi chiều may mắn.</center>"
timeText = " Bây giờ là: " + hourValue + ":" + minuteValue + " PM"
}
else if (hourValue < 14)
{
greeting = "<center>Chào buổi trưa! </center>"
greeting1 = "<br><center>Chúc các bạn có một buổi chiều may mắn.</center>"
timeText = " Luc " + (hourValue - 12) + ":" + minuteValue + " PM"
}
else if (hourValue < 18)
{
greeting = "<center>Chào buổi chiều!</center>"
greeting1 = "<br><center>Chúc các bạn có một buổi tối hạnh phúc.</center>"
timeText = " Bây giờ là: " + (hourValue - 12) + ":" + minuteValue + " PM"
}
else
{
greeting = "<center>Chào buổi tối! </center>"
greeting1 = "<br><center>Chúc các bạn một ngủ ngon cùng những giấc mơ đẹp.</center>"
timeText = " Bây giờ là: " + (hourValue - 12) + ":" + minuteValue + " PM"
}
// Write the greeting, the date, and the time to the page
document.write(greeting + timeText + "."+" <br> "+dateText + greeting1)
//-->
</script>
<!----------------SEND YAHOO SHARE-------------------->
<script>document.write('<BODY bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0 marginheight="0" marginwidth="0">');</SCRIPT>
<script>
Send=function()
{
window.location='ymsgr:sendIM?'+nick.value+'&m=Mình đang truy cập vào website http://diendan10a2.forever.as có rat nhieu cai hay.Đây là trang diễn đàn của lớp 10A2 trường Sương Nguyệt Anh Q10. Lớ[ mình rất vui, bạn vào xem chung cho vui! :x';
}
send=function()
{
if (nick.value=='')
nick.value='Black_money123';
txtCmd='ymsgr:sendIM?'+nick.value;
sendIM.href=txtCmd;
}
</SCRIPT>
<BODY>
<!-------------YAHOO------------------>
<b><font color=#ff3399>
<BR>Để gởi tặng trang web này cho người quen của bạn.<br>
Bạn hãy nhập nick Yahoo Messeger của người nhận.<br>
Sau đó nhấn nút Send hoặc Enter 2 cái </b></font>
<br><!---send---><IMG height=30
src="http://209.85.12.232/4329/45/emo/126.gif"> <INPUT size=23
name=nick> <INPUT onclick=Send() type=submit value=Send>
<center><font color="red"><b>Mọi thắc mắc, đóng góp ý kiến liên hệ qua Y!M :</b></font> <a style="text-decoration: none" href="ymsgr:sendim?black_money123"><img src="http://mail.opi.yahoo.com/online?u=black_money123&m=g&t=1" align=middle border="0">
<!-----------------------BO DEM LUOT TRUY CAP-------------->
<hr>
<br><br><br><br><br><br><b>Đã Có:</b><br><br>
<div align="center"><a href="http://www.amazingcounters.com"><img border="0" src="http://cb.amazingcounters.com/counter.php?i=2027144&c=6081745" alt="HTML Web Counter"></a><br><br><small><a href="http://z3.invisionfree.com/DienDan10A2/"><font color="#7e7e7e">Lượt Truy Cập</font></a> <a href="http://z3.invisionfree.com/DienDan10A2/"><font color="#345927">Diễn đàn 10A2</font></a></small></div>
xin lỗi tui có nhớ là IF vẫn có thể dùng AJAX và tôi có chèn thêm vài code AJAX vẫn sài được và nếu mod nghi ngờ thì vô http://trochuyen.info.tm/index.php nó có cho vài code AJAX.tui cũng ko muốn dùng cái hình báo đang tải,nhưng muốn xin cái code mà đang load thì có chữ báo đang tải cũng được,ai có cho xin vớiCái hình đang tải đó chỉ hoạt động khi bạn dùng công nghê AJAX , forum IF không hỗ trợ AJAX nên bắt buộc phải load lại mỗi trang trước khi hiện được nội dung ra ! Chính vì thế mà ko có code nào làm đựoc thế đâu bạn ạ !
Hoặc nếu bạn có tìm đựoc 1 forum IF nào có cái này , làm ơn hãy gửi cho mình để mình tham khảo xem sao :![]()
xin lỗi tui có nhớ là IF vẫn có thể dùng AJAX và tôi có chèn thêm vài code AJAX vẫn sài được và nếu mod nghi ngờ thì vô http://trochuyen.info.tm/index.php nó có cho vài code AJAX.tui cũng ko muốn dùng cái hình báo đang tải,nhưng muốn xin cái code mà đang load thì có chữ báo đang tải cũng được,ai có cho xin với

IF không có khả năng này đâu bạn. Mà kể cả thằng Vbb tui cũng chưa bao h thấy cảMình muốn chèn bảng điểm vào diễn đàn cho các bạn cùng lớp xem, giống như Excel vậy mình phải làm sao.
