The image disappears after a certain period of time.

Source: Internet
Author: User

Add the following code to the <body> and </body>
<SCRIPT language = "> http://blog.163.com/ytnsh003"
// 4) set the ALT attribute.
Var alttext = "m space 80 yuan. International domain name 50 yuan, domestic 80"
// 5) set the following attributes to 1 or 0 (1 is unique to IE to hide the LOGO)
Var fadeappsview = 1

Var visibleduration = 10

Function regenerate (){
Window. location. reload ()
}
Function regenerate2 (){
If (document. layers)
SetTimeout ("window. onresize= regenerate", 400)
}
Var fadeset =''
If (fadeappsview)
Fadeset = "filter: alpha (opacity = 0 )"
If (document. all)
Document. write ('<span "style ="' + fadeset + '; top: 100; width:' + staticlogo. width + '; height:' + staticlogo. height + '"> </span> ')
Function bringlateral view (){
If (logo. filters. alpha. opacity <= 95)
Logo. filters. alpha. opacity + = 5
Else {
ClearInterval (viewit)
If (visibleduration! = 0)
SetTimeout ("logo. style. visibility = 'den den '", visibleduration * 1000)
}
}
Function createlogo (){
Staticimage = new Layer (100)
Staticimage. left =-300
Staticimage. top = 120
Staticimage.doc ument. write ('<a href = "' + logolink + '"> </a> ')
Staticimage.doc ument. close ()
Staticimage. visibility = "show"
Regenerate2 ()
Staticitns ()
}
If (document. layers)
Window. onload = createlogo;
If (document. all ){
W = 2
H = 2
Logo. style. left = w
Logo. style. top = h
}
Function logoit (){
Var w2 = document. body. scrollLeft + w
Var h2 = document. body. scrollTop + h
Logo. style. left = w2
Logo. style. top = h2
}
Function logoit2 (){
Staticimage. left = pageXOffset + 2
Staticimage. top = pageYOffset + 2
}
Function insertimage (){
Logo. innerHTML = '<a href = "' + logolink + '"> </a>'
If (fadeappsview)
Viewit = setInterval ("bring1_view ()", 100)
Else {
If (visibleduration! = 0)
SetTimeout ("logo. style. visibility = 'den den '", visibleduration * 1000)
}
}
If (document. all ){
Window. onscroll = logoit
Window. onresize = new Function ("window. location. reload ()")
Window. onload = insertimage
}
Function staticitns (){
SetInterval ("logoit2 ()", 90)
If (visibleduration! = 0)
SetTimeout ("staticimage. visibility = 'hide '", visibleduration * 1000)
}
// -->
</SCRIPT>

Related Article

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.