Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Help 

[HTML] Make one image fly all over the place

I am trying to make a sort of troll website and I need one image to fly all over the place. Could anyone help me out?

Thank you.
Don't know anything about HTML, but, can't you just render and image at an x and y, and after every few milliseconds add 1 to the x or y?

Don't know anything about HTML, but..
Code
<!DOCTYPE html>
<html>
<head>
  <style>
div {
  position:absolute;
  background-color:#abc;
  left:50px;
  width:90px;
  height:90px;
  margin:5px;
}
</style>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
  <button id="left">&laquo;</button> <button id="right">&raquo;</button>
<div class="block"></div>

<script>
$("#right").click(function(){
  $(".block").animate({"left": "+=50px"}, "slow");
});

$("#left").click(function(){
  $(".block").animate({"left": "-=50px"}, "slow");
});

</script>

</body>
</html>
Once again, don't know anything about HTML
You'd use a bit of javascript to do that. HTML on its own isnt designed for jazz. Dont use the piece of jquery above. Go do a some basic reading on javascript and you'll be throwing dicks around your web page in no time.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Help] by grailAug 5, 2018 01:06 PM 5 266 Aug 5, 2018 01:06 PM
Last Post: Nachfolger
by HuskarAug 5, 2018 12:46 PM 2 237 Aug 5, 2018 12:46 PM
Last Post: petercraig
by Germany69420Mar 25, 2016 09:16 AM 5 77 Mar 25, 2016 09:16 AM
Last Post: Grammar Rays