Pourquoi ce plugin jquery de watermarking d'image ne fonctionne-t-il pas? J'utilise le code du site officiel du plugin .. from here Quand je vois le code source du site de démonstration, ils ont utilisé js/jquery-watermarker-0.3.js. mais je ne peux pas trouver ce plugin en ligne n'importe où? comment cela fonctionne pour eux dans la démo. S'il vous plaît aider.Pourquoi ce plugin de filigrane ne fonctionne-t-il pas?
<html>
<head>
<script type="text/javascript" src="js/jquery.js">
<script type="text/javascript" src="js/jquery-1.4.2.min.js">
<script type="text/javascript" src="js/jquery-ui-1.8.6.custom.min.js">
<script type="text/javascript" src="js/jquery-watermarker-0.2.js">
<script type="text/javascript">
$().ready(function(){
$('#watermarked').Watermarker({
watermark_img: "a.png",
onChange: showCoords
});
});
function showCoords(c)
{
$('#x').val(c.x);
$('#y').val(c.y);
$('#w').val(c.w);
$('#h').val(c.h);
};
</script>
<style type="text/css">
div.watermark
{
border:1px dashed #000;
}
img.watermark:hover{
cursor:move;
}
</style>
</head>
<body>
<img src="1.jpg" id="watermarked" />
<form method="post" action="phpScriptToMergeBothImage.php">
<input type="text" id="x" name="x" value="" />
<input type="text" id="y" name="y" value="" />
<input type="text" id="w" name="w" value="" />
<input type="text" id="h" name="h" value="" />
<input type="submit" name="save" value="Ok >" />
</form>
</body>
</html>
J'ai fait tout cela et j'ai corrigé l'erreur signalée par @Dennis. encore il est juste l'affichage du 1.jpg et les 4 zones de texte – Srikanth