Making Online Game Web Site

Nov 1, 2009

I want to make a online game web site . i want to klnow , what do i need for now ? should i install any script?

View 3 Replies


ADVERTISEMENT

Making Dice Game 2 Player ?

Nov 16, 2009

I'm trying to make a dice game, as well as making it two player. I need to be able to have a scoreboard displayed (eg. player 1 has won 7 times and player 2 has won 4) and I need to be able to prompt the user on if they want to play the game again.

So far I have the following:

I basically just tried duplicating the original function that adds up the 'dice'. But it doesn't work, I've tried playing around with if/else statements etc to get it to display messages and so fourth, but I have failed.

View 1 Replies View Related

Making A Game - Image Maps ?

Nov 8, 2011

I m making a game in javascript and i recently found out about image maps and i dont understand how they work very well. Pritty much when you would click a specific spot it would change the picture to a different image map?

View 9 Replies View Related

Making Query String In URL Work (trivia Game)

Jul 23, 2005

I encoded the action = of my form using GET and I can't seem
to get the property/value stuff from it using a JavaScript script I got from
the web.

I want to create a trivia game where the user gets 1 question at a time and
it keeps scoring until the end and gives a summary and I want to do it only
in JavaScript (no ASP, PHP, JSP, etc).

I tried submitting the quiz page to itself using a query string to keep
track of question # but no joy.

I can post code if necessary or is there a trivia game engine made for 1
question at a time instead of all on 1 page?

Anyway, I looked on Google at the query string issue til I'm sick of it. I
found a Beatles trivia game but it was using frames and hidden JavaScript
source files and that's too much work to try and figure out all of that.
Code:

View 2 Replies View Related

Site Working Offline, Not So Much Online?

Nov 2, 2009

i have this site everything works perfect offline(local) but when i put it on my server theres a few things that mess up. What isnt working.. I have a little readmore link beside a main quote on everypage and this uses ceebox to open it. Within this lightbox it shows an html page that i made with just a little write up, at the bottom is a little nav and onclick it should be opening the corresponding hidden div while closing the lightbox. this works offline perfect, i cant seem to figure out why it wont once uploaded. I have gone over all folder names, etc and im positive this isnt the problem. this is the main page html snippet with the read more link

Code:
<div id="header-fade">
<div class="header_paragraphs panel" id="header-1" style="z-index: 0;">
<div class="header_p_1"><p class="header-p">AAAAAAAAAAAAAAAAAAAAAA</p></div>
<div class="header_p_2"><p class="header-p">AAAAAAAAAAAAAAAA</p></div>
<div class="header_p_3"><p class="header-p">AAAAAAAAAAA</p></div>
<div class="header_p_4"><p class="header-p">AAAAAAAAA</p></div>
</div><!-- Header P's -->

[Code]...

again it all works offline but as soon as i uplaod it to my server the nav inside the lightbox doesnt seem to work.

View 1 Replies View Related

JQuery :: .load Doesn't Work When Site Is Published Online?

Jan 8, 2012

