web 代码,html代码,网页代码,php程序语言,asp程序语言,jsp程序语言,
分页: 1/3 第一页 1 2 3 下页 最后页 [ 显示模式: 摘要 | 列表 ]

if len(rs_news("title"))>15 then
response.write(left(rs_news("title"),10)&"...")
else
response.write(rs_news("title"))
end if
类别:ASP:PHP:C#.NET | Tags: , | 0 条评论, 177 次阅读
Jul
16
2008
把默认的首页index.php这个改为其他!例如bbs.php
把forumdisplay.php复制一份过来命名为index.php
把index.php(用forumdisplay.php改的)文件打开,第一行看到的是fid这个根据自己的论坛版块写!

这样就成了一个单版面的论坛了 ,

版块名删除
找到viewthread.php
删除'.$forum['name'].'和 »
就是删除版块名称


类别:ASP:PHP:C#.NET | Tags: , | 0 条评论, 400 次阅读
Mar
29
2008
javascript汉字转拼音代码

使用方法(1):pinyin.go('汉字'); //例:张家界 ZhangJiaJie (首字大写)
使用方法(2):pinyin.go('汉字',1);//例:张家界 zhangjiajie (全小写)

下面代码:
类别:ASP:PHP:C#.NET | Tags: , | 0 条评论, 309 次阅读
Mar
18
2008
Microsoft VBScript 运行时错误 错误 '800a0046'

没有权限: 'CreateObject'

我的测试服务器上也出了这个问题.不过今天弄好了.
是因为c:\windows\system32下的scrrun.dll文件的权限问题.
有可能大家使用一些服务器维护或者安全软件给scrrun.dll这个文件设置了拒绝guest用户组的拒绝权限,
我把scrrun.dll这个文件直接就给administrators组全部权限,其他的都没有加,然后这个Microsoft VBScript 运行时错误 错误 '800a0046' 没有权限: 'CreateObject' 问题解决了。

类别:ASP:PHP:C#.NET | Tags: , , , , | 0 条评论, 2718 次阅读
Mar
12
2008
dedecms 调用 chinahtml网站的幻灯片!



<DIV id=au>

{dede:arclist type='image' att='3' row='1'}
    <div style="display:block"><a href="[field:arcurl/]" rel="external"><img src="[field:picname/]" alt="[field:title/]" /></a></div>
    {/dede:arclist}
    {dede:arclist limit='1,4' type='image' att='3'}
    <div style="display:none"><a href="[field:arcurl/]" rel="external"><img src="[field:picname/]" alt="[field:title/]" /></a></div>
    {/dede:arclist}

</DIV>
<DIV id=conau>

{dede:arclist type='image' att='3' titlelen=40 row='1'}
    <div style="display:block"><a href="[field:arcurl/]" title="[field:title/]">[field:title/]</a></div>
    {/dede:arclist}
    {dede:arclist limit='1,4' type='image' titlelen=40 att='3'}
    <div style="display:none"><a href="[field:arcurl/]" title="[field:title/]">[field:title/]</a></div>
    {/dede:arclist}

</DIV>
类别:ASP:PHP:C#.NET | Tags: , | 0 条评论, 353 次阅读
Mar
5
2008
seo网站优化,dedecms怎样让超连接显示目录路径,去掉index.html文件名

1.首页,栏目,文章页面顶部的导航栏修改

  
<!--导航栏-->
        <div class="topmenu cbody">
        <ul>
            <li><a href="/">首页</a> {dede:channel type='top' row='8'} </li>
            <li><a href="[field:typelink function='str_replace("index.html","",@me)'/]">[field:typename/]</a> {/dede:channel} </li>
            <li><a href='{dede:field name='specurl'}{/dede:field}/index.php'>专题</a></li>
            <li><a href="/plus/guestbook/index.php">留言</a> </li>
        </ul>


2.如果你希望文章的地址也是目录格式的,需要修改    文章命名规则:为类似如下格式
类别:ASP:PHP:C#.NET | Tags: , , | 0 条评论, 445 次阅读
Mar
5
2008
编辑httpd.conf
在最后加上

引用
NameVirtualHost *


rewriteengine on
rewritecond %{HTTP_HOST} [^.]+\.alibaba\.uni\.cc$
rewriterule ^(.+) %{HTTP_HOST}$1 [C]
rewriterule ([^.]+)\.alibaba\.uni\.cc(.*) /$1$2
    ServerAdmin webmaster@XXX.COM
    DocumentRoot /www
    ServerName alibaba.uni.cc
    ErrorLog logs/alibaba.uni.cc-error_log
    CustomLog logs/alibaba.uni.cc-access_log common



将http://username.xxx.com对于username的主页请求转换为对http://xxx.com/username的请求
---- 对于HTTP/1.1的请求包括一个Host: HTTP头,我们能用下面的规则集重写 http://username.xxx.com/anypath到/home/username/anypath。
注: “rewritecond”表明是条件重写规则,当满足后面定义的条件后才会应用下面的重写规则,“rewritecond”有各种变量,请查阅相关文档。

类别:ASP:PHP:C#.NET | Tags: , | 0 条评论, 331 次阅读
Mar
4
2008
奥运倒计时的源代码


<Script Language = "JavaScript">
function time1()
{
now=new Date();
m=now.getMonth();
n=now.getYear()
a=2008-now.getYear();
b=12-now.getMonth();
if(m=1,3,5,7,8,10,12){c=31-now.getDate()}
if(m=4,6,9){c=30-now.getDate()}
if(m=2){c=28-now.getDate()}
if(n=2004,2008){c=29-now.getDate()}
e="0"+24-now.getHours();
f="0"+59-now.getMinutes();
g="0"+60-now.getSeconds();
if(e>10){e=24-now.getHours()}
if(f>10){f=59-now.getMinutes()}
if(g>10){g=60-now.getSeconds()}
document.Time.CLOCK.value="离2008北京奥运会还有"+a+"年"+b+"个月"+c+"天"+e+"小时"+f+"分"+g+"秒"
setTimeout( 'time1()',1000)
}
</SCRIPT>
<form method="post" name="Time">
<input name="CLOCK" size="52" value="">
</form>
<SCRIPT>
time1()
</SCRIPT>
类别:ASP:PHP:C#.NET | Tags: , , | 0 条评论, 322 次阅读
Mar
1
2008
dedecms原来生成的xml只是包含了文章的摘要,没有原文.用来做feed一点吸引力都没有.
当然有了具体内容也可以为别人提供咨讯,如百度新闻,GG等.

修改方法如下:

1.找rss的模板 templets/plus/rss.htm
[field:description/]
改成
[field:body/]

如果你不改直接增加换成别的名字也可以,
例如:
[field:body/]
2.修改生成rss的php源代码./include/inc_rss_view.php

大概100行左右 或者搜 $query = "Select
类别:ASP:PHP:C#.NET | Tags: , | 0 条评论, 399 次阅读
Feb
25
2008
国内著名开源CMS网站内容管理系统DedeCms于1月21日凌晨发布了v5正式版。
庆祝dedecmsV5发布,刚制作的dedecmsv5火车头采集软件3.2模块发布.
特此制作此模块锻炼一下..我测试发表成功!欢迎大家试用!


模块下载:
类别:ASP:PHP:C#.NET | Tags: , | 0 条评论, 628 次阅读
Jan
22
2008
分页: 1/3 第一页 1 2 3 下页 最后页 [ 显示模式: 摘要 | 列表 ]