Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
Lottery Generator; Almost done
Topic Started: Apr 5 2018, 01:01 AM (287 Views)
CasperTheGreat
Member
[ * ]
So I am looking for some one to help me with this code. What I need done is a way to submit the lottery numbers in a PM to my profile for my board http://s13.zetaboards.com/WKOME/index/
If the lotto numbers can not be submitted into a pm on my boards then help me send it to my email

The code so far is

Code:
 
<script type="text/javascript" language="javascript">
var lotto = {
max : 40,
num : 5,
stars: 0
}


function lottery() {
printNumbers(getNumbers((lotto.num+lotto.stars),lotto.max),"lotto");
}


function printNumbers(numbers,type){
for(var x in numbers){
document.getElementById(type+x).innerHTML = numbers[x];
}
}

function getNumbers(totalBalls,balls) {
var numbers = [];
for (var i = balls; i > 0; i--){
numbers.push(i);
}
numbers.sort(
function(){
return (Math.round(Math.random())-0.5);
}
);
return numbers.slice(0,totalBalls);
}
</script>








<h4>White Knights of Middle Earth Lotto</h4>

<table id="table1">
<tr>
<td colspan=7><h3>LOTRO Points Lottery (5,000)<h3></td>
<tr>
<th width="10%" id="lotto0">&nbsp</th>
<th width="10%"id="lotto1">&nbsp</th>
<th width="10%"id="lotto2">&nbsp</th>
<th width="10%"id="lotto3">&nbsp</th>
<th width="10%"id="lotto4">&nbsp</th>
</tr>
<table>
<p />
<input type="button" value=" Generate " id="reload" onclick="lottery()">
</form>
<p />
<form?>
Enter Your Lotto Numbers Here:<br>
<input type="text" name="Lotto Numbers" value=""><br>
<input type="submit" value="Submit">
</form>






Here is what the code looks like http://s13.zetaboards.com/WKOME/pages/lottery/
Edited by CasperTheGreat, Apr 5 2018, 02:20 AM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Enjoy forums? Start your own community for free.
« Previous Topic · ZetaBoards - Theme & Code Support · Next Topic »
Add Reply