#include"stdio.h"
main()
{
FILE *a;
int x1,x2,N1=99,N2=60;
char FileName[100];
for(x1=10;x1<N1;x1++)
{
sprintf(FileName,"c:\0%d.htm",x1);
a=fopen(FileName,"w");
if(a==NULL)
{
printf("file be opened fail!");
}
else
{
fputs("<script type ="text/javascript">a=1;function fzoom(obj){if(a==1){obj.width=900;obj.height=1200;a=0;}else{obj.width=214;obj.height=321;a=1;}}</script>",a);
fputs("<head><title>love beauty girls</title></head><body bgcolor=green>
",a);
for(x2=1;x2<N2;x2++)
{
fputs("<img onclick = 'fzoom(this)' width=214 height=321 src=http://724.169bb.com/169mm/201007/",a);
fputs("0",a);
fprintf(a,"%d",x1);
fputs("/",a);
fprintf(a,"%d",x2);
fputs(".jpg>",a);
fputs("
",a);
}
fputs("<a href=0",a);
fprintf(a,"%d",x1-1);
fputs(".htm><font color=#032123 size=5>pre</font></a> ",a);
fputs("<a href=0",a);
fprintf(a,"%d",x1+1);
fputs(".htm><font color=#123210 size=5>next</font></a>",a);
fclose(a);
}
}
printf("data have sended!press any key to continue...");
getch();
}
- 曾用来做一个浏览美女图片的网站
- 男生都懂的
- 哈哈,年轻总有些荷尔蒙的冲动,hold住就好