首先是js跳转
<script>window.location.href='http://www.xj123.info';</script> |
用php跳转
<?php header("location:http://www.xj123.info")?> |
最后一个利用head的meta跳转
<META HTTP-EQUIV=REFRESH CONTENT="0;URL=http://www.linux.org"> |
让ie6支持png透明的js
分类:网站技术日期:2010-11-27 - 17:20:49评论:14条作者:老谢
<script language="JavaScript"> function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. { var arVersion = navigator.appVersion.split("MSIE") var version = parseFloat(arVersion[1]) if ((version >= 5.5) && (document.body.filters)) { for(var j=0; j<document.images.length; j++) { var img = document.images[j] var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "id='" + img.id + "' " : "" var imgClass = (img.className) ? "class='" + img.className + "' " : "" var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " var imgStyle = "display:inline-block;" + img.style.cssText if (img.align == "left") imgStyle = "float:left;" + imgStyle if (img.align == "right") imgStyle = "float:right;" + imgStyle if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" img.outerHTML = strNewHTML j = j-1 } } } } window.attachEvent("onload", correctPNG); </script> |
Switch>enable Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 2 Switch(config-vlan)#exit Switch(config)#vlan 3 Switch(config-vlan)#exit Switch(config)#int fa 0/2 Switch(config-if)#switchport access vlan 2 Switch(config-if)#int fa 0/3 Switch(config-if)#switchport access vlan 3 Switch(config-if)#int fa 0/1 Switch(config-if)#switchport mode trunk Switch(config-if)#end |
路由器
Router>enable Router#conf terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int fa 0/0 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#int fa 0/0.1 %LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to Router(config-subif)#encapsulation dot1Q 2 Router(config-subif)#ip add 192.168.1.1 255.255.255.0 Router(config-subif)#exit Router(config)#int fa 0/0.2 %LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to Router(config-subif)#encapsulation dot1Q 3 Router(config-subif)#ip add 192.168.2.1 255.255.255.0 Router(config-subif)#end |
配置telnet登陆及特权模式密码
分类:网络技术日期:2010-11-24 - 21:57:56评论:0条作者:老谢
实验目的:配置pc telnet登陆交换机及特权模式的密码
配置过程如下
Switch>en Switch#conf terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int vlan 1 Switch(config-if)#ip add 192.168.1.1 255.255.255.0 Switch(config-if)#no shutdown %LINK-5-CHANGED: Interface Vlan1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up Switch(config-if)#exit Switch(config)#enable password 123456 Switch(config)#line vty 0 4 Switch(config-line)#password xj123 Switch(config-line)#login Switch(config-line)#end |
首页与内页不同title
分类:折腾日期:2010-11-23 - 12:30:16评论:5条作者:老谢
本人需要首页和内页的文章标题不一样
本来是把heade的东西复制到index
不过这样增加了index的代码量而且不方便
完美解决方法如下,ps:感谢小鬼
<title> <?php if (is_home() ) { ?><?php bloginfo('name'); ?> _ <?php bloginfo('description'); ?> <?php } else {?><?php wp_title(''); ?> _ <?php bloginfo('name'); ?> <?php } ?> </title> |
馊博客已经低调很久了
论坛关闭也已经一个多月了
可是馊博客不能倒,论坛大家都没有时间管理,所以现在决定做一个导航
独立博客的导航站点,到时候“馊博客”可能改名为“搜博客”
在这里,你可以搜索到你感兴趣的博客
就说这么多
现在程序选定114啦的导航程序
已经在本地调试,计划12月中旬可以试运行
年底正式上线
希望大家到时候可以捧个场~
简单设置关闭恶心的QQ邮箱漂流瓶
分类:乱七八糟日期:2010-11-20 - 18:59:13评论:2条作者:老谢
利用三层交换机vlan间通信
分类:网络技术日期:2010-11-20 - 16:02:24评论:1条作者:老谢
首先在交换机上配置vlan
配置过程如下
Switch>en
Switch#conf termi
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 2
Switch(config-vlan)#exit
Switch(config)#vlan 3
Switch(config-vlan)#exit
Switch(config)#int fa 0/2
Switch(config-if)#sw access vlan 2
Switch(config-if)#int fa 0/3
Switch(config-if)#sw access vlan 2
Switch(config-if)#int fa 0/4
Switch(config-if)#sw access vlan 3
Switch(config-if)#int fa 0/5
Switch(config-if)#sw access vlan 3
Switch(config-if)#int fa 0/1
Switch(config-if)#sw mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Switch(config-if)#no shutdown
我们现在分别ping一下看看
vlan2内的192.168.1.3可以ping通
vlan3的192.168.2.2掉包
我们开始配置路由器
Switch>enable
Switch#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 2
Switch(config-vlan)#exit
Switch(config)#vlan 3
Switch(config-vlan)#exit
Switch(config)#int fa 0/1
Switch(config-if)#sw mode trunk
Switch(config-if)#no shutdown
Switch(config-if)#int vlan 2
%LINK-5-CHANGED: Interface Vlan2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, changed state to upSwitch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#int vlan3
%LINK-5-CHANGED: Interface Vlan3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan3, changed state to upSwitch(config-if)#ip add 192.168.2.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#end
配置完毕,我们可以show下路由表
下面我们ping试试看
vlan2和vlan3已经可以正常通信
gd又可以1美元买域名喽
分类:网站运营日期:2010-11-19 - 12:41:28评论:6条作者:老谢
优惠码:GOBBLE
优惠内容: .COM, .US, .MOBI, .BIZ, .NET, .ORG,
.CA, .CO.UK and .IN仅为1.00美元的域名!
第一年的新的注册或转移登记仅适用。此优惠不得用于续费
最新评论
秦大叔:现在都是够用就好,不想太折腾了。
Andy烧麦:X1C 5th 2017年-2022年,走南闯北...
王叨叨:自从换了typecho,博客也不怎么出问...
王叨叨:我准备给我的老笔记本搞一个linux系...
大D:台式机现在只能是AMD YES!
springwood:查询了一下,ThinkPad x1c 9th ...
黑石:特斯拉和小米,选哪个?不是很懂车,就...
Huo:电车的确开着舒服,也是纠结想换电车,...
zwwooooo:类似以前做网站开发时,一开始有自...
老陳网志:有点高端,像我们整点nas玩玩就够...