位置: 编程技术 - 正文

用纯CSS+DIV写的漂亮Flash幻灯片及SQL标签教程!(css用什么写)

编辑:rootadmin
用纯CSS+DIV写的漂亮Flash幻灯片及SQL标签教程! 下面代码有点多!但做出来你肯定喜欢! 用纯CSS+DIV写的漂亮Flash幻灯片及SQL标签教程!我不想废话了,开门见山吧。 先看演示 : 点精彩推荐即可看见! 如果下面代码你看不懂或者做不出来,明天等待我的视频吧。 CSS如下: <STYLE type=text/css> <!-- #f_div{width:px; height:px; margin:0 auto; overflow:hidden;} #f_imgDiv{width:%; height:px; overflow:hidden;} #f_img{filter:progid:DXImageTransform.Microsoft.Fade(Overlap=1.); border:0;} #f_infoDiv{width:%;top:-px !important;top:-px; position:relative;} #f_buttonDiv{width:%; height:px; overflow:hidden; text-align:left;} #f_line{width:%;height:1px;background:#fff; overflow:hidden;filter:progid:DXImageTransform.Microsoft.Alpha(startX=0, startY=0, finishX=, finishY=,style=1,opacity=0,finishOpacity=)} #f_buttonDiv div{width:1px;height:px; background:#fff; float:right;} #f_buttonDiv .bg{width:px; height:px; background:#fff; float:right; filter:Alpha(Opacity=);} #f_buttonDiv a{width:px;height:px !important;height:px;float:right;padding-top:5px;color:#fff;font-family:Arial, Helvetica, sans-serif;font-size:px; line-height:px; text-align:center;display:block;overflow:hidden;text-decoration:none;position:absolute;} #f_buttonDiv a:link,#f_buttonDiv a:visited,#f_buttonDiv a:active{color:#;} #f_buttonDiv a:hover{background:#FFC;color:#fff;} #f_buttonDiv a.on:link,#f_buttonDiv a.on:visited,#f_buttonDiv a.on:active,#f_buttonDiv a.on:hover{background:#FFC;color:#fff;} #f_buttonDiv a.on:hover{background:#FF;} --> </STYLE> SQL循 环 体 如下: <div id="f_div"> <!--图片区域--> <div id="f_imgDiv"></div> <div id="f_infoDiv"> <!--数字按钮区域--> <div id="f_buttonDiv"></div> </div> </div> <script> var imgWidth=; var imgHeight=; var _timeOut_=; var show_text = true; //是否显示焦点文字 var timeOut=_timeOut_; var timeOut2=_timeOut_/2;//onmouseout img后需要切换的时间 var now=0; //第一张图 var target="_blank"; //打开方式 var button_on ='on'; //当前焦点对应按钮的样式名 var button_off ='';//非当前焦点对应按钮的样式名 //不可修改区域 var imgUrl = new Array(); var imgText = new Array(); var imgLink = new Array(); var imgAlt= new Array(); //var menuList = new Array();//菜单menu var ver=2; //兼容浏览器版本 默认2 为非ie var firstTime=true; var n =-1; [loop=5] imgUrl[++n]='{$Field(Picurl,Text,0,...,0,)}'; imgText[n]='<a href="{$Field(ID,GetInfoUrl,1,1)}" target="_blank" class=linkblack>{$Field(Title,Text,0,...,0,)}</a>'; imgLink[n]='{$Field(ID,GetInfoUrl,1,1)}'; imgAlt[n]='{$Field(Title,Text,0,...,0,)}'; [/loop] var count=0; for (i=0;i<imgUrl.length;i++) { if( (imgUrl[i]!="") && (imgText[i]!="")&& (imgLink[i]!="")&& (imgAlt[i]!="")) { count++; } else { break; } } function p$(string){ document.write(string); } function $(id){ return document.getElementById(id); } //固定图片size p$("<style> #f_img { width:"+imgWidth+"px;height:"+imgHeight+"px;</style>"); function change(){ if (ver==1){ with($('f_img').filters[0]){ Transition=1; apply(); play(); } } if (firstTime){ firstTime=false;timeOut=_timeOut_/;} else{ $('f_img').src=imgUrl[now]; $('f_img').alt=imgAlt[now]; $('f_imgLink').href=imgLink[now]; for (var i=0;i<count;i++) { $('b'+i).className="button"; //$('f_menu'+i).className=""; } $('b'+now).className="on"; //$('f_menu'+now).className="on"; now=(now>=imgUrl.length-1)?0:now+1; timeOut=_timeOut_; } theTimer=setTimeout("change()", timeOut); } function b_change(num){ window.clearInterval(theTimer); now=num; firstTime=false; change(); } //draw 渐变line (即css:f_line) function draw_line(){ var div = document.createElement("div"); div.id = 'f_line'; $('f_infoDiv').insertBefore(div,$('f_infoDiv').childNodes.item(0)); } //表现层 start //图片 var a = document.createElement("a"); a.id="f_imgLink"; a.target=target; a.href=imgLink[now]; $('f_imgDiv').appendChild(a); var img = document.createElement("img"); img.id="f_img"; img.width=imgWidth; img.height=imgHeight; img.src=imgUrl[now]; img.alt=imgAlt[now]; a.appendChild(img); //数字按钮 for (var i=count-1;i>=0;i--){ var div_bg = document.createElement("div"); div_bg.id = 'div_bg'+i; div_bg.className='bg'; $('f_buttonDiv').appendChild(div_bg); var a = document.createElement("a"); a.id = 'b'+i; a.className = (i==now+1)?"button_on":"button_off"; a.title=imgAlt[i]; a.innerHTML=i+1; a.href='javascript:b_change('+i+')'; $('div_bg'+i).appendChild(a); var div= document.createElement("div"); $('f_buttonDiv').appendChild(div); } //表现层 end $('f_img').onmouseover=function(){window.clearInterval(theTimer);} $('f_img').onmouseout=function(){theTimer=setTimeout("change()", timeOut2);} try{ //滤镜版本 new ActiveXObject("DXImageTransform.Microsoft.Fade"); $('f_img').filters[0].play(); ver=1; draw_line(); } catch (e){ver=2;} var theTimer = setTimeout("change()", _timeOut_/); </script> 别忘了SQL查询语句: -------------------------------------------------------------------------------- select top 5 ID,Title,Adddate,Picurl,Slide,Verific from KS_Article where verific=1 and Slide=1 order by Adddate desc -------------------------------------------------------------------------------- 如果你还不会做或者做不出来更或者看不懂代码,那请告知我,我把视频发出来。

