知识大全 页面两侧对联广告(鼠标感应)代码效果
Posted 广告
篇首语:学问不都是在书本上得来的,在事实上得的经验,也就是学问。本文由小常识网(cha138.com)小编为大家整理,主要介绍了知识大全 页面两侧对联广告(鼠标感应)代码效果相关的知识,希望对你有一定的参考价值。
现在很多网站广告做的如火如荼 现在我就来介绍一下常见的对联浮动广告效果的代码使用方法 本文介绍的这种效果 在 * 分辨率下正常显示 在 * 的分辨率下可以自动隐藏 以免遮住页面影响访问者浏览内容 而且与前面一个代码不同的是 当鼠标移动到广告图片上是可以感应显示另外设置好的广告大图效果 下面文本框中就是实现效果所需代码
function bigshow()document all div_ style visibility = visible ;document all div_ style visibility = hidden ;function bighide()document all div_ style visibility = visible ;document all div_ style visibility = hidden ; var ad_ = new Array( );var ad_ = new Array( ); ad_ [ ]= <a href= target=_blank><img src=/img /js _ gif border= ></a> ; ad_ [ ]= <a href= target=_blank><img src=/img /js _ gif border= ></a> ; var imgheight;var fubioleft;window screen width> ? fubioleft= :fubioleft= document write( <DIV id=floater_left > ); ad_now = new Date();ad_id= ad_now getSeconds() % var adhead = <div id=div_ style= position:absolute; width: px; height: px; z index: onMouseOver=bigshow();> ;var adhead = </div><div id=div_ style= position:absolute; visibility: hidden; z index: ;width: ; height: onMouseOut=bighide();> ; document write(adhead +ad_ [ad_id]+adhead +ad_ [ad_id]+ </div> ); document write ( </div> ); self onError=null; currentX = currentY = ; whichIt = null; lastScrollX = ; lastScrollY = ; NS = (document layers) ? : ; IE = (document all) ? : ; function heartBeat() if(IE) diffY = document body scrollTop; diffX = document body scrollLeft; if(NS) diffY = self pageYOffset; diffX = self pageXOffset; if(diffY != lastScrollY) percent = * (diffY lastScrollY); if(percent > ) percent = Math ceil(percent); else percent = Math floor(percent); if(IE) document all floater_left style pixelTop += percent; if(NS) document floater_left top += percent; lastScrollY = lastScrollY + percent; if(diffX != lastScrollX) percent = * (diffX lastScrollX); if(percent > ) percent = Math ceil(percent); else percent = Math floor(percent); if(IE) document all floater_left style pixelLeft += percent; if(NS) document floater_left left += percent; lastScrollX = lastScrollX + percent; if(NS || IE) action = window setInterval( heartBeat() );var ad_ = new Array( );var ad_ = new Array( ); ad_ [ ]= <a href= target=_blank><img src=/img /js _ gif border= ></a> ; ad_ [ ]= <a href= target=_blank><img src=/img /js _ gif border= ></a> ; var imgheight;var fubioleft;window screen width> ? fubioleft= :fubioleft= document write( <DIV id=floater_right > ); ad_now = new Date();ad_id= ad_now getSeconds() % function myload()if (navigator appName == Netscape )document div_right_ pageX=+window innerWidth ;document div_right_ pageX=+window innerWidth ;mymove();elsediv_right_ style left=document body offsetWidth ;div_right_ style left=document body offsetWidth ;mymove(); function mymove() if(document ns) document div_right_ left=pageXOffset+window innerWidth ; document div_right_ left=pageXOffset+window innerWidth ; setTimeout( mymove(); ) else div_right_ style left=document body scrollLeft+document body offsetWidth ;div_right_ style left=document body scrollLeft+document body offsetWidth ;setTimeout( mymove(); ) var adhead = <div id=div_right_ style= position:absolute; width: px; height: px; z index: onMouseOver=bigshow_right();> ;var adhead = </div><div id=div_right_ style= position:absolute; visibility: hidden; z index: ;width: ; height: onMouseOut=bighide_right();><div align=right> ; document write(adhead +ad_ [ad_id]+adhead +ad_ [ad_id]+ </div></div> ); myload() document write ( </div> ); self onError=null; currentX_right = currentY_right = ; whichIt_right = null; lastScrollX_right = ; lastScrollY_right = ; NS = (document layers) ? : ; IE = (document all) ? : ; function heartBeat_right() if(IE) diffY_right = document body scrollTop; diffX_right = document body scrollLeft; if(NS) diffY_right = self pageYOffset; diffX_right = self pageXOffset; if(diffY_right != lastScrollY_right) percent_right = * (diffY_right lastScrollY_right); if(percent_right > ) percent_right = Math ceil(percent_right); else percent_right = Math floor(percent_right); if(IE) document all floater_right style pixelTop += percent_right; if(NS) document floater_right top += percent_right; lastScrollY_right = lastScrollY_right + percent_right; if(diffX_right != lastScrollX_right) percent_right = * (diffX_right lastScrollX_right); if(percent_right > ) percent_right = Math ceil(percent_right); else percent_right = Math floor(percent_right); if(IE) document all floater_right style pixelLeft += percent_right; if(NS) document floater_right left += percent_right; lastScrollX_right = lastScrollX_right + percent_right; if(NS || IE) action = window setInterval( heartBeat_right() );function bigshow_right()document all div_right_ style visibility = visible ;document all div_right_ style visibility = hidden ;function bighide_right()document all div_right_ style visibility = visible ;document all div_right_ style visibility = hidden ;document write( );document write( );document write( ); cha138/Article/program/Java/JSP/201311/19165相关参考
现在很多网站广告做的如火如荼现在我就来介绍一下常见的对联浮动广告效果的代码使用方法本文介绍的这种效果在*分辨率下正常显示在*的分辨率下可以自动隐藏以免遮住页面影响访问者浏览内容而且与前面两个代码不
许多网友问鼠标移上去会变亮的菜单是怎么制作的?其实这是用两张图片交替显示的效果具体采用javascript脚本语言实现因为稍微复杂些需要细细讲解 你要制作这种效果的话首先也要制作好同样大小不同效果的
var posYoubiao:Array = new Array(); posYoubiao[] = ; for&nbs
网页漂浮广图片特效这种特效我们总是很喜欢鼠标指向图片后图片停止移动cha138/Article/program/Java/Javascript/201311/25462
这两天遇到一个需求就是在一个页面中浮动一张图片兼容浏览器那是默认需求鼠标悬停那也算是默认需求本来认为没什么麻烦的网上那么多随便搜一个再改吧改吧就哦了可是后来发现没有想象的那么简单 问题一网上DE
功能说明:滑动展开/收缩广告效果可指定广告完全展开时的停留时间最大高度兼容浏览器IE+FF+Opera+实例代码<!doctype public //WC//DT
这篇文章介绍了在JS中广告漂浮效果的实现代码有需要的朋友可以参考一下 复制代码代码如下: <><head><metaequiv="ContentType"co
知识大全 jquery滚动组件(vticker.js)实现页面动态数据的滚动效果
本文为大家想你想介绍下jquery实现页面动态数据的滚动效果似乎只有通过divulli标签嵌套的方式才能实现表格多行多列的滚动效果 复制代码代码如下:<scriptlanguage="
Js鼠标跟随代码小手点击 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!<xmlns="<
JavascriptFollowPlugin Js跟随滚动效果插件 支持定义多个跟随ID采用cssfixed属性不支持ie兼容其他主流浏览器 支持定义滚动到底部的最小高度不会覆蓋底部 页面