Trang chủ
Bài viết mới
Diễn đàn
Bài mới trên hồ sơ
Hoạt động mới nhất
VIDEO
Mùa Tết
Văn Học Trẻ
Văn Học News
Media
New media
New comments
Search media
Đại Học
Đại cương
Chuyên ngành
Triết học
Kinh tế
KHXH & NV
Công nghệ thông tin
Khoa học kĩ thuật
Luận văn, tiểu luận
Phổ Thông
Lớp 12
Ngữ văn 12
Lớp 11
Ngữ văn 11
Lớp 10
Ngữ văn 10
LỚP 9
Ngữ văn 9
Lớp 8
Ngữ văn 8
Lớp 7
Ngữ văn 7
Lớp 6
Ngữ văn 6
Tiểu học
Thành viên
Thành viên trực tuyến
Bài mới trên hồ sơ
Tìm trong hồ sơ cá nhân
Credits
Transactions
Xu: 0
Đăng nhập
Đăng ký
Có gì mới?
Tìm kiếm
Tìm kiếm
Chỉ tìm trong tiêu đề
Bởi:
Hoạt động mới nhất
Đăng ký
Menu
Đăng nhập
Đăng ký
Install the app
Cài đặt
Chào mừng Bạn tham gia Diễn Đàn VNKienThuc.com -
Định hướng Forum
Kiến Thức
- HÃY TẠO CHỦ ĐỀ KIẾN THỨC HỮU ÍCH VÀ CÙNG NHAU THẢO LUẬN Kết nối:
VNK X
-
VNK groups
| Nhà Tài Trợ:
BhnongFood X
-
Bhnong groups
-
Đặt mua Bánh Bhnong
CÔNG NGHỆ
Công Nghệ Thông Tin
Web Development
Mod quảng cáo + thông báo đẹp nhẹ
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Trả lời chủ đề
Nội dung
<blockquote data-quote="Mr.Quangvd" data-source="post: 38379" data-attributes="member: 3995"><p>Cái này chỉ phải sửa temp thôi nên khá đơn giản :</p><p>Đặc biệt cái quảng cáo có thể chạy nhiều hình ảnh. </p><p>Demo : <a href="https://thinhlong.info/forum" target="_blank">https://thinhlong.info/forum</a></p><p>Hướng dẫn :</p><p>Các bạn vào forum home tìm :</p><p></p><p>[PHP]$navbar[/PHP]</p><p></p><p>Thêm phía dưới </p><p></p><p>[PHP]<!-- code quang cao + thong bao --></p><p><table class="caothe_hot" width="100%" align="center" border="0" cellpadding="10" cellspacing="1"></p><p><tbody><tr></p><p><td width="100%" align="left"></p><p></br></p><p><!-- info --></p><p></p><p><div>•&nbsp;<a href="https://thinhlong.info/forum/showthread.php?t=6343" rel="nofollow" target="_blank&quot;"><font color="red"><b>Thành lập Hội sinh viên Thịnh Long</a></b></div></p><p></p><p><div>•&nbsp;<a href="https://thinhlong.net/forum/showthread.php?t=4907" rel="nofollow" target="_blank&quot;"><font color="blue"><b>Thông báo lập box cho các lớp</a></b></div></p><p></p><p><div>•&nbsp;<a href="https://thinhlong.net/forum/forumdisplay.php?f=13" rel="nofollow" target="_blank&quot;"><font color="blue"><b>Hướng dẫn sử dụng diễn đàn</a></b></div></p><p></p><p><div>•&nbsp;<a href="https://thinhlong.net/forum/announcement.php?f=14&a=1" rel="nofollow" target="_blank&quot;"><font color="blue"><b>Box lớp của bạn</b></a></div></p><p></p><p><div>•&nbsp;<a href="https://thinhlong.net/forum/announcement.php?f=14&a=1" rel="nofollow" target="_blank&quot;"><font color="blue"><b>Đóng góp ý kiến của bạn</a></b></div></p><p></p><p><div>•&nbsp;<a href="https://thinhlong.net/forum/announcement.php?f=14&a=1" rel="nofollow" target="_blank&quot;"><font color="blue"><b>Thành viên BQT</a></b></div></p><p></p><p><div>•&nbsp;<a href="https://thinhlong.net/forum/announcement.php?f=14&a=1" rel="nofollow" target="_blank&quot;"><font color="red"><b>Nội quy diễn đàn ThinhLong.Net</a></b></div></p><p><!-- /info --></p><p></td></p><p> <td></p><p> </p><p> <!-- Top ads here --></p><p></p><p></p><p> </p><p><SCRIPT language=JavaScript1.2></p><p></p><p></p><p></p><p>Var slideshow_width='384px';</p><p>Var slideshow_height='103px';</p><p>Var pause=3000;</p><p></p><p>Var dropimages=new Array()</p><p>Var linkimages=new Array()</p><p></p><p>Dropimages[0]="https://thinhlong.info/ads/t1.jpg"; linkimages[0]="#index";dropimages[1]="https://thinhlong.info/ads/t1.jpg"; linkimages[1]="#";dropimages[2]="https://thinhlong.info/ads/t2.jpg"; linkimages[2]="/forum";</p><p>Dropimages[3]="https://thinhlong.info/ads/t3.gif"; linkimages[3]="/forum";dropimages[4]="ads/t4.gif"; linkimages[4]="forum";dropimages[5]="https://thinhlong.info/ads/t5.gif"; linkimages[5]="/forum";</p><p>Dropimages[6]="https://thinhlong.info/ads/t6.jpg"; linkimages[6]="/forum/forumdisplay.php?f=425";</p><p>Var preloadedimages=new Array()</p><p>For (p=0;p<dropimages.length;p++){</p><p>Preloadedimages[p]=new Image()</p><p>Preloadedimages[p].src=dropimages[p]</p><p>}</p><p></p><p>Var ie4=document.all</p><p>Var dom=document.getElementById</p><p></p><p>If (ie4||dom)</p><p>Document.write('<div style="text-align:left;position:relative;width:'+slideshow_width+';height:'+slideshow_height+';overflow:hidden"><div id="canvas0" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:-'+slideshow_height+'"></div><div id="canvas1" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:-'+slideshow_height+'"></div></div>')</p><p>Else</p><p></p><p>//document.write('<a href="' + linkimages[0] + '"><img border="0" name="defaultslide" src="'+dropimages[0]+'"></a>')</p><p></p><p>Var Curpos=parseInt(slideshow_height)*(-1)</p><p>Var degree=5</p><p>Var curcanvas="canvas0"</p><p>Var curimageindex=0</p><p>Var nextimageindex=1</p><p></p><p></p><p>Function movepic(){</p><p>If (curpos<0){</p><p>Curpos=Math.min(curpos+degree,0)</p><p>Tempobj.style.top=curpos+"px"</p><p>}</p><p>Else{</p><p>ClearInterval(dropslide)</p><p>Nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"</p><p>Tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)</p><p>Tempobj.innerHTML='<a href="' + linkimages[nextimageindex] + '"><img border="0" src="'+dropimages[nextimageindex]+'"></a>'</p><p>Nextimageindex=(nextimageindex<dropimages.length-1)? nextimageindex+1 : 0</p><p>SetTimeout("Rotateimage()",pause)</p><p>}</p><p>}</p><p></p><p>Function Rotateimage(){</p><p>If (ie4||dom){</p><p>Resetit(curcanvas)</p><p>Var crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)</p><p>Crossobj.style.zIndex++</p><p>Var temp='setInterval("movepic()",50)'</p><p>Dropslide=eval(temp)</p><p>Curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"</p><p>}</p><p>Else</p><p>Document.images.defaultslide.src=dropimages[curimageindex]</p><p>Curimageindex=(curimageindex<dropimages.length-1)? curimageindex+1 : 0</p><p>}</p><p></p><p>Function resetit(what){</p><p>Curpos=parseInt(slideshow_height)*(-1)</p><p>Var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)</p><p>Crossobj.style.top=curpos+"px"</p><p>}</p><p></p><p>Function startit(){</p><p>Var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)</p><p>Crossobj.innerHTML='<img border="0" href="' + linkimages[curimageindex] + '" src="'+dropimages[curimageindex]+'"></a>'</p><p>Rotateimage()</p><p>}</p><p></p><p>If (ie4||dom)</p><p>Window.onload=startit</p><p>Else</p><p>setInterval("Rotateimage()",pause)</p><p></p><p></SCRIPT> </p><p> </p><p> <!-- / Top ads --></p><p></td></p><p></p><p></tr></p><p></tbody></table></p><p><br></p><p></br></p><p><!-- / code quang cao + thong bao -->[/PHP]</p><p></p><p>Vào main css thêm vào bên dưới </p><p></p><p>[PHP].caothe_hot{</p><p>Border:1px dashed #666666;</p><p>Background:#eeeeee;</p><p>Margin-top:-1px;</p><p>*html .borhot</p><p>Border:1px dashed #666666;</p><p>Background:#eeeeee;</p><p>margin-top:-2px;}[/PHP]</p><p></p><p>Ra ngoài forum home ấn F5 là ok rồi đó .</p></blockquote><p></p>
[QUOTE="Mr.Quangvd, post: 38379, member: 3995"] Cái này chỉ phải sửa temp thôi nên khá đơn giản : Đặc biệt cái quảng cáo có thể chạy nhiều hình ảnh. Demo : [URL]https://thinhlong.info/forum[/URL] Hướng dẫn : Các bạn vào forum home tìm : [PHP]$navbar[/PHP] Thêm phía dưới [PHP]<!-- code quang cao + thong bao --> <table class="caothe_hot" width="100%" align="center" border="0" cellpadding="10" cellspacing="1"> <tbody><tr> <td width="100%" align="left"> </br> <!-- info --> <div>• <a href="https://thinhlong.info/forum/showthread.php?t=6343" rel="nofollow" target="_blank""><font color="red"><b>Thành lập Hội sinh viên Thịnh Long</a></b></div> <div>• <a href="https://thinhlong.net/forum/showthread.php?t=4907" rel="nofollow" target="_blank""><font color="blue"><b>Thông báo lập box cho các lớp</a></b></div> <div>• <a href="https://thinhlong.net/forum/forumdisplay.php?f=13" rel="nofollow" target="_blank""><font color="blue"><b>Hướng dẫn sử dụng diễn đàn</a></b></div> <div>• <a href="https://thinhlong.net/forum/announcement.php?f=14&a=1" rel="nofollow" target="_blank""><font color="blue"><b>Box lớp của bạn</b></a></div> <div>• <a href="https://thinhlong.net/forum/announcement.php?f=14&a=1" rel="nofollow" target="_blank""><font color="blue"><b>Đóng góp ý kiến của bạn</a></b></div> <div>• <a href="https://thinhlong.net/forum/announcement.php?f=14&a=1" rel="nofollow" target="_blank""><font color="blue"><b>Thành viên BQT</a></b></div> <div>• <a href="https://thinhlong.net/forum/announcement.php?f=14&a=1" rel="nofollow" target="_blank""><font color="red"><b>Nội quy diễn đàn ThinhLong.Net</a></b></div> <!-- /info --> </td> <td> <!-- Top ads here --> <SCRIPT language=JavaScript1.2> Var slideshow_width='384px'; Var slideshow_height='103px'; Var pause=3000; Var dropimages=new Array() Var linkimages=new Array() Dropimages[0]="https://thinhlong.info/ads/t1.jpg"; linkimages[0]="#index";dropimages[1]="https://thinhlong.info/ads/t1.jpg"; linkimages[1]="#";dropimages[2]="https://thinhlong.info/ads/t2.jpg"; linkimages[2]="/forum"; Dropimages[3]="https://thinhlong.info/ads/t3.gif"; linkimages[3]="/forum";dropimages[4]="ads/t4.gif"; linkimages[4]="forum";dropimages[5]="https://thinhlong.info/ads/t5.gif"; linkimages[5]="/forum"; Dropimages[6]="https://thinhlong.info/ads/t6.jpg"; linkimages[6]="/forum/forumdisplay.php?f=425"; Var preloadedimages=new Array() For (p=0;p<dropimages.length;p++){ Preloadedimages[p]=new Image() Preloadedimages[p].src=dropimages[p] } Var ie4=document.all Var dom=document.getElementById If (ie4||dom) Document.write('<div style="text-align:left;position:relative;width:'+slideshow_width+';height:'+slideshow_height+';overflow:hidden"><div id="canvas0" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:-'+slideshow_height+'"></div><div id="canvas1" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:-'+slideshow_height+'"></div></div>') Else //document.write('<a href="' + linkimages[0] + '"><img border="0" name="defaultslide" src="'+dropimages[0]+'"></a>') Var Curpos=parseInt(slideshow_height)*(-1) Var degree=5 Var curcanvas="canvas0" Var curimageindex=0 Var nextimageindex=1 Function movepic(){ If (curpos<0){ Curpos=Math.min(curpos+degree,0) Tempobj.style.top=curpos+"px" } Else{ ClearInterval(dropslide) Nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1" Tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas) Tempobj.innerHTML='<a href="' + linkimages[nextimageindex] + '"><img border="0" src="'+dropimages[nextimageindex]+'"></a>' Nextimageindex=(nextimageindex<dropimages.length-1)? nextimageindex+1 : 0 SetTimeout("Rotateimage()",pause) } } Function Rotateimage(){ If (ie4||dom){ Resetit(curcanvas) Var crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas) Crossobj.style.zIndex++ Var temp='setInterval("movepic()",50)' Dropslide=eval(temp) Curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0" } Else Document.images.defaultslide.src=dropimages[curimageindex] Curimageindex=(curimageindex<dropimages.length-1)? curimageindex+1 : 0 } Function resetit(what){ Curpos=parseInt(slideshow_height)*(-1) Var crossobj=ie4? eval("document.all."+what) : document.getElementById(what) Crossobj.style.top=curpos+"px" } Function startit(){ Var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas) Crossobj.innerHTML='<img border="0" href="' + linkimages[curimageindex] + '" src="'+dropimages[curimageindex]+'"></a>' Rotateimage() } If (ie4||dom) Window.onload=startit Else setInterval("Rotateimage()",pause) </SCRIPT> <!-- / Top ads --> </td> </tr> </tbody></table> <br> </br> <!-- / code quang cao + thong bao -->[/PHP] Vào main css thêm vào bên dưới [PHP].caothe_hot{ Border:1px dashed #666666; Background:#eeeeee; Margin-top:-1px; *html .borhot Border:1px dashed #666666; Background:#eeeeee; margin-top:-2px;}[/PHP] Ra ngoài forum home ấn F5 là ok rồi đó . [/QUOTE]
Tên
Mã xác nhận
Gửi trả lời
CÔNG NGHỆ
Công Nghệ Thông Tin
Web Development
Mod quảng cáo + thông báo đẹp nhẹ
Top