Bài Mới Nhất | Gửi SMS miễn phí | Code ZB | Hỏi Đáp ZB | Chit Chat | Thủ Thuật Blog| Up Hình & TL | Giải Trí |
Welcome Guest [Log In] [Register]


Add Reply
Code xóa dòng : Welcome : Guest [Log in] [Register]
Topic Started: 08/09/2010 - 06:01 pm (1,212 Views)
dmob
Member Avatar


Để xóa dòng Welcome : Guest [Log in] [Register] bạn thêm đoạn code sau vào giữa <--! SUBMENU --> và <--! NAV --> :

Quote:
 
<script>
/*Tim - TopMenu Merge */
/*url is the image on the submenu tabs url. url2 is the image for Pages tab.*/
/*Place is the placement of the bar. "#logo" is above the logo, "#wrap" is bellow */
/*Choose whether to include webpages. 0 no, 1 yes */
/*wpid is an array of the ID of your pages. wpname is the name for the webpage */

var url = "http://z3.ifrm.com/static/1/m_acp.png";
var url2 = "http://z3.ifrm.com/static/1/m_acp.png";
var place ="#logo";
var wp = 1;
var sm = 0;
var wpid = new Array("testpages333","pagetest1");
var wpname = new Array("TestPage","PageTest");

$(document).ready(function(){
var htmlStr = $("#top_info").html();
var htmlStr3 = $("#top_menu").html();
if (htmlStr3 == null){htmlStr3 = "";}
var htmlStr2 = $("#submenu").html();
htmlStr2 = "<li id=\"menu_ucp\"><a><img src='" + url + "' alt='ACP' />Submenu</a><ul><li>" + htmlStr2 + "</li></ul></li>";

if (wp == 1) {
htmlStr4 = "<li id=\"menu_ucp\"><a><img src='" + url2 + "' alt='ACP' />Pages</a><ul><li>";
for(i=0;i<wpid.length;i++){
htmlStr4 += "<a href\"" + main_url +"/pages/" + wpid +"/>" + wpname + "</a>";
}
htmlStr4 += "</li></ul></li>";
} else {
var htmlStr4 = "";
}

if (sm == 1) {
$("#submenu").remove();
} else {
htmlStr2 = "";
}
$("#top").remove();$("#top_bar").remove();;$("#submenu_bar").remove();
$(place).prepend("<div id=\"top\"><div id=\"top_info\">" + htmlStr + "</div><ul id=\"top_menu\" class=\"drop_menu\">" +htmlStr4 + htmlStr2 + htmlStr3 + "</ul></div>");
});
</script>


Có thể không phải là số 1 nhưng là duy nhất!
Posted Image




Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Tphượt cẩm nang · Next Topic »
Add Reply




Xem tốt nhất trên các trình duyệt FireFox hoặc Google Chrome ở độ phân giải 1024 x 768 pixels.
Diễn đàn là một hệ thống mở, chúng tôi sẽ không chịu trách nhiệm về nội dung đăng tải do người dùng đưa lên.