Commit 99dfe841 authored by Nemo Ma's avatar Nemo Ma Committed by GitHub

Merge pull request #37 from hikawiier/waaagh

fix2
parents 1f57a442 3d88ead4
......@@ -365,19 +365,32 @@ background-image: url("../../img/footer_line.gif");
/* tooltip样式 摆脱title了! */
span[tooltip] {
position: relative;
overflow: auto;
}
span[tooltip]:hover:before {
content: attr(tooltip);
overflow: auto; padding: 5px;
padding: 5px;
font: bold 10pt "微软雅黑" serif; color: white;
white-space:pre-line;
text-shadow:3px 3px 3px #3b3535; text-align: center; text-fill-color: white; -webkit-text-fill-color: white;
background-size: 0; background-clip: border-box; background-color: rgba(198, 114, 199, 0.8);
top: attr(tooltip); left: attr(tooltip); border-radius: 2px; z-index: 20;
border-radius: 4px; z-index: 50;
transform: translate(-5px, 20px);
width: 160px; max-width: 160px; position: fixed;
}
span[tooltip2] {
position: relative;
}
span[tooltip2]:hover:before {
content: attr(tooltip2);
padding: 5px;
font: bold 10pt "微软雅黑" serif; color: white;
white-space:pre-line;
text-shadow:3px 3px 3px #3b3535; text-align: center; text-fill-color: white; -webkit-text-fill-color: white;
background-size: 0; background-clip: border-box; background-color: rgba(198, 114, 199, 0.8);
border-radius: 4px; z-index: 50;
transform: translate(-5px, 20px);
width: 160px; max-width: 160px; position: absolute;
}
/* 下拉菜单样式 */
.headerlink{
......
......@@ -46,7 +46,8 @@ function init_profile(){
foreach (Array('wep','arb','arh','ara','arf','art','itm0','itm1','itm2','itm3','itm4','itm5','itm6') as $value)
{
${$value} = parse_itm_desc(${$value},'m');
global ${$value.'_words'};
${$value.'_words'} = parse_itm_desc(${$value},'m');
}
foreach (Array('wepk','arbk','arhk','arak','arfk','artk','itmk0','itmk1','itmk2','itmk3','itmk4','itmk5','itmk6') as $k_value) {
......@@ -97,67 +98,6 @@ function init_profile(){
$ardef = $arbe + $arhe + $arae + $arfe;
$karma = ($rp * $killnum - $def )+ $att;
// $infdata = '';
//
// if(strpos($inf,'h') !== false || strpos($inf,'b') !== false ||strpos($inf,'a') !== false ||strpos($inf,'f') !== false){
// //$infdata = '<span class="red b">';
// $infimg .= '<img src="img/injured.gif" style="position:absolute;top:0;left:10;width:84;height:20">';
// if(strpos($inf,'h') !== false){
// $infdata .= $infinfo['h'];
// $infimg .= '<img src="img/hurt.gif" style="position:absolute;top:0;left:121;width:37;height:37">';
// }
// if(strpos($inf,'a') !== false){
// $infdata .= $infinfo['a'];
// $infimg .= '<img src="img/hurt.gif" style="position:absolute;top:17;left:102;width:37;height:37">';
// }
// if(strpos($inf,'b') !== false){
// $infdata .= $infinfo['b'];
// $infimg .= '<img src="img/hurt.gif" style="position:absolute;top:43;left:121;width:37;height:37">';
// }
// if(strpos($inf,'f') !== false){
// $infdata .= $infinfo['f'];
// $infimg .= '<img src="img/hurt.gif" style="position:absolute;top:111;left:121;width:37;height:37">';
// }
// } else {
// $infimg .= '<img src="img/injured2.gif" style="position:absolute;top:0;left:10;width:84;height:20">';
// }
// //$infdata .= '</span>';
// if(strpos($inf,'p') !== false) {
// $infdata .= $infinfo['p'];
// //$infdata .= "<span class=\"purple b\">{$infinfo['p']}</span>";
// $infimg .= '<img src="img/p.gif" style="position:absolute;top:20;left:4;width:98;height:20">';
// } else {
// $infimg .= '<img src="img/p2.gif" style="position:absolute;top:20;left:4;width:98;height:20">';
// }
// if(strpos($inf,'u') !== false) {
// $infdata .= $infinfo['u'];
// //$infdata .= "<span class=\"red b\">{$infinfo['u']}</span>";
// $infimg .= '<img src="img/u.gif" style="position:absolute;top:40;left:11;width:81;height:20">';
// } else {
// $infimg .= '<img src="img/u2.gif" style="position:absolute;top:40;left:11;width:81;height:20">';
// }
// if(strpos($inf,'i') !== false) {
// $infdata .= $infinfo['i'];
// //$infdata .= "<span class=\"clan b\">{$infinfo['i']}</span>";
// $infimg .= '<img src="img/i.gif" style="position:absolute;top:60;left:13;width:77;height:20">';
// } else {
// $infimg .= '<img src="img/i2.gif" style="position:absolute;top:60;left:13;width:77;height:20">';
// }
// if(strpos($inf,'e') !== false) {
// $infdata .= $infinfo['e'];
// //$infdata .= "<span class=\"yellow b\">{$infinfo['e']}</span>";
// $infimg .= '<img src="img/e.gif" style="position:absolute;top:80;left:2;width:101;height:20">';
// } else {
// $infimg .= '<img src="img/e2.gif" style="position:absolute;top:80;left:2;width:101;height:20">';
// }
// if(strpos($inf,'w') !== false) {
// $infdata .= $infinfo['w'];
// $infimg .= '<img src="img/w.gif" style="position:absolute;top:100;left:3;width:100;height:20">';
// } else {
// $infimg .= '<img src="img/w2.gif" style="position:absolute;top:100;left:3;width:100;height:20">';
// }
$hpcolor = 'clan';
if($hp <= 0 ){
//$infimg .= '<img src="img/dead.gif" style="position:absolute;top:120;left:6;width:94;height:40">';
......
......@@ -11,10 +11,8 @@
<div class="subtitle">{lang help}</div>
<HR>
<TABLE class=menutbl style="BORDER-COLLAPSE: collapse" cellSpacing=0
cellPadding=0 align=center border=0>
<TBODY>
......@@ -3331,7 +3329,19 @@ insert into acbra2_game (gamenum) values (0);
</div>
<a href="https://bbs.brdts.online/?forum-2.htm">更新履历</a><br>
<script>
// 你杀了我吧
// 获取所有带有'span[tooltip]'样式的元素
var tooltipElements = document.querySelectorAll('span[tooltip]');
// 循环迭代每个元素
for (var i = 0; i < tooltipElements.length; i++) {
var tooltipElement = tooltipElements[i];
// 将样式更改为'span[tooltip2]'
tooltipElement.setAttribute('tooltip2', tooltipElement.getAttribute('tooltip'));
tooltipElement.removeAttribute('tooltip');
}
</script>
<form method="post" name="backindex" action="index.php"><input
type="submit" name="enter" value="{lang backindex}"></form>
......
发现了物品 <span class="yellow">$itm0</span>,类型:{$itmk0_words}<!--{if ($itmsk0) && !is_numeric($itmsk0)}-->,属性:{$itmsk0_words}<!--{/if}-->,效:{$itme0},耐:{$itms0}。
发现了物品 <span class="yellow">$itm0_words</span>,类型:{$itmk0_words}<!--{if ($itmsk0) && !is_numeric($itmsk0)}-->,属性:{$itmsk0_words}<!--{/if}-->,效:{$itme0},耐:{$itms0}。
<br>
<br>
你想如何处理?
......
......@@ -185,7 +185,7 @@
<TD class=b2 height="26"><span><!--{if $wepk_words}-->$wepk_words<!--{else}-->$mltwk<!--{/if}--></span></TD>
<TD class=b3>
<!--{if CURSCRIPT == 'game' && $mode == 'command' && $wepe}--><span><input type="button" value="卸下" onclick="$('mode').value='itemmain';$('command').value='offwep';postCmd('gamecmd','command.php');return false;"</span><!--{/if}-->
<span><!--{if $weps}-->$wep<!--{else}-->$nowep<!--{/if}--></span>
<span><!--{if $weps}-->$wep_words<!--{else}-->$nowep<!--{/if}--></span>
</TD>
<TD class=b3><span>$wepsk_words</span></TD>
<TD class=b3><span>$wepe</span></TD>
......@@ -195,7 +195,7 @@
<TD class=b2 height="26"><span><!--{if $arbs}-->$iteminfo['DB']<!--{else}--><span class="grey">$iteminfo['DB']</span><!--{/if}--></span></TD>
<TD class=b3>
<!--{if CURSCRIPT == 'game' && $mode == 'command' && $arbe}--><span><input type="button" value="卸下" onclick="$('mode').value='itemmain';$('command').value='offarb';postCmd('gamecmd','command.php');return false;"</span><!--{/if}-->
<span><!--{if $arbs}-->$arb<!--{else}-->$noarb<!--{/if}--></span>
<span><!--{if $arbs}-->$arb_words<!--{else}-->$noarb<!--{/if}--></span>
</TD>
<TD class=b3><span>$arbsk_words</span></TD>
<TD class=b3><span>$arbe</span></TD>
......@@ -205,7 +205,7 @@
<TD class=b2 height="26"><span><!--{if $arhs}-->$iteminfo['DH']<!--{else}--><span class="grey">$iteminfo['DH']</span><!--{/if}--></span></TD>
<TD class=b3>
<!--{if CURSCRIPT == 'game' && $mode == 'command' && $arhs}--><span><input type="button" value="卸下" onclick="$('mode').value='itemmain';$('command').value='offarh';postCmd('gamecmd','command.php');return false;"</span><!--{/if}-->
<span><!--{if $arhs}-->$arh<!--{else}-->$noitm<!--{/if}--></span>
<span><!--{if $arhs}-->$arh_words<!--{else}-->$noitm<!--{/if}--></span>
</TD>
<TD class=b3><span>$arhsk_words</span></TD>
<TD class=b3><span>$arhe</span></TD>
......@@ -215,7 +215,7 @@
<TD class=b2 height="26"><span><!--{if $aras}-->$iteminfo['DA']<!--{else}--><span class="grey">$iteminfo['DA']</span><!--{/if}--></span></TD>
<TD class=b3>
<!--{if CURSCRIPT == 'game' && $mode == 'command' && $aras}--><span><input type="button" value="卸下" onclick="$('mode').value='itemmain';$('command').value='offara';postCmd('gamecmd','command.php');return false;"</span><!--{/if}-->
<span><!--{if $aras}-->$ara<!--{else}-->$noitm<!--{/if}--></span>
<span><!--{if $aras}-->$ara_words<!--{else}-->$noitm<!--{/if}--></span>
</TD>
<TD class=b3><span>$arask_words</span></TD>
<TD class=b3><span>$arae</span></TD>
......@@ -225,7 +225,7 @@
<TD class=b2 height="26"><span><!--{if $arfs}-->$iteminfo['DF']<!--{else}--><span class="grey">$iteminfo['DF']</span><!--{/if}--></span></TD>
<TD class=b3>
<!--{if CURSCRIPT == 'game' && $mode == 'command' && $arfs}--><span><input type="button" value="卸下" onclick="$('mode').value='itemmain';$('command').value='offarf';postCmd('gamecmd','command.php');return false;"</span><!--{/if}-->
<span><!--{if $arfs}-->$arf<!--{else}-->$noitm<!--{/if}--></span>
<span><!--{if $arfs}-->$arf_words<!--{else}-->$noitm<!--{/if}--></span>
</TD>
<TD class=b3><span>$arfsk_words</span></TD>
<TD class=b3><span>$arfe</span></TD>
......@@ -235,7 +235,7 @@
<TD class=b2 height="26"><span><!--{if $arts}-->$artk_words<!--{else}--><span class="grey">$iteminfo['A']</span><!--{/if}--></span></TD>
<TD class=b3>
<!--{if CURSCRIPT == 'game' && $mode == 'command' && $arts}--><span><input type="button" value="卸下" onclick="$('mode').value='itemmain';$('command').value='offart';postCmd('gamecmd','command.php');return false;"</span><!--{/if}-->
<span><!--{if $arts}-->$art<!--{else}-->$noitm<!--{/if}--></span>
<span><!--{if $arts}-->$art_words<!--{else}-->$noitm<!--{/if}--></span>
</TD>
<TD class=b3><span>$artsk_words</span></TD>
<TD class=b3><span>$arte</span></TD>
......@@ -254,42 +254,42 @@
</TR>
<tr>
<TD class=b2 height="26"><span><!--{if $itmk1_words}-->$itmk1_words<!--{else}--><span class="grey">{lang pack}1</span><!--{/if}--></span></TD>
<TD class=b3><span><!--{if $itms1}-->$itm1<!--{else}-->$noitm<!--{/if}--></span></TD>
<TD class=b3><span><!--{if $itms1}-->$itm1_words<!--{else}-->$noitm<!--{/if}--></span></TD>
<TD class=b3><span>$itmsk1_words</span></TD>
<TD class=b3><span>$itme1</span></TD>
<TD class=b3><span>$itms1</span></TD>
</tr>
<tr>
<TD class=b2 height="26"><span><!--{if $itmk2_words}-->$itmk2_words<!--{else}--><span class="grey">{lang pack}2</span><!--{/if}--></span></TD>
<TD class=b3><span><!--{if $itms2}-->$itm2<!--{else}-->$noitm<!--{/if}--></span></TD>
<TD class=b3><span><!--{if $itms2}-->$itm2_words<!--{else}-->$noitm<!--{/if}--></span></TD>
<TD class=b3><span>$itmsk2_words</span></TD>
<TD class=b3><span>$itme2</span></TD>
<TD class=b3><span>$itms2</span></TD>
</tr>
<tr>
<TD class=b2 height="26"><span><!--{if $itmk3_words}-->$itmk3_words<!--{else}--><span class="grey">{lang pack}3</span><!--{/if}--></span></TD>
<TD class=b3><span><!--{if $itms3}-->$itm3<!--{else}-->$noitm<!--{/if}--></span></TD>
<TD class=b3><span><!--{if $itms3}-->$itm3_words<!--{else}-->$noitm<!--{/if}--></span></TD>
<TD class=b3><span>$itmsk3_words</span></TD>
<TD class=b3><span>$itme3</span></TD>
<TD class=b3><span>$itms3</span></TD>
</tr>
<tr>
<TD class=b2 height="26"><span><!--{if $itmk4_words}-->$itmk4_words<!--{else}--><span class="grey">{lang pack}4</span><!--{/if}--></span></TD>
<TD class=b3><span><!--{if $itms4}-->$itm4<!--{else}-->$noitm<!--{/if}--></span></TD>
<TD class=b3><span><!--{if $itms4}-->$itm4_words<!--{else}-->$noitm<!--{/if}--></span></TD>
<TD class=b3><span>$itmsk4_words</span></TD>
<TD class=b3><span>$itme4</span></TD>
<TD class=b3><span>$itms4</span></TD>
</tr>
<tr>
<TD class=b2 height="26"><span><!--{if $itmk5_words}-->$itmk5_words<!--{else}--><span class="grey">{lang pack}5</span><!--{/if}--></span></TD>
<TD class=b3><span><!--{if $itms5}-->$itm5<!--{else}-->$noitm<!--{/if}--></span></TD>
<TD class=b3><span><!--{if $itms5}-->$itm5_words<!--{else}-->$noitm<!--{/if}--></span></TD>
<TD class=b3><span>$itmsk5_words</span></TD>
<TD class=b3><span>$itme5</span></TD>
<TD class=b3><span>$itms5</span></TD>
</tr>
<tr>
<TD class=b2 height="26"><span><!--{if $itmk6_words}-->$itmk6_words<!--{else}--><span class="grey">{lang pack}6</span><!--{/if}--></span></TD>
<TD class=b3><span><!--{if $itms6}-->$itm6<!--{else}-->$noitm<!--{/if}--></span></TD>
<TD class=b3><span><!--{if $itms6}-->$itm6_words<!--{else}-->$noitm<!--{/if}--></span></TD>
<TD class=b3><span>$itmsk6_words</span></TD>
<TD class=b3><span>$itme6</span></TD>
<TD class=b3><span>$itms6</span></TD>
......
......@@ -11,13 +11,13 @@
<tr>
<td class="b1" height=20px width="100px">$log_tips[1]</td>
<td class="b1" width="60px">$result_tips[9]</td>
<td class="b1">$stuff_tips[0]</td>
<td class="b1">$stuff_tips[1]</td>
<td class="b1">$stuff_tips[2]</td>
<td class="b1">$stuff_tips[3]</td>
<td class="b1">$stuff_tips[4]</td>
<td class="b1" style="max-width: 120px; padding-left: 5px; padding-right: 5px; ">$stuff_tips[0]</td>
<td class="b1" style="max-width: 120px; padding-left: 5px; padding-right: 5px; ">$stuff_tips[1]</td>
<td class="b1" style="max-width: 120px; padding-left: 5px; padding-right: 5px; ">$stuff_tips[2]</td>
<td class="b1" style="max-width: 120px; padding-left: 5px; padding-right: 5px; ">$stuff_tips[3]</td>
<td class="b1" style="max-width: 120px; padding-left: 5px; padding-right: 5px; ">$stuff_tips[4]</td>
<td class="b1" width="25px"></td>
<td class="b1">$result_tips[0]</td>
<td class="b1" style="padding-left: 5px; padding-right: 5px;">$result_tips[0]</td>
<td class="b1" width="45px">编辑</td>
<td class="b1">$log_tips[2]</td>
</tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment