フォーラム


ゲスト  

ようこそ ゲスト さん。このフォーラムに投稿するには 登録が必要です。

ページ: [1]
トピック: 10 Seattle のウェルカムページにあるバナーを消す
DEKO
管理者
投稿数: 2690
10 Seattle のウェルカムページにあるバナーを消す
on: 2016/01/04 10:52 Mon

10 Seattle のウェルカムページにある広告バナーはデカくて邪魔ですのでこれを消してみます。
ウェルカムページの本体は $(BDS)\Welcomepage\ja にある default.htm です (日本語 UI の場合)。

        ...

<div class="header">
<div class="inheader">
<div class="menu active" id="menu1"><a onclick="javascript: setFrameURL(false); setActiveStyle('menu1');">Start Here</a></div>
<div class="menu" id="menu2"><a onclick="javascript: setFrameURL('http://www.embarcadero.com/SeattleTutorialsPage_en'); setActiveStyle('menu2');">Tutorials</a></div>
<div class="menu" id="menu5"><a onclick="javascript: setFrameURL('http://docwiki.embarcadero.com/RADStudio/Seattle/en/Main_Page'); setActiveStyle('menu5')">Documentation</a></div>
<div class="fclear"></div>
</div>
</div>
<div id="topbanner">
<div id="offlinebanners" style="text-align: center;">
<div>
<a href="http://community.embarcadero.com/?cid=701G0000000thZ6" target="_blank"><img src="css/img/RadStudio-10-Seattle_Offline-Welcome_700x100_community.png" width="700" height="100" alt="Find Developer Events, Join the Community, and Get Answers" title="Find Developer Events, Join the Community, and Get Answers"/></a>
</div>
</div>
<div id="onlinebanners" style="text-align: center; display:none">
<iframe width="700" height="100" id="banner_right" marginwidth="0" frameborder="0"></iframe>
</div>
</div>
<div class="fcontent">
<div class="content">
<div class="bt">
<div class="fleft">
...

 
太字の部分 (<div id="topbanner"> ~ </div>) を削除すればバナーは消えます。ですが、このままだとチュートリアルのフレームと最近開いたプロジェクトのフレームがおかしいので、以下も変更します。

    function setFrameHeight(){
//Setup the bottom frame with the right height
var height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
// height -= 184;
height -= 20;
// document.getElementById('load_html').style.height = height+"px";
document.getElementById('load_html').style.height = height-40+"px";
$(".fcontent").css("height", height+"px");
}

 
184 を 20 に変更、-40 を挿入、

    function resizePanels(){
var containerH = $('.fcontent').height();
// $("#recent-projects").css("height", ( containerH - 44) +"px");
$("#recent-projects").css("height", ( containerH - 84) +"px");
$("#favorite-projects").css("height", ( containerH - 388)+"px");
$('.fright').css('height', ($('.fright').height() + containerH) + "px");
}

 
44 を 84 に変更します。

するとこんな感じでスッキリします。

DEKO
管理者
投稿数: 2690
XE8 のウェルカムページにあるバナーを消す
on: 2016/01/05 06:13 Tue

XE8 のウェルカムページの本体は $(BDS)\Welcomepage\ja にある default.htm です (日本語 UI の場合)。

        <body>
<div class="header">
<div class="inheader">
<div class="menu active" id="menu1" onmouseover="setBlue(this);" onmouseleave="unsetBlue(this);"><a onclick="javascript: setActiveStyle('menu1'); setFrameURL('frame.html');">ここから開始</a></div>
<div class="menu" id="menu2" onmouseover="setBlue(this);" onmouseleave="unsetBlue(this);"><a onclick="javascript: setActiveStyle('menu2'); loadFrameContents('http://www.embarcadero.com/XE8TutorialsPage_ja');">チュートリアル</a></div>
<div class="menu" id="menu4" onmouseover="setBlue(this);" onmouseleave="unsetBlue(this);"><a onclick="javascript: setActiveStyle('menu4'); loadFrameContents('http://www.embarcadero.com/XE8CodeSamples_ja');" >コード サンプル</a></div>
<div class="menu" id="menu5" onmouseover="setBlue(this);" onmouseleave="unsetBlue(this);"><a onclick="javascript: setActiveStyle('menu5');loadFrameContents('http://docwiki.embarcadero.com/RADStudio/XE8/ja/');">ドキュメント</a></div>
<div class="fclear"></div>
</div>
</div>
<div id="topbanner">
<div id="offlinebanners" style="text-align: center;">
<div>
<a href="http://community.embarcadero.com" target="_blank"><img src="css/img/RadStudio_Offline_Welcome_700x100_community.png" width="700" height="100" alt="製品のアップデートの入手、技術ヒント、特別サービス" title="製品のアップデートの入手、技術ヒント、特別サービス"/></a>
</div>
</div>
<div id="onlinebanners" style="text-align: center; display:none">
<iframe width="700" height="100" id="banner_right" marginwidth="0" frameborder="0"></iframe>
</div>
</div>
<iframe id="load_html" marginwidth="0" frameborder="0">
</iframe>
<script>

 
太字の部分 (<div id="topbanner"> ~ </div>) を削除すればバナーは消えます。以下も変更します。

            //Setup the bottom frame with the right height
var height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
// height = height - 174;
height = height - 20;
// document.getElementById('load_html').style.height = height+"px";
document.getElementById('load_html').style.height = height-50+"px";

 
174 を 20 に変更、-50 を挿入します。XE8 のウェルカムページは IDE のリサイズに追従しないので、リサイズした時は F5 キーを押して更新する必要があります。

ページ: [1]
WP Forum Server by ForumPress | LucidCrew
バージョン: 1.7.5 ; ページロード: 0.021 sec.