| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2025 人关注过本帖
标题:这样的功能asp是否能实现?
只看楼主 加入收藏
qroom
Rank: 1
等 级:新手上路
帖 子:30
专家分:0
注 册:2007-12-1
收藏
得分:0 
应该是用ajax实现的吧,这种效果见很多啊,比如百度空间,新浪博客,都可以这样布局的
2007-12-29 09:29
wyg4859
Rank: 2
等 级:新手上路
威 望:4
帖 子:883
专家分:0
注 册:2006-8-2
收藏
得分:0 
[url]http://www.[/url]不管三七十一网就是

http://www.找到组织!找到党!
2007-12-29 09:56
iamstar
Rank: 1
等 级:新手上路
帖 子:42
专家分:0
注 册:2006-9-7
收藏
得分:0 
靠,还真是这样!
不知哪位有这种网页的源码?
这种技术难不难啊?
2007-12-29 10:41
wsx87
Rank: 1
来 自:温州
等 级:新手上路
帖 子:33
专家分:0
注 册:2007-6-4
收藏
得分:0 
哪位高手能给出一小段代码看看学习!

我爱学习!
2007-12-29 18:23
t56758408
Rank: 1
等 级:新手上路
帖 子:40
专家分:0
注 册:2007-1-4
收藏
得分:0 
研究了下下 如果你有点Ajax基础应该有点帮助
我把个性定制导出了研究了下

var json_3721 =
{
    "ver":"2006-11-01 13:18","title":
    {"id":"title","t":"问候语","s":"titlewindowstyle","h":"0","u":"0","r":"0","e":"1","c":"0"
},
    "clew":
    {"id":"clew","t":"通知栏","s":"clewwindowstyle","h":"0","u":"0","r":"0","e":"0","c":"0"},
    "columns":
        [
            {"cname":"col1","w":"30%","win":
                [
                    {"id":"weather","t":"美丽今日","s":"blue","h":"0","u":"0","r":"0","e":"1","c":"0"},
                    {"id":"navigation_myweb","t":"我的网站","s":"blue","h":"0","u":"0","r":"0","e":"1","c":"0"},
                    {"id":"navigation_mail","t":"E-mail","s":"orange","h":"0","u":"0","r":"0","e":"1","c":"0"},
                    {"id":"navigation_native","t":"本地站点","s":"blue","h":"0","u":"0","r":"0","e":"1","c":"0"},
                    {"id":"navigation_download","t":"热门下载","s":"blue","h":"0","u":"0","r":"0","e":"1","c":"0"}
                ]},

            {"cname":"col2","w":"40%","win":
                [
                    {"id":"search","t":"搜索","s":"yellow","h":"0","u":"0","r":"0","e":"0","c":"0"},
                    {"id":"navigation_blog","t":"博客 Show","s":"blue","h":"0","u":"0","r":"0","e":"1","c":"0"},
                    {"id":"cnsminad","t":"广告","s":"blue","h":"0","u":"0","r":"0","e":"0","c":"0"},
                    {"id":"picture","t":"读图时代","s":"blue","h":"0","u":"0","r":"0","e":"1","c":"0"},
                    {"id":"navigation_tool","t":"实用工具","s":"blue","h":"0","u":"0","r":"0","e":"1","c":"0"},
                    {"id":"pad","t":"即时贴","s":"blue","h":"0","u":"0","r":"0","e":"1","c":"0"},
                    {"id":"countdown","t":"倒计时","s":"blue","h":"0","u":"0","r":"0","e":"1","c":"0"}
                ]},

            {"cname":"col3","w":"30%","win":
                [
                    {"id":"navigation_class","t":"分类站点","s":"yellow","h":"0","u":"0","r":"0","e":"0","c":"0"}
                ]}
        ]
};

JS里面对应的 json_3721 只取了一点点
var tmp_obj=null;

for(var i=0;i<json_3721.columns[oldColNum].win.length;i++)
{
if(json_3721.columns[oldColNum].win[i].id==curwinId)
{
tmp_obj=json_3721.columns[oldColNum].win[i];
json_3721.columns[oldColNum].win.splice(i,1);
break;
}
}

if(curNextWinId=="NULL")
{
json_3721.columns[curColNum].win[json_3721.columns[curColNum].win.length]=tmp_obj;
}
else
{
for(var j=0;j<json_3721.columns[curColNum].win.length;j++)
{
if(json_3721.columns[curColNum].win[j].id==curNextWinId)
{
var last=json_3721.columns[curColNum].win.length-1;
while(j<=last)
{
json_3721.columns[curColNum].win[last+1]=json_3721.columns[curColNum].win[last];last--;
}

json_3721.columns[curColNum].win[j]=tmp_obj;break;
}
}
}

var postdata="f=3721&v="+ExpJSON("json_3721");
startRequest('POST','http://www.',postdata);Drag.obj=null
;}

调用了 ExpJSON
function ExpJSON(objname)
{
var jsonstr="";
var arrflag=0;
var arrcount=0;
var tmpobj=eval(objname);
if(isString(tmpobj))
{
jsonstr+=tmpobj;
}
else
{
if(isArray(tmpobj))
{
jsonstr+=getArrObjstr(tmpobj);
}
else
{
jsonstr+=getObjstr(tmpobj);
jsonstr=jsonstr.substr(0,jsonstr.length-1);
}
}

return jsonstr;
}

眼睛有点花了 剩下的你自己去查查看吧 原理在第一段代码有关有点眉目了
需要注意点的是 他是用 php做的.!
2007-12-30 14:44
Kettyjin1983
Rank: 1
等 级:新手上路
帖 子:303
专家分:0
注 册:2007-8-17
收藏
得分:0 
发现自己不是一般的落伍,学习学习再学习,学无止境!
2007-12-31 08:54
快速回复:这样的功能asp是否能实现?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017657 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved