Để 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>
|