推荐整理分享用纯CSS+DIV写的漂亮Flash幻灯片及SQL标签教程!(css用什么写),希望有所帮助,仅作参考,欢迎阅读内容。

用纯CSS+DIV写的漂亮Flash幻灯片及SQL标签教程!(css用什么写)

文章相关热门搜索词:css dive,div css教程实例,div+css怎么做,用css怎么写,css中div怎么用,css中div怎么用,div css教程实例,用css怎么写,内容如对您有帮助,希望把文章链接给更多的朋友!

解决IE5/IE5.5/IE6/FF的兼容性问题——CSS 转自蓝色理想作者bias原文地址

超赞的随机颜色搭配工具 点激SPIN随机生成一组颜色Flash动画在线播放

CSS2实现的隔行换色 利用了CSS2的相邻选择符IE7以下不支持隔行换色示例:!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Strict//EN""

标签: css用什么写

本文链接地址:https://www.jiuchutong.com/biancheng/372018.html 转载请保留说明!

上一篇:div+css布局必须要知道的css条件注释理论及实践第1/2页(css+div布局的常用方法)

下一篇:解决IE5/IE5.5/IE6/FF的兼容性问题——CSS(解决胃胀气最快方法)

  • 企业增值税必须退税吗?
  • 小规模企业收入怎么做账
  • 房屋租赁发票票样
  • 补贴收入企业所得税
  • 建筑业企业纳税人税率是多少
  • 发现账实不符,第一件事就是要干嘛?
  • 总资产报酬率计算举例
  • 开票信息里面的电话号码怎么来的?
  • 财务物料消耗都有哪些
  • 2021最新车船税
  • 月不超过10万,季不超过30万免什么税
  • 工程承包款要交多少税
  • 文件夹正在使用,操作无法完成
  • 公司过节发红包怎么入账
  • php字符串操作函数
  • 模态框无法弹出
  • PHP:imagecreatefromgd2()的用法_GD库图像处理函数
  • 购买二手车要缴税吗
  • 技术服务转包涉税处理
  • 一般纳税人企业所得税如何计算
  • pytorch开源项目
  • vue3的
  • 职工教育经费能结转几年
  • 所得税需要结转么
  • 净现值与原始投资额现值
  • 一般纳税人费用专票如何做账
  • 土地使用税和房产税怎么申报
  • MySQL查看最大连接数
  • dedecms分页标签
  • 帝国cms灵动标签调用外表
  • 工资薪金个人所得税在哪里申报
  • 员工旅游的费用账务处理
  • 小企业会计准则适用于哪些企业
  • 电汇汇款方式的基本流程
  • 如何在sql server中打开已有数据库
  • 建筑工程维修费占总费用多少
  • 事业单位银行开户规定
  • 留抵进项税太多怎么办
  • 发票的种类有哪些?存在哪些区别
  • 中小企业应交税费怎么算
  • 上市公司回购股票多久可出售
  • 如何填制费用报销单
  • 用友软件操作流程图片
  • 会计原材料的账怎么记账
  • 国税地税发票样式区别
  • 抵扣认证的发票需要还回去吗
  • 员工报销材料费用会计分录
  • 个体户生产经营所得税减半征收
  • 以前年度调整
  • 营改增之后还有营业税金及附加吗
  • 会计凭证是对外公布的资料吗
  • sqlserver存储过程返回多个结果集
  • 详述社会体育学科的研究对象
  • Mac系统怎么设置ftp
  • linux的sh
  • watchdog. sys
  • winxp中网桥Bridge功能概述及配置注意事项
  • win10 edge浏览器设置信任站点
  • frontpage软件
  • mysqld-nt.exe - mysqld-nt是什么进程 有什么用
  • linux a
  • c#在unity的作用
  • cocos2dx解密
  • js实现日历效果
  • 原生js怎么获取input值
  • Extjs4 类的定义和扩展实例
  • shell脚本编写 方法
  • unity配置安卓sdk
  • opengl视角跟随鼠标方向移动
  • jquery 选择
  • 深入理解新发展理念,推进供给侧结构性改革
  • python字典键值对个数
  • javascript文档对象
  • javascript create
  • 研发费用加计扣除75%还是100%
  • 四川省国家电子税务局网上申报
  • 如何查询车辆购买的保险是哪家保险公司
  • 陕西省西安市国家民用航天产业基地邮编
  • 税金乘以12%是什么
  • 深圳税务局完税证明
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设