element go_up : fix height
This commit is contained in:
parent
0bbb93f296
commit
86f196d882
1 changed files with 2 additions and 2 deletions
|
|
@ -2898,7 +2898,7 @@ function create_anchor_up()
|
|||
function init_scroll()
|
||||
{
|
||||
var up=new Element('div',{"class":"inner_box",
|
||||
"style":"padding:5px;left:auto;width:auto;height: auto;display:none;position:fixed;bottom:95px;right:50px;text-align:center;font-size:20px",
|
||||
"style":"padding:5px;left:auto;width:auto;height: auto;display:none;position:fixed;bottom:105px;right:50px;text-align:center;font-size:20px",
|
||||
id:"go_up"
|
||||
});
|
||||
up.innerHTML=' <a class="icon" href="#up_top" ></a><a href="javascript:show_calc()" class="icon"></a>';
|
||||
|
|
@ -2906,7 +2906,7 @@ function init_scroll()
|
|||
window.onscroll=function () {
|
||||
if ( document.viewport.getScrollOffsets().top> 0) {
|
||||
if ($('go_up').visible() == false) {
|
||||
$('go_up').setOpacity(0.45);
|
||||
$('go_up').setOpacity(0.65);
|
||||
$('go_up').show();
|
||||
$('go_up').style.zIndex=99;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue