It is currently Wed Feb 08, 2012 5:41 pm

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: js:when we move items with differ angles how to change image
PostPosted: Sat Feb 02, 2008 10:51 am 
Offline

Joined: Sat Feb 26, 2005 12:36 am
Posts: 305
when we move items with differ angles on screen 30 degrees after 90 after 245 degrees and we need to change images how we achieve this change ? eg a rocket moves and go around screen in random direction ?
using DHTML ,<div> ,...


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 02, 2008 7:38 pm 
Offline

Joined: Sun May 02, 2004 11:34 pm
Posts: 6500
Location: toronto, canada
use dhtml and <div>s...your icon can be in the div on a transparent background and you can use dhtml (js) to move the object around

_________________
Lostboy

Cat, the other other white meat

Please read Posting Etiquette before posting

You can always try Google


Top
 Profile  
 
 Post subject: eg during a rocket flight I want differ images how to interc
PostPosted: Sat Feb 02, 2008 8:29 pm 
Offline

Joined: Sat Feb 26, 2005 12:36 am
Posts: 305
eg during a rocket flight I want differ images how to interchange them ?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 02, 2008 10:37 pm 
Offline

Joined: Sun May 02, 2004 11:34 pm
Posts: 6500
Location: toronto, canada
you can use js to switch the images based on whatever criteria at whatever time during the 'flight' you want

_________________
Lostboy

Cat, the other other white meat

Please read Posting Etiquette before posting

You can always try Google


Top
 Profile  
 
 Post subject: How I make the movement go to randomly direction(s) ?
PostPosted: Mon Feb 04, 2008 8:32 am 
Offline

Joined: Sat Feb 26, 2005 12:36 am
Posts: 305
How I make the movement go to randomly direction(s) ? I must use random() ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 04, 2008 11:01 pm 
Offline

Joined: Sun May 02, 2004 11:34 pm
Posts: 6500
Location: toronto, canada
http://www.w3schools.com/jsref/jsref_random.asp

_________________
Lostboy

Cat, the other other white meat

Please read Posting Etiquette before posting

You can always try Google


Top
 Profile  
 
 Post subject: I know to use random() , but how apply it to random image mo
PostPosted: Tue Feb 05, 2008 11:46 am 
Offline

Joined: Sat Feb 26, 2005 12:36 am
Posts: 305
How I make the movement go to randomly direction(s) ? I know to use random() , but how apply it to random image movement ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 07, 2008 7:00 am 
Offline

Joined: Sun May 02, 2004 11:34 pm
Posts: 6500
Location: toronto, canada
http://www.java2s.com/Code/JavaScript/G ... vement.htm

_________________
Lostboy

Cat, the other other white meat

Please read Posting Etiquette before posting

You can always try Google


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron