Floating windows above the Flash page

Source: Internet
Author: User
Tags setinterval

Floating window pictures float on top of flash

Add <param name= "wmode" value= "opaque" to the Flash parameters >



<!--floating window-->
<div id= "Tanchuchuangkou" style= "Position:absolute";; Z-index:1 ">
<a href= "./vote.php" target= "_blank" ></a>
</div>

<script language= "JavaScript" >
var x = 50,y = 400
var Xin = true, Yin = True
var step = 1
var delay = 10
var Obj=document.getelementbyid ("Tanchuchuangkou")
function Floatad () {
var l=t=0
var r= document.body.clientwidth-obj.offsetwidth
var B = Document.body.clientheight-obj.offsetheight
Obj.style.left = x + document.body.scrollLeft
Obj.style.top = y + document.body.scrollTop
x = x + step* (xin?1:-1)
if (x < L) {Xin = true; x = L}
if (x > R) {xin = false; x = R}
y = y + step* (yin?1:-1)
if (Y < T) {Yin = true; y = t}
if (Y > B) {yin = false; y = b}
}
var itl= setinterval (' Floatad () ', delay)
Obj.onmouseover=function () {clearinterval (ITL)}
Obj.onmouseout=function () {itl=setinterval (' Floatad () ', delay)}
</script>

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.