求一段外部js代码,类似右下角图片弹窗广告_html/css_WEB-ITnose
求一段外部js代码文件,类似右下角图片弹窗广告
右下角弹出的一个图片无论浏览器是大是小无论是否点击网页下拉框右下角的图片位置都不变
并且外部js代码可以调用.wma音乐文件自动打开音乐
<script></script>
像这样,在网页引用外部js文件
类似上面这个图片
请网友帮忙,谢谢!
回复讨论(解决方案)
请各位帮忙,谢谢您!
请帮忙!
http://js.alixixi.com/a/2010092765138.shtml
我要的是可以调用的js文件啊! 不是html代码
我像让图片一直在右下角弹出,无论怎么点击下拉框图片位置都不变!
请告诉我!
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script> <br /> var timeout;//定时器对象 <br /> //减少次数的方法供execute调用 <br /> function logoAction(direction,sh){ <br /> var cm = 5;//每次减少多少距离 <br /> var logoDiv = (navigator.appName).indexOf("Microsoft")!=-1 ? <br /> document.styleSheets[0].rules[0]: <br /> document.styleSheets[0].cssRules[0];//取得logo的样式 <br /> var height = parseInt(logoDiv.style.height,10)//得到DIV的高度 <br /> var marBottom = parseInt(logoDiv.style[direction],10); <br /> if(sh == 'show'){ <br /> if(marBottom > 0){//当移动距离大于div高度的时候就停止执行 <br /> clearInterval(timeout);//清除定时 <br /> }else{ <br /> logoDiv.style.marginBottom = marBottom + cm+"px";//每次想下走多少距离 <br /> } <br /> }else if(sh == 'hide') { <br /> if(marBottom < -height){//当移动距离大于div高度的时候就停止执行 <br /> clearInterval(timeout);//清除定时 <br /> }else{ <br /> logoDiv.style[direction] = marBottom - cm+"px";//每次想下走多少距离 <br /> } <br /> } <br /> } <br /> //执行循环的方法 隐藏 <br /> function hide() { <br /> var loopTime = 100;//循环消失的时间 <br /> timeout = setInterval("logoAction('marginBottom','hide')",loopTime); <br /> } <br /> //执行循环的方法 显示 <br /> function show() { <br /> timeout = setInterval("logoAction('marginBottom','show')",50); <br /> } <br /> //文档加载完成过后执行渐渐隐藏 <br /> window.onload = function(){ <br /> setTimeout("hide()",8000); <br /> setTimeout("show()",1); <br /> } <br /> </script>
来吧 baby这个纯js写的 事件冲忙,其实jquery更简单。自动出现,几秒钟后自动隐藏
不明白可以加 我Q 945332077
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script><script type="text/javascript">//解决ie6.0 的bugfunction handingIE6(){ if($.browser.msie && $.browser.version=="6.0"){ $("#flowDiv").css({"position":"absolute","right":"10px","z-index":100}); //底部显示 var divBottom = $(window).scrollTop()+$(window).height()-$("#flowDiv").outerHeight(true)-10; $("#flowDiv").animate({top:divBottom},{duration: 400, queue: false }); }}$(function(){ //关闭按钮 $("#btnClose").click(function(){ $("#flowDiv").fadeOut("fast"); }); //左侧点击显示 $("#showFlow").click(function(){ $("#flowDiv").slideDown("slow"); }); //IE6.0 执行代码 if($.browser.msie && $.browser.version=="6.0"){ handingIE6(); $("#flowDiv").css("display","block"); }else{ $("#flowDiv").css({"position":"fixed","right":"10px","bottom":"10px","z-index":100}); $("#flowDiv").slideDown("slow"); } $(window).scroll(function(){handingIE6();}).resize(function(){handingIE6();});})</script><style type="text/css"> #flowDiv{ width:250px; overflow:hidden; border:solid 1px green; font-size:13px; display:none;} #flowTitle{padding:3px 5px; height:20px; line-height:20px; background:#FFDD55; border-bottom:solid 1px green; } #flowContent{height:100px; padding:5px; background:#E0F7FF;}</style></head><body><div id="flowDiv"> <div id="flowTitle"><span style="float:left">标题</span><span id="btnClose" style="float:right; cursor:pointer"> x </span></div> <div id="flowContent">内容</div></div><p id="showFlow" style="height:1500px; padding:10px; width:17px; cursor:pointer; background:#99AFC4; te">点击显示弹出层</p></body></html>

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

Video Face Swap
使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

HTML适合初学者学习,因为它简单易学且能快速看到成果。1)HTML的学习曲线平缓,易于上手。2)只需掌握基本标签即可开始创建网页。3)灵活性高,可与CSS和JavaScript结合使用。4)丰富的学习资源和现代工具支持学习过程。

HTML定义网页结构,CSS负责样式和布局,JavaScript赋予动态交互。三者在网页开发中各司其职,共同构建丰富多彩的网站。

WebDevelovermentReliesonHtml,CSS和JavaScript:1)HTMLStructuresContent,2)CSSStyleSIT和3)JavaScriptAddSstractivity,形成thebasisofmodernWebemodernWebExexperiences。

AnexampleOfAstartingTaginHtmlis,beginSaparagraph.startingTagSareEssentialInhtmlastheyInitiateEllements,defiteTheeTheErtypes,andarecrucialforsstructuringwebpages wepages webpages andConstructingthedom。

GiteePages静态网站部署失败:404错误排查与解决在使用Gitee...

网页批注功能的Y轴位置自适应算法本文将探讨如何实现类似Word文档的批注功能,特别是如何处理批注之间的间�...

HTML、CSS和JavaScript是Web开发的三大支柱。1.HTML定义网页结构,使用标签如、等。2.CSS控制网页样式,使用选择器和属性如color、font-size等。3.JavaScript实现动态效果和交互,通过事件监听和DOM操作。

实现图片点击后周围图片散开并放大效果许多网页设计中,需要实现一种交互效果:点击某张图片,使其周围的...
