代码 - 翼展电脑服务中心


php 传递参数中的问号怎么隐藏?

2016-9-10 乱云飞 代码 评论(0) 浏览(1296) 标签: php代码 隐藏问号

00000000.png 

用一行JS定时隐藏指定DIV层

2016-8-31 乱云飞 代码 评论(0) 浏览(1479) 标签: 隐藏层 JS代码

setTimeout(function(){document.getElementById("testdiv").style.display="none";},15000);//15秒后隐藏testdiv

解决DIV被FLASH/OBJECT覆盖问题!

2016-8-30 乱云飞 代码 评论(0) 浏览(1378) 标签: flash覆盖div

浮动层或便捷菜单给用户操作极大的便利。使用IE6、7时,SELECT控件不能被DIV遮盖。OBJECT控件也不能被DIV遮盖。究其原因,大多表单控件或HTML控件是使用浏览器本身渲染绘制,因此层次可以由浏览器自身控制。而SELECT控件是Windows窗口控件,同样可见型ActiveX容器也是使用面向Windows技术开发。它们表现实质仍是相同,都是Windows窗口包含句柄。因此,浏览器不能对其调整层次,浏览器本身与他们都是平级的。尽管IE8中解决了SELECT控件的问题,但OBJECT控件依然没办法改变。
参考网上的资料经过研究,有这样的关系。Iframe框架可以遮盖OBJECT、SELECT,DIV可以遮盖Iframe。因此,我们可以将Iframe放置在DIV层内,将Iframe大小宽度设置成与层一样放置在层之下,当层经过OBJECT、SELECT时,下方的框架将替层遮盖其不能遮盖的控件。
需要说明的是使用HTML标签属性设置显示层次,必须是z-Index而不是zIndex。zIndex是使用脚本动态修改属性使用。两者不通用。

下面给出一段示例:需要说明的是top属性要设置成0,不然将显示不了层而是框架。


<div id="DominoActionBar" style='position:absolute; left:20px; top:20px; width:400px; height:20px; z-Index:9; background:#F60;'>
<iframe id='iframebar' src="about:blank" frameBorder=0 marginHeight=0 marginWidth=0
  style="position:absolute; visibility:inherit; top:0px;left:0px;height:20px;width:400px; z-Index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';">
</iframe>
解决DIV被FLASH/OBJECT覆盖问题!绝对最上层!
</div>


只能用绑定的域名访问网站ASP代码

2016-8-23 乱云飞 代码 评论(0) 浏览(1509) 标签: 网站域名 ASP代码

<%
if Request.ServerVariables("SERVER_NAME")<>"80c.cc" then
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://80c.cc/"
end if
%>

路由器iptables防火墙配置备份

2016-7-11 乱云飞 代码 评论(0) 浏览(4441) 标签: iptables 路由器配置 防火墙

#下面一行是虚假PING值
#iptables -t nat -I PREROUTING -i br0 -p icmp -j REDIRECT
#//下面一行是劫持所有网站到指定IP和端口
#iptables -t nat -A PREROUTING -p tcp -m multiport --dport 80,8080 -j DNAT --to 192.168.1.1:83
#使用下面的语法来开启端口范围
#iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 7000:7010 -j ACCEPT
#//禁止所有视频flv
#iptables -I FORWARD -p tcp --dport 80 -m flv -j DROP

路由器广告过滤配置备份

2016-6-23 乱云飞 代码 评论(0) 浏览(4607) 标签: 路由器 去广告 广告过滤