I'm having problems getting this bit of code to work. It works when the page is on my local drive, but when I publish it online it doesn't. The code is exactly the same when local or online. The online WIP (that doesn't work) is here:The .load code is meant to load the caption text for the video and also some social media buttons. Like I said, this works just as I want when I open the html page from my local drive.Here is the code

<script src="jquery-1.5.1.min.js" type="text/javascript"> </script>
<script type="text/javascript">
$(document).ready(function(){

[code]....

View 5 Replies View Related

JQuery :: Making Multiple Divs Appear Or Disappear When Diff Sections Of Site Are Scrolled To?

Jul 14, 2011

I am trying to create a fixed crest at the top of my site that changes depending on where the viewer of the site scrolls to.

I found the following script/plugin on StackOverflow that works well for making one element fade in and fade out.

PART ONE:

function isScrolledIntoView(elem) {
var docViewTop = $(window).scrollTop();
var docViewBottom = docViewTop + $(window).height();
var elemTop = $(elem).offset().top;

[Code].....

I then duplicated part two and changed the variables to make a different div appear in this position depending on where the viewer was in the site but it did not work past the first transition. see the following link to get a better idea what I am trying to achieve.

[URL]

Is there any way I can adjust the script to make it work with multiple transitions?

View 2 Replies View Related

MSN Online Status

Feb 2, 2005

I noticed there is an indicator to someone's MSN online status in my hotmail inbox page.

I tried to view the source of the page in order to build my online status script.

All of my attempts were failed.

View 1 Replies View Related

Maths Game

Oct 3, 2003

Have a look at this maths game I made. It tests you on adding, subtracting, multiplying and dividing and has three different levels.

Note-you must save the code below as mathsgamefinal.htm for the reset button to work.


<html>



<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<meta http-equiv="Content-Language" content="en-gb">

<title></title>

</head>



<body bgcolor="#FF0000">



<script type="text/javascript">



function next1(){

var outof=document.getElementById('outof').value;

if(document.getElementById('next').value=="Next" && document.getElementById('type').value=="a"){document.getElementById('next').value='Enter' add(); document.getElementById('answer').value='answer'}
else if(document.getElementById('next').value=="Next" && document.getElementById('type').value=="m"){document.getElementById('next').value='Enter' times(); document.getElementById('answer').value='answer'}
else if(document.getElementById('next').value=="Next" && document.getElementById('type').value=="t"){document.getElementById('next').value='Enter' minus(); document.getElementById('answer').value='answer'}
else if(document.getElementById('next').value=="Next" && document.getElementById('type').value=="d"){document.getElementById('next').value='Enter' divide(); document.getElementById('answer').value='answer'}

else if(document.getElementById('next').value=="Enter" && document.getElementById('answer').value==(cr)){ document.getElementById('question').value='Correct' document.getElementById('next').value='Next' document.getElementById('outof').value=parseInt(document.getElementById('outof').value)+1; document.getElementById('score').value=parseInt(document.getElementById('score').value)+1; pc();}

else{ document.getElementById('question').value='Wrong. Answer= '+cr; document.getElementById('next').value='Next' document.getElementById('outof').value=parseInt(document.getElementById('outof').value)+1; pc();}

document.getElementById('answer').select();
}



function add(){
ea1=(Math.floor(Math.random() * (1 - 10)) + 10);
ea2=(Math.floor(Math.random() * (1 - 10)) + 10);
ma1=(Math.floor(Math.random() * (21 - 49)) + 49);
ma2=(Math.floor(Math.random() * (21 - 49)) + 49);
ha1=(Math.floor(Math.random() * (111 - 299)) + 299);
ha2=(Math.floor(Math.random() * (111 - 299)) + 299);

if(document.getElementById('level').value=="e"){document.getElementById('question').value=ea1+' plus '+ea2; cr=ea1+ea2}
if(document.getElementById('level').value=="m"){document.getElementById('question').value=ma1+' plus '+ma2; cr=ma1+ma2}
if(document.getElementById('level').value=="h"){document.getElementById('question').value=ha1+' plus '+ha2; cr=ha1+ha2}
}
function times(){
em1=(Math.floor(Math.random() * (2 - 10)) + 10);
em2=(Math.floor(Math.random() * (2 - 10)) + 10);
mm1=(Math.floor(Math.random() * (11 - 19)) + 19);
mm2=(Math.floor(Math.random() * (6 - 12)) + 12);
hm1=(Math.floor(Math.random() * (21 - 29)) + 29);
hm2=(Math.floor(Math.random() * (21 - 29)) + 29);

if(document.getElementById('level').value=="e"){document.getElementById('question').value=em1+' times '+em2; cr=em1*em2}
if(document.getElementById('level').value=="m"){document.getElementById('question').value=mm1+' times '+mm2; cr=mm1*mm2}
if(document.getElementById('level').value=="h"){document.getElementById('question').value=hm1+' times '+hm2; cr=hm1*hm2}


}

function minus(){
et1=(Math.floor(Math.random() * (10 - 20)) + 20);
et2=(Math.floor(Math.random() * (1 - 10)) + 10);
mt1=(Math.floor(Math.random() * (50 - 99)) + 99);
mt2=(Math.floor(Math.random() * (20 - 50)) + 50);
ht1=(Math.floor(Math.random() * (350 - 1000)) + 1000);
ht2=(Math.floor(Math.random() * (350 - 1000)) + 1000);

if(document.getElementById('level').value=="e"){document.getElementById('question').value=et1+' minus '+et2; cr=et1-et2}
if(document.getElementById('level').value=="m"){document.getElementById('question').value=mt1+' minus '+mt2; cr=mt1-mt2}
if(document.getElementById('level').value=="h"){document.getElementById('question').value=ht1+' minus '+ht2; cr=ht1-ht2}


}
function divide(){
ed1=(Math.floor(Math.random() * (2 - 10)) + 10);
ed2=(Math.floor(Math.random() * (2 - 10)) + 10);
md1=(Math.floor(Math.random() * (11 - 19)) + 19);
md2=(Math.floor(Math.random() * (11 - 19)) + 19);
hd1=(Math.floor(Math.random() * (21 - 29)) + 29);
hd2=(Math.floor(Math.random() * (21 - 29)) + 29);
ed3=ed1*ed2;
md3=md1*md2;
hd3=hd1*hd2;

if(document.getElementById('level').value=="e"){document.getElementById('question').value=ed3+' divided by '+ed2; cr=ed1}
if(document.getElementById('level').value=="m"){document.getElementById('question').value=md3+' divided by '+md2; cr=md1}
if(document.getElementById('level').value=="h"){document.getElementById('question').value=hd3+' divided by '+hd2; cr=hd1}
}


function answerreset(){
if(document.getElementById('answer').value=="answer"){document.getElementById('answer').value=''}
}

function pc(){
document.getElementById('scorepercent').value=document.getElementById('score').value/document.getElementById('outof').value*100;
document.getElementById('scorepercent').value=Math.round(document.getElementById('scorepercent').val ue);
}
</script>

<table border="0" width="198" height="180" bordercolor="#000000" style="background-color: #FFFF00; border-style: solid">

<tr>

<td height="33" width="99" colspan="2">

<p align="center">

<select size="1" name="type" id='type'>

<option value="a" selected>Add</option>

<option value="t">Take away</option>

<option value="m">Multiply</option>

<option value="d">Divide</option>

</select></p>

</td>

<td height="36" width="99" colspan="2">

<p align="center">

<select size="1" name="level" id=level>

<option value="e" selected>Easy</option>

<option value="m">Medium</option>

<option value="h">Hard</option>

</select></p>

</td>

</tr>

<tr>

<td height="36" width="198" colspan="4">

<p align="left">

<input type="button" name="T1" id='question' value="Click next to begin" style="background-color: #FFFF00; border: 0 solid #FFFF00">

</p>

</td>

</tr>

<tr>

<td height="33" width="66">

<p align="center"><input type="text" name="answer" size="6" id='answer' onclick=answerreset()></td>

<td height="36" width="66" colspan="2">

<p align="center"><button onclick='next1()' id='next'>Next</button></td>

<td height="33" width="66">

<p align="center"><button onclick='window.location="mathsgamefinal.htm"'>Reset</button></td>

</tr>

<tr>

<td height="36" width="66">

<p align="center">Score %:</td>

<td height="33" width="66" colspan="2">

<p align="center">Score Marks:</td>

<td height="33" width="66">

<p align="center">Out of:</td>

</tr>

<tr>

<td height="33" width="66">

<p align="center"><input type="button" name="T1" size="3" id=scorepercent value="0"></td>

<td height="33" width="66" colspan="2">

<p align="center"><input type="button" name="score" size="3" id=score value="0"></td>

<td height="36" width="66">

<p align="center"><input type="button" name="outof" size="3" id=outof value="0"></td>

</tr>
</table>
</body>
</html>



Any feedback would be much apprieciated...

View 6 Replies View Related

Javascript Game

Sep 25, 2006

I have been making a game in javascript. The game works now but I would like to know if the user has completed the game. Hope some one have an idea on how to find out if the user has completed the game. Code:

View 1 Replies View Related

The Caption Game

Feb 14, 2003

I am trying to get a line of text that a user types into a textfield to appear somewhere else on the screen. AT teh moment when the user presses submit it refreshes the page and does write the text line to the screen but it is a brand new page and I lose all my content.

View 11 Replies View Related

Getting An Old BASIC Program To Run Online

Aug 7, 2006

I have the source code to an old BASIC program that a friend of mine
would like to run online. I am a beginner at JS, but I think that it
would be a good choice for the project. My background is in C/C++ and
web development.

Any suggestions that might get me off to a good start here? I can
provide more information if needed, but I am not sure what would be
helpful. The program is 550 lines in what appears to be BASIC and is a
calendar conversion program. You give it a date and it will convert it
into one of many other date reckoning systems (Gregorian, Hebrew,
Egyptian, etc, etc).

View 10 Replies View Related

Language For Online Graphing

Jul 20, 2005

I am considering writing an online graphing utility. I plan it to be
of good quality, such that an undergraduate university student can
print it out and include it with a lab report.
Data points will be entered, having been generated by another program;
the utility will NOT accept functions for plotting--just the data
points.

As far as I know, Javascript does not provide graphing functionality.
Could somebody in this group please let me know what the best language
to use for writing this utility.

View 6 Replies View Related

JQuery :: Using In A Online Shop?

Sep 13, 2010

I have a question and i would like you to help me.I have this online shop [URL].. i am not the developer just the owner.The question is how can i present my product throught that site [URL].. (Skroutz.gr is a search engine about online shops like [URL]..If it was a simple site(html or something else) they ask the XML. The developer tells me that we will need 2 months of work and more money. Is there a simple and faster way that skroutz can track my products?

View 1 Replies View Related

Building An App For Online Communication?

Jul 8, 2009

I am very new to web development. I would like my website to have an application which allows a user to draw images which can be displayed on other users screens in real time.

An example of this is isketch.net Also on this site i would like users to be able to create accounts and join 'rooms' where they can communicate in real time (as opposed a forum message board). I am looking for something similar to isketch.net

Could somebody please tell me the type of development and programming needed. I have been quoted 1000 a month to build these capabilities but have no idea what is involved. (also may require facebook style real-time updating)

View 4 Replies View Related

How To Play Song Online?

Sep 28, 2006

I have been looking for the answer for a long time, but could not reach to any answer. I am a novice web designer, have very little knowledge on web programming. I hope someone here could help me with the following. The problem scenario is this:

I have a webpage where I have listed some classical songs so that page visitors can listen to song online. All files are in Real Audio format either with .rm or .ra extension. These individual audio files are linked with .ram files so that when visitor’s clicks on the song title, this .ram file launches RealPlayer and the clicked song starts playing. Once a song is played it stops. If user wants to hear another song, user needs to click on another song title to play that song. This is annoying for users.

However, I have seen on some websites where user can select the songs by clicking on the “Check Boxesâ€&#65533; next to each song titles and play by clicking on the “Playâ€&#65533; button. Therefore, user can select lists of their favourite songs by clicking on check box and play these together one after another. There are two other buttons also available for users: “Select Allâ€&#65533; songs and “Resetâ€&#65533;.

View 1 Replies View Related

Excellent Online Sources ?

Sep 30, 2010

Does anyone have any excellent online sources for Javascript? I'd prefer to learn online rather than by book.

View 3 Replies View Related

Online Text Formatting?

Mar 22, 2001

I'm currently working on an online content management system which allows users to edit html-pages without seeing the HTML-tags.

Is it possible to use buttons for text formatting? I would like to have buttons for adding a link and adding headers. But without showing the user the html-tags.

View 2 Replies View Related

Play Movie Online

Dec 20, 2006

I have a video file which I wanna show at my site. Please help me out how can I show running video? I dont know if it is a right place.

View 2 Replies View Related

Online Image Editing?

Mar 5, 2009

For sites like Facebook that allow you to crop your picture/rotate etc... Is there a javascript plugin out there that one can plug into ones site to be able to achieve similar?bviously the JS script must say it to a server side script for it to be saved to disk. But how is this achieved. Is this something one can code from scratch? I am really keen using one

View 4 Replies View Related

Card Game Javascript

Jul 20, 2005

Has anyone got a script to run a higher or lower card game on a web page.

View 1 Replies View Related

AJAX :: Create A Tic Tac Toe Game ?

Nov 18, 2009

I am trying to create a tic tac toe game using jQuery. In the game the player starts a game and when someone else does the same they can then play each other.

So far I am stuck for ideas as to how to construct the javascript. This is the javascript i have so far.

Code:

Should i use a plugin? I thought it would be easier..

View 2 Replies View Related

Way To Creat Puzzle Game

Jan 4, 2010

How to empty one of the cells and identify the adjacent cells (the ones with which the empty cell could swap on the first move.) code...

View 4 Replies View Related

Create A Dice Game ?

Apr 10, 2010

I am studying webdesign and we also go through a chapter of javascript-programming. Our first assignment is to create a dice game. I have written a code and in the beginning it worked, except that all the dices showed the same random number. I tried to fix that and now I do not know what I have done! In the game, you shall click on a link and the three dices will show random numbers.

Here is my code:

View 1 Replies View Related

Make A Game In Script?

Apr 26, 2010

I need a racing game in java graphics doesn't matter but speed should be good ?

View 2 Replies View Related

How Computer Know Whose Scored More In A Game?

Jun 25, 2011

I'm wanting to know how does the computer know whose scored more in a game?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved