Implementation of array.

29 10 2008

We have now decided that we are going to use an array within our organism to only store the last email that has been entered by a user, and this will be the food that annie ‘goes off’ to find and eat. Her happiness will go down because she has to go find the food but also up because she has got to eat so they both cancel each other out as she is surviving and wont get too emotional about it wither way.

What we have written is very simple to store the email:

emails = new Array();

emails[0] = food;

‘food’ is a variable we created very early on in the project and basically it is the value of whatever the user has entered i.e the Email when they use the onRelease function (Clicking the feed me button)

 

<script type=”text/javascript”>
var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(“%3Cscript src=’” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
</script>
<script type=”text/javascript”>
try {
var pageTracker = _gat._getTracker(“UA-11563787-1″);
pageTracker._trackPageview();
} catch(err) {}</script>

Advertisement

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




Follow

Get every new post delivered to your Inbox.