Copier le code du code comme suit:
<html>
<adal>
<meta http-equiv = "content-type" content = "text / html; charset = gb2312">
<Title> Web Floating Advertising Code avec un bouton fermé </TITME>
</ head>
<body>
<div id = "img" style = "position: absolue; gauche: 311; top: 815; visibilité: caché; erval = setInterval ('ChangePos (), delay)" align = "droite">
<A href = "#" Target = "_Lank"> <img src = "PATH PATH" en ligne "en ligne =" return imgzoom (this, 600); "onclick =" javascript: window.open (this.src); Style = "curseur: pointeur;" /> </a>
<span style = "curseur: main; couleur: rouge; Font-Weight: Bold" onClick = "ClearInterval (Interval); img.style.visibilité = 'Hidden'"> x </span>
</div>
<Script Language = JavaScript src = ff.js>
</cript>
</docy>
</html>
code ff.js
Copier le code du code comme suit:
var xpos = 20;
var ypos = document.body.clitingheight;
var étape = 1;
RELAGE VAR = 30;
var hauteur = 0;
var hoffset = 0;
var war woffset = 0;
var yon = 0;
var xon = 0;
var pause = true;
intervalle var;
IMG.STYLE.TOP = YPOS;
fonction changepos () {{)
width = document.body.clientwidth;
height = document.body.clitingheight;
Hoffset = img.offsetheight;
Woffset = img.offsetwidth;
img.style.left = xpos + dcument.body.scrollleft;
img.style.top = ypos + dcument.body.scrolltop;
if (yon) {
YPOS = YPOS + Step;
}
autre {
YPOS = YPOS -STEP;
}
if (ypos <0) {
yon = 1;
Ypos = 0;
}
if (ypos> = (height -host) {{{
yon = 0;
ypos = (hauteur -hoffset);
}
if (xon) {
Xpos = xpos + étape;
}
autre {
Xpos = xpos -step;
}
if (xpos <0) {
xon = 1;
Xpos = 0;
}
if (xpos> = (width -woffset) {{
xon = 0;
xpos = (width -woffset);
}
}
fonction start () {
img.style.visibilité = "visible";
interval = setInterval ('ChangePos (), delay);
}
commencer ();