作者 王智

baoxiu22

... ... @@ -281,23 +281,28 @@
</div>
<?php foreach ($row as $info) { ?>
<div class="col-xs-6 col-md-3">
<div class="panel bg-blue">
<div class="panel-body" id="open">
<div class="panel-title">
<span class="label label-success pull-right">{:__('Real time')}</span>
<h5><?= $info["zhandian_name"]?></h5>
</div>
<div class="panel-content">
<h1 class="no-margins"><?= $info["baoxiu_num"]?></h1>
<!--<div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i>-->
<!--1234-->
<!--</div>-->
<small>{:__('Category count tips')}</small>
<div id="open">
<div class="col-xs-6 col-md-3">
<div class="panel bg-blue">
<div class="panel-body">
<div class="panel-title">
<span class="label label-success pull-right">{:__('Real time')}</span>
<h5><?= $info["zhandian_name"]?></h5>
</div>
<div class="panel-content">
<h1 class="no-margins"><?= $info["baoxiu_num"]?></h1>
<!--<div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i>-->
<!--1234-->
<!--</div>-->
<small>{:__('Category count tips')}</small>
</div>
</div>
</div>
</div>
</div>
<div id="close" style="background-color: red">
</div>
<?php } ?>
</div>
... ... @@ -339,3 +344,18 @@
}
;
</script>
<script>
window.onload = function () {
var open = document.getElementById("open");
var close = document.getElementById("close");
close.style.display = "none";
open.onmouseover = function () {
close.style.display = "block";
open.style.display = "none";
};
open.onmouseout = function () {
open.style.display = "block";
close.style.display = "none";
};
};
</script>
... ...