Floating around advertising code

Source: Internet
Author: User
Tags visibility
Tip: You can modify some of the code before running

<script> Document.ns = Navigator.appname = "Netscape" function Fly_leftload () {if (navigator.appname = = "Netscape" ) {document.fly_left.pagey=pageyoffset+window.innerheight-95; document.fly_left.pagex=+window.innerwidth-110; document.fly_left2.pagey=pageyoffset+window.innerheight-263; document.fly_left2.pagex=+window.innerwidth-290; Fly_leftmove (); else {fly_left.style.top=document.body.scrolltop+document.body.offsetheight-95; fly_left.style.right= document.body.offsetwidth-110; fly_left2.style.top=document.body.scrolltop+document.body.offsetheight-263; fly_left2.style.right=document.body.offsetwidth-290; Fly_leftmove (); }} function Fly_leftmove () {if (DOCUMENT.NS) {document.fly_left.top=pageyoffset+window.innerheight-95 document.fly_ left.right=+window.innerwidth-110; document.fly_left2.top=pageyoffset+window.innerheight-263 document.fly_left2.right=+window.innerwidth-290; SetTimeout ("Fly_leftmove ();", 5)} else {FLY_LEFT.STYLE.TOP=DOCUMENT.BODY.SCROLLTOP+DOCUMENT.BODY.OFFSEtHeight-95; fly_left.style.right=document.body.offsetwidth-110; fly_left2.style.top=document.body.scrolltop+document.body.offsetheight-263; fly_left2.style.right=document.body.offsetwidth-290; SetTimeout ("Fly_leftmove ();", 5)}} function Mm_reloadpage (init) {//reloads the window if Nav4 resized if (init==true) W ITH (navigator) {if (appname== "Netscape") && (parseint (appversion) ==4)) {document. Mm_pgw=innerwidth; Document. Mm_pgh=innerheight; Onresize=mm_reloadpage; } else if (innerwidth!=document. MM_PGW | | Innerheight!=document. MM_PGH) location.reload (); } mm_reloadpage (True) function Fly_leftover () {if (navigator.appname = "Netscape") {document.fly_left2.visibility= Show "; }else {fly_left2.style.visibility= "visible";}} function Fly_leftout () {if (navigator.appname = "Netscape") {document.fly_left2.visibility= "Hide";} else {fly_left2.style.visibility= "hidden";}} if (navigator.appname = "Netscape") {document.write ("<layer id=fly_left top=300 width=320></layer> "+" <layer id=fly_left2></layer> "); Fly_leftload ()} else {document.write ("<div id=fly_left ></div>" + "<div id=fly_left2 ></div>") ; Fly_leftload ()} </script>
Tip: You can modify some of the code before running
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.