Bottom Floating code

Source: Internet
Author: User

CSS part, function: beautify, can not be added

------------------------------------

<! -- Floating CSS at the bottom -->
<Style type = "text/CSS">
# Fixedwp {overflow: hidden; text-align: Left; position: relative ;}
# Fixedwp. fixedwpa {Height: 35px; Background: # cfeb88; filter: alpha (opacity = 60);-moz-opacity: 0.6;-khtml-opacity: 0.6; opacity: 0.8; line-Height: 35px ;}
# Fixedwp. fixedcon {position: absolute; Z-index: 99; Height: 29px; top: 3px; left: 0px ;}
# Fixedwp. fixedcon. Main {width: 990px; margin: 0 auto ;}
# Fixedwp. fixedcon IMG {margin: 0 5px ;}
</Style>
<! -- Floating CSS at the bottom -->

 

---------------------------------------

 

Body section

 

-----------------------------------------

<Div id = "fixedwp">
<Div class = "fixedwpa"> </div>
<Div class = "fixedcon">
<Div class = "Main">
<a href =" Tencent: // message /? Uin = 473821173 & Site = online QQ & menu = Yes % 20 target = blank "target =" _ blank "> </a> <a href =" http://net.zoosnet.net/LR/chatwin.aspx? Id = net47678578 & lng = cn "target =" _ blank "> </a> <a href = "/yiyuanhuanjing/chengcheluxian.html" target = "_ blank"> </a>
</Div>
</Div>

</Div>
<SCRIPT type = "text/JavaScript" src = "index. js"> </SCRIPT>

 

----------------------------------------------------------

 

 

In the JS section, save the following code as a JS file.

 

---------------------------------------------

 

// Floating at the bottom
VaR isie6 = Window. XMLHttpRequest? False: true;
Window. onload = function (){
VaR fixedwp = Document. getelementbyid ('fixedwp ');
If (isie6 ){
Fixedwp. style. Position = 'absolute ';
Window. onscroll = function (){
Fixedwp. style. Background = 'transparent ';
}
} Else {
Fixedwp. style. Position = 'fixed ';
}

Fixedwp. style. Bottom = '0 ';
}

 

---------------------------------------------------

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.