其實用這種硬編碼不能完全屏蔽,在IE工具條中的查看里,有一個選項,源文件。點擊這個就能看,我感覺除了要屏蔽右鍵,還要在瀏覽器上做文章,感覺挺困難.
十年的武川網站建設經驗,針對設計、前端、開發、售后、文案、推廣等六對一服務,響應快,48小時及時工作處理。成都全網營銷的優勢是能夠根據用戶設備顯示端的尺寸不同,自動調整武川建站的顯示方式,使網站能夠適用不同顯示終端,在瀏覽器中調整網站的寬度,無論在任何一種瀏覽器上瀏覽網站,都能展現優雅布局與設計,從而大程度地提升瀏覽體驗。成都創新互聯公司從事“武川網站設計”,“武川網站推廣”以來,每個客戶項目都認真落實執行。
HTML
HEAD
SCRIPT LANGUAGE="JavaScript"
!--
var show_Interval = null;
var hide_Interval = null;
var long_Interval = null;
var short_Interval = null;
function $(id){
return document.getElementById(id);
}
function showDiv(id){
clearInterval(hide_Interval)
show_Interval=setInterval("showDivSlow(\""+id+"\")", 100);
}
function showDivSlow(id){
if($(id).style.display=="none"){
$(id).style.display="block";
}
var opacity=$(id).filters.alpha.opacity;
if(opacity==100){
clearInterval(show_Interval)
}else{
$(id).filters.alpha.opacity=opacity+5;
}
}
function longDiv(id){
clearInterval(short_Interval)
long_Interval=setInterval("longDivSlow(\""+id+"\")", 100);
}
function longDivSlow(id){
var height=$(id).style.height;
height=parseInt(height.substr(0,height.length-2));
if(height==500){
clearInterval(long_Interval)
}else{
$(id).style.height=(height+5)+'px';
}
}
function shortDiv(id){
clearInterval(long_Interval)
short_Interval=setInterval("shortDivSlow(\""+id+"\")", 100);
}
function shortDivSlow(id){
var height=$(id).style.height;
height=parseInt(height.substr(0,height.length-2));
if(height==0){
clearInterval(short_Interval)
}else{
$(id).style.height=(height-5)+'px';
}
}
function hideDiv(id){
clearInterval(show_Interval)
hide_Interval=setInterval("hideDivSlow(\""+id+"\")", 100);
}
function hideDivSlow(id){
var opacity=$(id).filters.alpha.opacity;
if(opacity==0){
$(id).style.display="none";
clearInterval(hide_Interval)
}else{
$(id).filters.alpha.opacity=opacity-5;
}
}
//--
/SCRIPT
/HEAD
BODY
button onclick="showDiv(1)"showDiv/button
button onclick="hideDiv(1)"hideDiv/button
button onclick="longDiv(1)"longDiv/button
button onclick="shortDiv(1)"shortDiv/button
div id="1" style="background-color:'red';width:400px;height:400px;filter:alpha(opacity=50);"div
/BODY
/HTML
補充:div必須支持濾鏡,是IE才可以
補充2:不給分那我要哭了
在 eclipse 顯示文本內容的左邊框 右鍵 folding -enable folding
可以隱藏/展開 方法、注釋等
是網頁編程還是awt這塊的?網頁很簡單,div有個樣式為display,當設為none的時候就是隱藏了,為block為顯示。如果是awt這塊,我不是很清楚,自己去查下API看看Button有沒remove或replace這種方法,再把Text添加進去
這是ide的功能,你想知道ide是怎么做的?而且這個隱藏要有具體情況的吧,比如說方法體和import的邏輯明顯就不一樣。做法的法,word的文字處理功能比這個都要負責多了,
eclipse顯示被隱藏的文件或文件夾?
點擊左邊導航(Navigator或者PackageExplorer等)右上角的小三角 - Filters?
點擊需要顯示文件,讓復選框處于非選中狀態。
標題名稱:java打開隱藏代碼 java隱藏控件
文章網址:http://m.kartarina.com/article28/dodsijp.html
成都網站建設公司_創新互聯,為您提供移動網站建設、品牌網站建設、自適應網站、服務器托管、、定制網站
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