html浮动广告框怎么做?

html-css08

html浮动广告框怎么做?,第1张

$(window).scroll(function () {

$('#guangao').css('top', $(document).scrollTop() + window.innerHeight / 2 - document.getElementById("guangao").clientHeight / 2)

})

以上是浮云居中的例子,作为参考。

1、打开网页的源代码,在插入的flash属性代码中添加以下代码:

<param name="wmode" value="transparent">

2、清除浏览器缓存;

3、刷新页面。