make a javascript page so you can drag pictures onto a bg then people can save it onto there computer?
make a javascript page so you can drag pictures onto a bg then people can save it onto there computer?
The background of what?
kinda quit.
like, if i have like a custom sig, theres renders, they can add pictures, then save then add there own text, etc.
so you can drag a pic onto a custom bg.
Is the picture something the user uploads? Or do you have various images/backgrounds which they can choose from?
kinda quit.
they can't upload, theres just one image and you can drag the images on the side onto the sig. pic/w.e
signature_creator.php:
I haven't tested it, and I'm not sure how secure it is.PHP Code:<?php
$images[one] = 'imageOne.gif';
$images[two] = 'imageTwo.gif';
$images[three] = 'imageThree.gif';
if($_SERVER['PATH_INFO']=='/download') {
if(!is_numeric($_POST[position_y]) || !is_numeric($_POST[position_x])) die('ERROR LOL!');
if(!$im = imagecreatefromgif($images[$_POST[image]])) die('ERROR LOL!');
$bg = imagecreatefromgif('signature.gif');
list($imw, $imh) = getimagesize($images[$_POST[image]]);
imagecopymerge($bg, $im, $_POST[position_x], $_POST[position_y], 0, 0, $imw, $imh, 100);
header('Content-Type: image/gif');
header ("Content-Disposition: attachment; filename=sig.gif");
imagegif($bg);
exit;
}
?>
<html>
<head>
<title>Signature Editor</title>
</head>
<body style="text-align: center;">
<form method="POST" action="signature_creator.php/download">
Select your image: <br />
<input name="image" value="one" type="radio" /> <img src="imageOne.gif" /> <br />
<input name="image" value="two" type="radio" /> <img src="imageTwo.gif" /> <br />
<input name="image" value="three" type="radio" /> <img src="imageThree.gif" /> <br />
<hr /><br />
Click to position image & download signature: <br />
<input type="image" name="position" src="signature.gif" >
</form>
</body>
</html>
Last edited by nets; 27-09-2006 at 11:58 PM.
kinda quit.
cheers dude, i'll test it later today.
Make a .swf?
i would have to actionscript, i'm not very good with actionscripting, i need a easyier way.
Want to hide these adverts? Register an account for free!