Bonjour, voila que j ouvre une page internet j ai une page comme celle-ci que doit-je faire
var params = ''; scriptElt = document.getElementById('adscript7'); if(scriptElt == null) scriptElt = document.getElementById('adscript6'); if(scriptElt != null) { var tabURL = String(scriptElt.src).split('?'); var params = tabURL[1]; if(tabURL[1] == null) params = ''; } var strURLLink = "
http://adserving.favorit-network.com/eas?cu=808;ty=ct&"; strURLLink += params; var strURLIMG = "
http://adserving.favorit-network.com/eas?cu=808;cre=img&"; strURLIMG += params; var div_element, newElement; div_element = document.getElementById('div_slide_ad'); var OriginaLeftPos=500; OriginaLeftPos += 10; var strTemp = "
"; var new_div = document.createElement(strTemp); strTemp = ""; newLinkElement = document.createElement(strTemp); strTemp = ""; newElement = document.createElement(strTemp); newLinkElement.appendChild(newElement); strTemp = "
" DivClose = document.createElement(strTemp); strTemp = ""; ImgClose = document.createElement(strTemp); strTemp = ""; FontClose = document.createElement(strTemp); BoldClose = document.createElement('b'); TextClose = document.createTextNode('close'); BoldClose.appendChild(TextClose); FontClose.appendChild(BoldClose); DivClose.appendChild(ImgClose); DivClose.appendChild(FontClose); new_div.appendChild(DivClose); new_div.appendChild(newLinkElement); div_element.appendChild(new_div); var ScrollRelativeTop = Math.round(document.body.clientHeight/2)-250; var DivSlideObject = { TargetX : 20, hover : 150, divisor : 6, callRate : 55, layer : document.getElementById('div_glide') } DivSlideObject.paint = function() { targetY = document.body.scrollTop + DivSlideObject.hover; currentY = DivSlideObject.layer.style.pixelTop currentX = DivSlideObject.layer.style.pixelLeft differenceY = currentY - targetY; differenceX = currentX - DivSlideObject.TargetX; decrementY = Math.round(differenceY / DivSlideObject.divisor); decrementX = Math.round(differenceX / DivSlideObject.divisor); DivSlideObject.layer.style.pixelTop -= decrementY DivSlideObject.layer.style.pixelLeft -= decrementX } function CloseAd() { window.clearInterval(); DivSlideObject.layer.style.visibility = "hidden"; }; function Slide() { window.clearInterval(); window.setInterval("DivSlideObject.paint()", DivSlideObject.callRate); };
merci a vous
8 juin 2010 à 10:38