#enable-tftp
#tftp-root=/opt/lib/ezboot
#dhcp-boot=grldr,,192.168.1.1
address=/.ad.winrar.com.cn/192.168.1.1
address=/.xl9.xunlei.com/192.168.1.1
address=/.i3.go2yd.com/192.168.1.1
address=/.ad.xiaomi.com/192.168.1.1
address=/.union.mi.com/192.168.1.1
address=/.stat.mi.com/192.168.1.1
address=/.msg.xiaomi.net/192.168.1.1
address=/.game.xiaomi.com/192.168.1.1
address=/.mistat.xiaomi.com/192.168.1.1
address=/.tracking.miui.com/192.168.1.1
address=/.home.wps.cn/192.168.1.1
address=/.ic.wps.cn/192.168.1.1
address=/.ic100.wps.cn/192.168.1.1
address=/.dyn.wps.cn/192.168.1.1
address=/.adsrich.qq.com/192.168.1.1
address=/.kkeye.com/192.168.1.1
address=/.08le.cn/192.168.1.1
address=/.pp6l.com/192.168.1.1
address=/.fastapi.net/192.168.1.1
address=/.wpscdn.cn/192.168.1.1
#address=/.bdimg.com/192.168.1.1
address=/.info.wps.cn/192.168.1.1
address=/.mini.wps.cn/192.168.1.1
address=/.cache.wps.cn/192.168.1.1
address=/.ksosoft.com/192.168.1.1
address=/.169.cn/192.168.1.1
address=/.169x.cn/192.168.1.1
address=/.flash2-http.qq.com/192.168.1.1
address=/.360.cn/192.168.1.1
#address=/.360.com/192.168.1.1
address=/.360buyimg.com/192.168.1.1
address=/.4kt2.com/192.168.1.1
address=/.50bang.org/192.168.1.1
address=/.51.la/192.168.1.1
address=/.70e.com/192.168.1.1
address=/.71.am/192.168.1.1
address=/.ads.ce.com/192.168.1.1
address=/.adserv.kunming.cn/192.168.1.1
address=/.adshmct.qq.com/192.168.1.1
address=/.adshmmsg.qq.com/192.168.1.1
address=/.allyes.com/192.168.1.1
address=/.api.miwifi.com/192.168.1.1
address=/.baidustatic.com/192.168.1.1
address=/.baofeng.com/192.168.1.1
address=/.baofeng.net/192.168.1.1
address=/.behe.com/192.168.1.1
address=/.c.gdt.qq.com/192.168.1.1
address=/.c.gj.qq.com/192.168.1.1
address=/.cb.baidu.com/192.168.1.1
address=/.chinauma.com/192.168.1.1
address=/.click.jd.com/192.168.1.1
address=/.clicklog.moviebox.baofeng.net/192.168.1.1
address=/.client.show.qq.com/192.168.1.1
address=/.clk.gentags.net/192.168.1.1
address=/.clkservice.youdao.com/192.168.1.1
address=/.cnzz.com/192.168.1.1
address=/.cpro.baidustatic.com/192.168.1.1
address=/.deliver.ifeng.com/192.168.1.1
address=/.doubleclick.net/192.168.1.1
address=/.duba.com/192.168.1.1
address=/.duba.net/192.168.1.1
address=/.duokanbox.com/192.168.1.1
address=/.e.baidu.com/192.168.1.1
address=/.eiv.baidu.com/192.168.1.1
address=/.entry.baidu.com/192.168.1.1
address=/.eu.10jqka.com.cn/192.168.1.1
address=/.fodder.qq.com/192.168.1.1
address=/.g.163.com/192.168.1.1
address=/.g1.163.com/192.168.1.1
address=/.googlesyndication.com/192.168.1.1
address=/.hd.sohu.com/192.168.1.1
address=/.hd.sohu.com.cn/192.168.1.1
address=/.he8e.com/192.168.1.1
address=/.hm.baidu.com/192.168.1.1
address=/.hm.l.qq.com/192.168.1.1
address=/.houyi.baofeng.net/192.168.1.1
address=/.ijinshan.com/192.168.1.1
address=/.imc.l.qq.com/192.168.1.1
address=/.imgcache.qq.com/192.168.1.1
#address=/.iqiyi.com/192.168.1.1
#address=/.video.qiyi.com/192.168.1.1
#address=/.update.ppstream.com.iqiyi.com/192.168.1.1
address=/.irs01.com/192.168.1.1
address=/.irs01.net/192.168.1.1
address=/.l.qq.com/192.168.1.1
address=/.liebao.cn/192.168.1.1
address=/.m.ys7.com/192.168.1.1
address=/.masterconn.qq.com/192.168.1.1
address=/.mediav.com/192.168.1.1
address=/.miwifi.com/192.168.1.1
address=/.pc120.com/192.168.1.1
address=/.pos.baidu.com/192.168.1.1
address=/.q.i.gdt.qq.com/192.168.1.1
address=/.sax.sina.com.cn/192.168.1.1
address=/.showxml.qq.com/192.168.1.1
address=/.sogou.com/192.168.1.1
address=/.soueast-motor.outku.com/192.168.1.1
address=/.stat.titan.imgo.tv/192.168.1.1
address=/.stat.yunfan.com/192.168.1.1
address=/.tanx.com/192.168.1.1
address=/.tuisong.baidu.com/192.168.1.1
address=/.tv.sohu.com/192.168.1.1
address=/.v.gdt.qq.com/192.168.1.1
address=/.wan.2345.com/192.168.1.1
address=/.wangmeng.baidu.com/192.168.1.1
address=/.wo.com.cn/192.168.1.1
address=/.wrating.com/192.168.1.1
address=/.x.jd.com/192.168.1.1
address=/.yeyou.2345.com/192.168.1.1
address=/.yingxiao.baidu.com/192.168.1.1
address=/.fa.163.com/192.168.1.1
address=/.hao.169.cn/192.168.1.1

萤石云直播官网改版了,新版萤石云接口代码发布。

2016-4-25 乱云飞 代码 评论(0) 浏览(2380) 标签: 监控直播 网页代码

<iframe src=http://80c.cc/api/ys7/?37806  width=720 height=560 frameborder=0 margin=0 padding=0 scrolling=no></iframe>
把红色字替换成自己的海康威视摄像头序列号,或者萤石云播放页面ID,蓝色字设置成合适的像素尺寸,嵌入到自己的网页即可。需要帮助请于我联系。QQ 345794501 

JS限制图片维度(限制图片显示宽度)

2016-2-14 乱云飞 代码 评论(0) 浏览(1665) 标签: 维度 JS代码 限制图片宽度

//查找网页内宽度太大的图片进行缩放
function ReImgSize(){
for (i=0;i<document.images.length;i++)
{
if (document.images[i].width>600)
{
document.images[i].width="600"
}
}
}
上面的代码保存成width.js
<script src="/inc/width.js" type="text/javascript"></script>
<body onload="ReImgSize()">

这个代码效果不错,但是怎么样才能让某个图片例外呢?比如 banner 。希望会的朋友交流一下。

在ASP程序中绑定域名,只能用绑定的域名访问网站。

2016-2-14 乱云飞 代码 评论(0) 浏览(1607) 标签: 绑定域名 ASP代码

<%
if Request.ServerVariables("SERVER_NAME")<>"80c.cc" then
response.redirect "http://80c.cc/"
end if
%>
----------------------------------------------------------------
下面这几行代码是301重定向,效果应该优于上面的。
<%
if Request.ServerVariables("SERVER_NAME")<>"80c.cc" then
Response.Status="301 Moved Permanently"
Response.AddHeader "Location",http://80c.cc/
end if
%>
预ICP备10086-001号 © 翼展网/80C.CC 技术支持/洛阳翼展科技
TEL / 13213610060 QQ / 345794501
Powered by emlog