4images Forum & Community
4images Modifications / Modifikationen => Templates & Styles (Requests & Discussions) => Topic started by: Madox on December 10, 2002, 04:03:46 AM
-
Anyone got different stamp images I can use for the e-cards feature?
-
Hi Madox,
Just create it yourself, using parts of your websitedesign / logo / etc.
That's what I've done :wink:
regards,
AndreasP
-
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!
-
How do you set it up so you get rotating/random stamp?
-
Yes, how can I do this on my gallery too with rotating stamp images??
-
Hi,
rotating stamps 8O
The gallery have a lot of rotatings, but rotating stamps...
Googlesearch : rotating images
Kurt
-
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>:
<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:
<img src="{template_url}/images/stamp.gif" border="0" />
to:
<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.