bookmark - Moving Images In Js

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.
bookmark - Moving Images In Js  
    
free web hosting
 
How do I do it?

Tue Dec 1, 2009    Reply    New Discussion   


What do you mean by "moving images"? Put the *.jpg files in another folder?
Or create animated gif images?

Tue Dec 1, 2009    Reply    New Discussion   

I mean have a image in one spot. Then call a function to make it glide to anothet spot.

Tue Dec 1, 2009    Reply    New Discussion   

You mean something like a carousel? Are you creating an image gallery? Check out these links.

Thu Dec 3, 2009    Reply    New Discussion   


No, I'm making a game.

Thu Dec 3, 2009    Reply    New Discussion   

QUOTE (HannahI)

No, I'm making a game.
Link: view Post: 143091


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   

I'm trying to make a flight simulator, but it isn't working correctly.

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   

Here is the code so far:

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">&nbsp;</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" />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;
<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" /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p>
<p>&nbsp;</p>

</body>
</html>

Tue Dec 22, 2009    Reply    New Discussion   

So, it's not only a flight simulator, there are also missiles involved?

Tue Dec 22, 2009    Reply    New Discussion   

Yordan, the point of the game is that you fly around the level while fight people, it's a little bit off topic, I'm making a remake of my friends game but I a having some trouble with the movement script and all. Now do you understand me?

Wed Dec 23, 2009    Reply    New Discussion   

Now I know everything, thanks. A lot of work to be done, indeed.

Wed Dec 23, 2009    Reply    New Discussion   

Yordan, can you help me or not?

Wed Dec 23, 2009    Reply    New Discussion   

QUOTE (HannahI)

Yordan, can you help me or not?
Link: view Post: 143422


Unfortunately not, this is too complicated for me.
Maybe Mastercomputers could do something?

Wed Dec 23, 2009    Reply    New Discussion   

Okay then yordan. Hey, mastercomputers, can you help me.

Wed Dec 23, 2009    Reply    New Discussion   

Quickly Post to Moving Images In Js  w/o signup Share Info about Moving Images In Js  using Facebook, Twitter etc. email your friend about Moving Images In Js Print
Reply / Comment Ask a Question? Share / Bookmark E-Mail a Friend Print


Url Javascript   Url Javascript (4) (11) Image Preview On Select Option Elements Continuing from Image Popup on Mouseover  Image Preview On Select Option Elements Continuing from Image Popup on Mouseover