我无法得到答案 [英] i cant get an answer

查看:66
本文介绍了我无法得到答案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到过最奇怪的事情。我希望有人在这里可以帮助

我明白了什么。


i有一个php图像 http://sigs.hopto.org/sigs/mysig/sig51.php

看起来像这样


< ;?

$ colort =" 000000000" ;;

$ sizet =" 20";

$ fontt =" arial.ttf";

$ rightt =" 200";

$ downt =" 50";

$ rotatet =" 0";

$ addliner =''1随机1

2随机2

3随机3

4随机4'';

$ colorr =" 000000000" ;;

$ sizer =" 20";

$ fontr =" BNKGOTHL.TTF";

$ rightr =" 20";

$ downr =" 50";

$ rotater =" 0";

$ back1 =" frame_orange.png";

包括(../ thepic.php);

?& gt;


和pic.php是


< ;?

标题(内容类型:image / png");

$ time = strftime("%I:%M",time());


$ liner = split (" \ n",$ addliner);

$ p = rand(0,(count($ liner)-1));

$ addliner = $班轮[$ p];


$ image = imagecreatefrompng(''backs /''.$ back1);


$ colorrr = substr ($ colorr,0,3);

$ colorrg = substr($ colorr,3,3);

$ colorrb = substr($ colorr,-3,3 );

$ colorr = ImageColorAllocate($ image,$ colorrr,$ colorrg,$ color rb);


$ colortr = substr($ colort,0 ,3);

$ colortg = substr($ colort,3,3);

$ colortb = substr($ colort,-3,3);

$ colort = ImageColorAllocate($ image,$ colortr,$ colortg,$ color tb);


ImageTTFText($ image,$ sizer,$ rotater,$ rightr, $ downr,$ colorr,

''fonts /''.$ fontr,$ addliner);

ImageTTFText($ image,$ sizet,$ r otatet,$ rightt,$ downt,

$ colort,''fonts /''.$ fontt,$ time);

Imagepng($ image);

ImageDestroy($ image);

?>


有人请告诉我为什么这张图片可以在ie上工作<每次你查看它时,
完美呈现随机线


但是在Opera或Mozilla中时间更新很好(所以我们知道它是

令人耳目一新)但是随机线并没有太大变化,如果有的话......)


转到上面的链接......它没有意义....

I have come across the strangest thing..I hope someone in here can help
me understand whats up.

i have a php image http://sigs.hopto.org/sigs/mysig/sig51.php
which looks like this

<?
$colort="000000000";
$sizet="20";
$fontt="arial.ttf";
$rightt="200";
$downt="50";
$rotatet="0";
$addliner=''1 random 1
2 random 2
3 random 3
4 random 4'';
$colorr="000000000";
$sizer="20";
$fontr="BNKGOTHL.TTF";
$rightr="20";
$downr="50";
$rotater="0";
$back1="frame_orange.png";
include("../thepic.php");
?>

and the pic.php is

<?
Header( "Content-type: image/png");
$time = strftime("%I:%M", time());

$liner = split("\n", $addliner );
$p = rand(0,(count($liner)-1));
$addliner = $liner[$p];

$image = imagecreatefrompng(''backs/''.$back1);

$colorrr = substr($colorr,0,3);
$colorrg = substr($colorr,3,3);
$colorrb = substr($colorr,-3,3);
$colorr = ImageColorAllocate($image,$colorrr,$colorrg,$color rb);

$colortr = substr($colort,0,3);
$colortg = substr($colort,3,3);
$colortb = substr($colort,-3,3);
$colort = ImageColorAllocate($image,$colortr,$colortg,$color tb);

ImageTTFText ($image,$sizer, $rotater, $rightr, $downr,$colorr,
''fonts/''.$fontr,$addliner);
ImageTTFText ($image,$sizet, $rotatet, $rightt, $downt,
$colort,''fonts/''.$fontt,$time);
Imagepng($image);
ImageDestroy($image);
?>

someone please tell me why this image can be viewed fine on ie and work
perfect showing a random line each time you view it

but in Opera or Mozilla the time updates fine (so we know it''s
refreshing) but the random line doesnt change much, if at all...)

go to the link above ...it doesnt make sense....

推荐答案

colort =" 000000000" ;;
colort="000000000";


sizet =" 20" ;;
sizet="20";


fontt =" arial.ttf";
fontt="arial.ttf";


这篇关于我无法得到答案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