| Subcribe via RSS

CSS兼容IE6,IE7,FF

06月 29th, 2008 | No Comments | Posted in 程序开发

具体写法很容易:

#someNode
{
    position: fixed;
   #position: fixed;
   _position: fixed;
}
  • 第一排给Firefox以及其他浏览器看
  • 第二排给IE7(可能以后的IE8、IE9也是如此,谁知道呢)看
  • 第三排给IE6以及更老的版本看

最好的应用就是可以让IE6也“支持”position:fixed,而且,配合这个原理,可以做到不引入JavaScript代码(仅用IE6的expression),我这里有一个现成的页面,CSS如下写:

#ff-r
{
 position:  fixed;
_position:  absolute;
 right:     15px;
 top:       15px;
_top:       expression(eval(document.compatMode &&
            document.compatMode=='CSS1Compat') ?
            documentElement.scrollTop+15 :
            document.body.scrollTop +
            (document.body.clientHeight
            -this.clientHeight));
}
Tags:

反向链接添加技巧

06月 22nd, 2008 | No Comments | Posted in SEO优化

权威的内容

  1. 把内容写得简单易懂,这样更多的人可以看懂并为你传播。
  2. 尽量减少语法或拼写错误,如果想获得权威站点的链接,这一点非常重要。
  3. 为站点添加“隐私政策”和“关于我们”页,这样看起来更值得信任。博客的话,放上一张你的照片可以建立权威性。 More »

    Tags:

SEO知识简单15问

06月 22nd, 2008 | No Comments | Posted in SEO优化

SEO知识摸底自测一,满分50分,时间8分钟。请把答案写在纸上。

单项选择题(2分×15=30分)

  1. 搜索引擎搜索结果页面,简称什么?
    1. SERP
    2. SEM
    3. PPC
  2. Inbound Links 指的是以下哪一种?
    1. 内部链接
    2. 反向链接
    3. 导出链接 More »

      Tags: ,

张海峰在网站百度恢复排名

06月 17th, 2008 | No Comments | Posted in 空间制作

刚才不小心查了下”张海峰”,尽然发现恢复到第二的排名,原来服务器一直处于不稳定状态,现在服务器恢复了,排名也恢复上来了,谁让咱不会SEO,也不会优化,做成什么样就是什么样。

可能在意太多,反而没有好的效果,做自己的网站,写自己的心情,让大家说去吧。

先前运气一直不好,排名恢复让我恢复了信心,感谢百度,感谢李老大!!

Javascript解析URL的方法

06月 7th, 2008 | No Comments | Posted in 程序开发

URL : 统一资源定位符 (Uniform Resource Locator, URL)

完整的URL由这几个部分构成:
scheme://host:port/path?query#fragment

scheme = 通信协议 (常用的http,ftp,maito等)
host = 主机 (域名或IP)
port = 端口号
path = 路径

query = 查询
可选,用于给动态网页(如使用CGI、ISAPI、PHP/JSP/ASP/ASP.NET等技术制作的网页)传递参数,可有多个参数,用”&”符号隔开,每个参数的名和值用”=”符号隔开。

fragment = 信息片断
字符串,用于指定网络资源中的片断。例如一个网页中有多个名词解释,可使用fragment直接定位到某一名词解释。(也称为锚点.)

对于这样一个URL
http://www.qqcms.com:80/checklink/?ver=1.0&id=6#imhere

我们可以用javascript获得其中的各个部分
1, window.location.href
整个URl字符串(在浏览器中就是完整的地址栏)

2,window.location.protocol
URL 的协议部分
本例返回值:http:

3,window.location.host
URL 的主机部分
本例返回值:www.qqcms.com

4,window.location.port
URL 的端口部分
如果采用默认的80端口(update:即使添加了:80),那么返回值并不是默认的80而是空字符
本例返回值:””

5,window.location.pathname
URL 的路径部分(就是文件地址)
本例返回值:/checklink/

6,window.location.search
查询(参数)部分
除了给动态语言赋值以外,我们同样可以给静态页面,并使用javascript来获得相信应的参数值
本例返回值:?ver=1.0&id=6

7,window.location.hash
锚点
本例返回值:#imhere
 

Tags: ,

ubuntu下配置nginx+php+mysql+zend

06月 5th, 2008 | No Comments | Posted in linux

导出新系统ubuntu server 8.04安装history.

    1  cd /home/
    2  wget http://192.168.1.100/nginx-php.tar.gz
    3  apt-get install libxml2
    4  apt-get install xml2-config
    5  apt-get install libxml-dev
    6  cp /etc/apt/sources.list /etc/apt/sources.list.bak
    7  nano /etc/apt/sources.list
    8  apt-get update
    9  apt-get install libxml-dev
   10  apt-get install xml2
   11  apt-get install zlib1g-dev
   12  apt-get install libz-dev
   13  apt-get install zlib1g-dev
   14  apt-get install libxml2-dev
   15  apt-get install curl
   16  apt-get install curl-dev
   17  apt-get install libcurl
   18  apt-get install curl
   19  apt-get install libjpeg
   20  apt-get install libjpeg-dev More »

Tags: ,