|
|
Moving Images In Js | ||
Discussion by HannahI with 19 Replies.
Last Update: December 24, 2009, 2:41 pm (View Latest) | Page 1 of 2 pages. | ||
Tue Dec 1, 2009 Reply New Discussion
Or create animated gif images?
Tue Dec 1, 2009 Reply New Discussion
Tue Dec 1, 2009 Reply New Discussion
Thu Dec 3, 2009 Reply New Discussion
Thu Dec 3, 2009 Reply New Discussion
What sort of game are you making HannahI?
I could show you how to create a sliding blocks/picture game, that you slide blocks till you get all the blocks in the right position to create the finished picture using XHTML and Javascript.
Is that what you're after or are you after something else?
Cheers,
MC
Mon Dec 21, 2009 Reply New Discussion
Mon Dec 21, 2009 Reply New Discussion
QUOTE (HannahI)
I'm trying to make a flight simulator, but it isn't working correctly.Link: view Post: 143392
Wow a flight simulator.
This would be too much effort for me to explain how to go about this. I have seen a flight simulator using google earth, maybe you could track that down and use what they have already worked out, all the co-ordinates, and physics, etc.
Cheers,
MC
Tue Dec 22, 2009 Reply New Discussion
CODE
<html><head>
<title>Flying All Online</title>
<script type="text/javascript">
var i=1
function starttimerL()
{
document.getElementById('ship').style.position="relative";
document.getElementById('ship').style.left=+i;
i++;
timer=setTimeout("starttimerL()",0.01);
}
function starttimerMi()
{
document.getElementById('missle').style.position="relative";
document.getElementById('missle').style.right=+1;
timer=setTimeout("starttimerL()",0.01);
}
function stoptimer()
{
clearTimeout(timer);
}
</script>
<style>
body{
background:#39F;
}
</style>
</head>
<noscript>
Sorry, You need to have Javascript Enabled to play Flying All
</noscript>
<body onLoad="showMon();">
<p><a href="#" onClick="stoptimer();" style="background-color:#366; text-decoration:none; color:#F00">Stop</a>
<a href="#" onClick="starttimerL(); starttimerMi" style="background-color:#366; text-decoration: none; color:#F00">Go Left</a>
</p>
<p><span style="color:#30C; size:10px;">F</span>
<span style="color:#0F0; size:10px;">l</span>
<span style="color:#F00; size:10px;">y</span>
<span style="color:#630; size:10px;">i</span>
<span style="color:#396; size:10px;">n</span>
<span style="color:#FF0; size:100px;">g</span>
<span style="size:100px"> </span>
<span style="color:#F00; size:100px;">A</span>
<span style="color:#096; size:100px;">l</span>
<span style="color:#330; size:100px; padding-right: 100px;">l</span></p>
<p>
<img src="http://localhost/4.png" name="ship" width="58" height="=64" id="ship" />
<span style="position:absolute;"><img src="http://localhost/bonus.png" alt="missle" name="missle" id="missle" onDblClick="stoptimer(); alert('Thing');
"></span>
<div id="missle2" style="position:absolute;"></div><img src="http://localhost/b1.png" alt="Boss" width="252" height="180" id="boss" />
</p>
<p> </p>
</body>
</html>
Tue Dec 22, 2009 Reply New Discussion
Tue Dec 22, 2009 Reply New Discussion
Wed Dec 23, 2009 Reply New Discussion
Wed Dec 23, 2009 Reply New Discussion
Wed Dec 23, 2009 Reply New Discussion
Unfortunately not, this is too complicated for me.
Maybe Mastercomputers could do something?
Wed Dec 23, 2009 Reply New Discussion
Wed Dec 23, 2009 Reply New Discussion
Url Javascript (4)
|
(11) Image Preview On Select Option Elements Continuing from Image Popup on Mouseover
|
Index




