请查看演示站点
http://jsfiddle.net/Alidad/fexGj/
该演示称为“图像标题”,我的下一步是将文本和图像作为一组转换为图像,以便我可以单击鼠标右键进行复制和粘贴。
但是,有 PHP 代码允许我从文本转换为图像,但我很难弄清楚如何将“图像标题”(演示)转换为 HTML!
这是示例 PHP 代码,但我不知道如何组合它!
<?php
// Create a 100*30 image
$im = imagecreate(100, 30);
// White background and blue text
$bg = imagecolorallocate($im, 255, 255, 255);
$textcolor = imagecolorallocate($im, 0, 0, 255);
// Write the string at the top left
imagestring($im, 5, 0, 0, 'Hello world!', $textcolor);
// Output the image
header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
?>
请帮助我如何将其转换为 jQuery 代码中的图像!
是