Показать сообщение отдельно
  #8 (permalink)  
Старый 25.02.2011, 20:00
Новичок на форуме
Отправить личное сообщение для AKIMbl4 Посмотреть профиль Найти все сообщения от AKIMbl4
 
Регистрация: 24.02.2011
Сообщений: 6

<script language="Javascript">
function SetBoxText($show) {
var X = document.getElementById("box_text");
var Y = document.getElementById("layer_" + $show);

X.innerHTML = Y.innerHTML;

$hide = "welcome";
if ($show == "welcome") $hide = "license";
with (document.getElementById("button_" + $hide).style) {
backgroundColor = "#403d3c";
color = "white";
}
$hide = "license";
if ($show == "license") $hide = "version";
with (document.getElementById("button_" + $hide).style) {
backgroundColor = "#403d3c";
color = "white";
}
$hide = "version";
if ($show == "version") $hide = "welcome";
with (document.getElementById("button_" + $hide).style) {
backgroundColor = "#403d3c";
color = "white";
}
$hide = "desclaimer";
if ($show == "desclaimer") $hide = "license";
with (document.getElementById("button_" + $hide).style) {
backgroundColor = "#403d3c";
color = "white";
}
$hide = "desclaimers";
if ($show == "desclaimers") $hide = "license";
with (document.getElementById("button_" + $hide).style) {
backgroundColor = "403d3c";
color = "white";
}
$hide = "desclaimers1";
if ($show == "desclaimers1") $hide = "license";
with (document.getElementById("button_" + $hide).style) {
backgroundColor = "#403d3c";
color = "white";
}

with (document.getElementById("button_" + $show).style) {
backgroundColor = "#242424";
color = "#e4761d";
}
return true;
}
</script>

<style>
<!--
.welcome_button
{
position: relative;
font-weight: bold;
height: 20px;
border-top: 1px solid #8f8f8f;
border-right: 1px solid #8f8f8f;
border-left: 1px solid #8f8f8f;
border-bottom: 0px;
padding: 5px;
margin-bottom: 0px;
cursor: pointer;
text-align: center;
}

.welcome_box
{
position: absolute;
height: 0px;
width: 595px;
overflow: hidden;
visibility: hidden;
}
-->
</style>
<div id="box_Добропожаловать">
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<tbody><tr>
<td>
<span class="welcome_button" id="button_welcome" style="color: black; background-color: rgb(87, 123, 171);" onclick="return SetBoxText('welcome');">категория1</span>
<span class="welcome_button" id="button_license" style="color: black; background-color: rgb(99, 135, 183);" onclick="return SetBoxText('license');">категория2</span>
<span class="welcome_button" id="button_version" style="color: black; background-color: rgb(99, 135, 183);" onclick="return SetBoxText('version');">категория3</span>
<span class="welcome_button" id="button_desclaimer" style="color: black; background-color: rgb(99, 135, 183);" onclick="return SetBoxText('desclaimer');">категория4</span>
<span class="welcome_button" id="button_desclaimers" style="color: black; background-color: rgb(99, 135, 183);" onclick="return SetBoxText('desclaimers');">категория5</span>
<span class="welcome_button" id="button_desclaimers1" style="color: black; background-color: rgb(99, 135, 183);" onclick="return SetBoxText('desclaimers1');">категория6</span>
</td>
</tr><tr>
<td>
<div id="box_text" style="border: 1px solid rgb(143, 143, 143); padding: 0px; overflow: auto;">
<span class="small">
</span>
</div>

<div class="welcome_box" id="layer_welcome">
<span class="small">
контент1
</span>
</div>

<div class="welcome_box" id="layer_license">
<span class="small">
контент2
</span>
</div>

<div class="welcome_box" id="layer_version">
<span class="small">
контент3
</span>
</div>

<div class="welcome_box" id="layer_desclaimer">
<span class="small">
контент4
</span>
</div>

<div class="welcome_box" id="layer_desclaimers">
<span class="small">
контент5
</span>
</div>

<div class="welcome_box" id="layer_desclaimers1">
<span class="small">
контент6
</span>
</div>

</td></tr></tbody></table>
<script language="Javascript"> SetBoxText('welcome');</script>


мой ЯД:41001775440750
Жду оплату, не оплатите будете кидалой!
Ответить с цитированием