|
3#
楼主 |
发表于 2005-6-17 17:14:22
|
只看该作者
谢谢版主啊!!刚刚学习了你的那个脚本,收获不小,谢谢啊!
运用到我的脚本时,我碰到几个问题,能再帮帮我吗?
-----------------------------------------------------------------------------------
web_reg_save_param( "WCSParam_Diff1", "LB=pictureID=", "RB=&", "Ord=4", "Search=Body", "RelFrameId=1", LAST );
web_reg_save_param( "WCSParam_Diff2", "LB=pictureID=", "RB=&", "Ord=8", "Search=Body", "RelFrameId=1", LAST );
web_reg_save_param( "WCSParam_Diff3", "LB=pictureID=", "RB=&", "Ord=12", "Search=Body", "RelFrameId=1", LAST );
web_url("我的照片",
"URL=http://server:8080/myclub/myphotoservlet",
"TargetFrame=_self",
"Resource=0",
"RecContentType=text/html",
"Referer=http://server:8080/myclub/loginservlet",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=images/buttonSmall.jpg", ENDITEM,
"Url=images/buttonGray.jpg", ENDITEM,
LAST);
web_submit_data("batchservlet",
"Action=http://server:8080/myclub/batchservlet",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://server:8080/myclub/myphotoservlet",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=operation", "Value=0", ENDITEM,
"Name=returnurl", "Value=/myclub/myphotoservlet?currentPage=1", ENDITEM,
"Name=returnmessage", "Value=你的照片库第1页", ENDITEM,
"Name=ids", "Value={WCSParam_Diff1}", ENDITEM,
"Name=ids", "Value={WCSParam_Diff2}", ENDITEM,
"Name=ids", "Value={WCSParam_Diff3}", ENDITEM,
EXTRARES,
"Url=images/button.jpg", ENDITEM,
LAST);
----------------------------------------------------------------------------------
我录制的代码是这样的,
程序的功能是在一个页面中列表显示了多张图片,我有个问题:
我测试的程序里页面中的图片数量是不定的,如果在关联中使用了ORD=All,用数组取得了当前页面中的图片,如何能使用到接下来的web_submit_data函数中呢?也就是说最后一个函数中"Name=ids", "Value={WCSParam_Diff1}", ENDITEM,这条语句的条数是变化的(上面的代码显示的是三张图片列表显示的结果) (我曾想用循环语句解决,但在web_submit_data函数内无法插入循环,而在函数外使用循环的话不能在函数内罗列那几条语句)。
帮帮我啊,我C语言不行啊!! |
|