#include<stdioh>
int main()
{
char name[30];
int i;
float y,x,a;
scanf("%s",&name);
printf("%s,我爱你\n",name);
for (y = 15f; y > -15f; y -= 01f) {
for (x = -15f; x < 15f; x += 005f) {
a = x x + y y - 1;
putchar(a a a - x x y y y <= 00f '' : ' ');
}
putchar('\n');
}
system("pause");
}
给你一个javascript的程序,文件名保存为1html就可以
<html>
<head>
<title>网页开屏 </title>
</head>
<script language="javascript">
var x = 10;
var dx = 5;
var y = windowscreenavailHeight;
var newWin = windowopen("", "myWin", "menubar=0,toolbar=0");
newWindocumentwrite("I   L  o  v  e   Y  o  u!");
newWinresizeTo(x, y);
var time = windowsetInterval("active()", 100);
function active() {
if(newWinclosed){
clearInterval(time);
return;
}
else if(x < screenavailWidth){
x+=dx;
}
else {
clearInterval(time);
}
newWinresizeTo(x,y);
}
</script>
</html>
欢迎分享,转载请注明来源:表白网
评论列表(0条)