[insert_php] include 'text.php'; include 'ads1.php'; include 'giffile.php'; $image = imagecreatefrompng('template-gif/ask-love-song-01.png'); imagealphablending($image, false); imagesavealpha($image, true); $facebook_white = imagecolorallocate($image, 255,255,255); // Create blue color imagealphablending($image, true); //bring back alpha blending for transperent font imagettftext($image, 20,0,322,292, $facebook_white , $font, $tx1); imagettftext($image, 20,0,80,292, $facebook_white , $font, $tx2); ob_start(); imagegif($image); $frames[]=ob_get_contents(); $framed[]=200; // Delay in the animation. ob_end_clean(); $image = imagecreatefrompng('template-gif/ask-love-song-02.png'); imagealphablending($image, false); imagesavealpha($image, true); $facebook_white = imagecolorallocate($image, 255,255,255); // Create blue color imagealphablending($image, true); //bring back alpha blending for transperent font imagettftext($image, 20,0,322,292, $facebook_white , $font, $tx1); imagettftext($image, 20,0,80,292, $facebook_white , $font, $tx2); ob_start(); imagegif($image); $frames[]=ob_get_contents(); $framed[]=200; // Delay in the animation. ob_end_clean(); $image = imagecreatefrompng('template-gif/ask-love-song-03.png'); imagealphablending($image, false); imagesavealpha($image, true); $facebook_white = imagecolorallocate($image, 255,255,255); // Create blue color imagealphablending($image, true); //bring back alpha blending for transperent font imagettftext($image, 20,0,322,292, $facebook_white , $font, $tx1); imagettftext($image, 20,0,80,292, $facebook_white , $font, $tx2); ob_start(); imagegif($image); $frames[]=ob_get_contents(); $framed[]=200; // Delay in the animation. ob_end_clean(); $gif = new GIFEncoder($frames,$framed,0,2,255,255,255,'bin'); $fp = fopen( "giftmp/$fn.gif", 'w' ); fwrite($fp, $gif->GetAnimation()); fclose($fp); imagedestroy($image); [/insert_php] [insert_php] include '2name.php' ; include 'gifvip.php' ; [/insert_php]