4images Forum & Community

4images Modifications / Modifikationen => Templates & Styles (Requests & Discussions) => Topic started by: Madox on December 10, 2002, 04:03:46 AM

Title: Stamp Images
Post by: Madox on December 10, 2002, 04:03:46 AM
Anyone got different stamp images I can use for the e-cards feature?
Title: create it yourself
Post by: AndreasP on December 12, 2002, 06:53:07 PM
Hi Madox,
Just create it yourself, using parts of your websitedesign / logo / etc.
That's what I've done  :wink:
regards,
AndreasP
Title: Stamp Images
Post by: Madox on December 14, 2002, 01:52:22 AM
Already have :)

Was going to get a whole set of stamps and have rotating/random stamp images for the e-cards.

Right now I'm using a christmas theme one because Xmas is coming up.

Thanks!
Title: Re: Stamp Images
Post by: that Dude on March 18, 2005, 06:20:03 AM
How do you set it up so you get rotating/random stamp?
Title: Re: Stamp Images
Post by: Melissa67 on November 27, 2007, 04:29:09 PM
Yes, how can I do this on my gallery too with rotating stamp images??
Title: Re: Stamp Images
Post by: KurtW on November 27, 2007, 09:19:17 PM
Hi,

rotating stamps  8O
The gallery have a lot of rotatings, but rotating stamps...
Googlesearch : rotating images


Kurt
Title: Re: Stamp Images
Post by: manurom on November 28, 2007, 10:18:43 PM
Hello;
so you need to have a random stamp when sending an e-card?

Let's say you've got a few tamps called stamp_01.gif to stamp_05.gif, in your folder templates/your_template/images. For instance, these ones:

(http://xs121.xs.to/xs121/07483/stamp_01.gif) (http://xs121.xs.to/xs121/07483/stamp_02.gif) (http://xs121.xs.to/xs121/07483/stamp_03.gif) (http://xs121.xs.to/xs121/07483/stamp_04.gif) (http://xs121.xs.to/xs121/07483/stamp_05.gif)

So let us put that code in the file templates/your_template/header.html, before the closing tag </head>:

Code: [Select]
<script language="JavaScript" type="text/javascript">

var theImages = new Array()

theImages[0] = 'templates/your_template/images/stamp_01.gif'

theImages[1] = 'templates/your_template/images/stamp_02.gif'

theImages[2] = 'templates/your_template/images/stamp_03.gif'

theImages[3] = 'templates/your_template/images/stamp_04.gif'

theImages[4] = 'templates/your_template/images/stamp_05.gif'

var j = 0

var p = theImages.length;

var preBuffer = new Array()

for (i = 0; i > p; i++){

   preBuffer[i] = new Image()

   preBuffer[i].src = theImages[i]

}

var whichImage = Math.round(Math.random()*(p-1));

function showImage(){

document.write('<img src="'+theImages[whichImage]+'" alt="stamp">');

}

</script>


Now, edit your file templates/your_template/postcard_send.html and change:
Code: [Select]
<img src="{template_url}/images/stamp.gif" border="0" />
to:
Code: [Select]
<script language="JavaScript" type="text/javascript">showImage()</script>
Please change in any code "your_template" for your template name.

Note I've not yet tested it, and don't really know how it works. Maybe same changes have to be done in templates/your_template/postcard_preview.html.

Please find in attachment the five stamps.

Hope it could help a little.