Jump to content
Killersites Community

Rick

Member
  • Content count

    11
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Rick

  • Rank
    New member
  • Birthday 03/09/1960

Profile Information

  • Gender
    Male
  • Location
    Columbus, Ohio

Contact Methods

  • Website
    http://www.rickshears.com/
  • LinkedIn
    http://www.linkedin.com/in/bluearrowweb
  • Facebook
    https://www.facebook.com/BlueArrowWeb
  • Twitter
    https://twitter.com/Rick_Shears
  1. Traveling Animation

    I am in school and have this assignment to create a fish tank with fish moving across the screen using JS. All the fish are moving left to right except fish #2. I want that to move right to left. I was provided with some code and I had to put it together and add what was missing. I did that and it works fine except I cannot figure out how to make fish #2 move the opposite direction. Any comments on how to change the code for that fish? This is my coding: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Fish Tanks</title> <script type="text/javascript"> <!-- HIDE FROM INCOMPATIBLE BROWSERS var fish1Position = 0; horizontal = new Array(50); var fillPosition = 10; for(var i = 0; i < 50; ++i) { horizontal = fillPosition; fillPosition += 10; } function fish1Swim() { document.getElementById("fish1").style.left = horizontal[fish1Position] + "px"; ++fish1Position; if (fish1Position == 49) fish1Position = 0; } var fish2Position = 0; horizontal = new Array(50); var fillPosition = 10; for(var i = 0; i < 50; ++i) { horizontal = fillPosition; fillPosition += 10; } function fish2Swim() { document.getElementById("fish2").style.left = horizontal[fish2Position] + "px"; ++fish2Position; if (fish2Position == 49) fish2Position = 0; } var fish3Position = 0; horizontal = new Array(50); var fillPosition = 10; for(var i = 0; i < 50; ++i) { horizontal = fillPosition; fillPosition += 10; } function fish3Swim() { document.getElementById("fish3").style.left = horizontal[fish3Position] + "px"; ++fish3Position; if (fish3Position == 49) fish3Position = 0; } var fish4Position = 0; horizontal = new Array(50); var fillPosition = 10; for(var i = 0; i < 50; ++i) { horizontal = fillPosition; fillPosition += 10; } function fish4Swim() { document.getElementById("fish4").style.left = horizontal[fish4Position] + "px"; ++fish4Position; if (fish4Position == 49) fish4Position = 0; } var fish5Position = 0; horizontal = new Array(50); var fillPosition = 10; for(var i = 0; i < 50; ++i) { horizontal = fillPosition; fillPosition += 10; } function fish5Swim() { document.getElementById("fish5").style.left = horizontal[fish5Position] + "px"; ++fish5Position; if (fish5Position == 49) fish5Position = 0; } function startSwimming() { setInterval("fish1Swim()",100); setInterval("fish2Swim()",200); setInterval("fish3Swim()",130); setInterval("fish4Swim()",170); setInterval("fish5Swim()",80); } // STOP HIDING FROM INCOMPATIBLE BROWSERS --> </script> </head> <body onload="startSwimming();"> <p><span id="fish1" style= "position:absolute; left:10px; top:10px"><img src="fish1.gif" alt="Image of a fish" /></span></p> <p><span id="fish2" style= "position:absolute; left:10px; top:100px"><img src="fish2.gif" alt="Image of a fish" /></span></p> <p><span id="fish3" style= "position:absolute; left:10px; top:210px"><img src="fish3.gif" alt="Image of a fish" /></span></p> <p><span id="fish4" style= "position:absolute; left:10px; top:300px"><img src="fish4.gif" alt="Image of a fish" /></span></p> <p><span id="fish5" style= "position:absolute; left:10px; top:390px"><img src="fish5.gif" alt="Image of a fish" /></span></p> </body> </html>
  2. Ready To Learn

    I agree. I was viewing the public videos and found them to be very informative. I plan to join this week so I can continue. This way I can learn at a faster pace than what I am getting from school.
  3. HTML or CSS

    Thank you everyone for the advice and links. Yesterday I was provided a link, www.chami.com, for an HTML kit that will also help me learn the codes.
  4. HTML or CSS

    Great information. Thank you very much
  5. HTML or CSS

    I have a few semesters in school before I even get into HTML and CSS so i am reading books on my own. But which should I put more emphasis on first? I would think to understand CSS I would first need to know HTML. Am I correct? My understanding of HTML is not bad, so I may be able to get by with learning both at the same time.
  6. e-cards

    Thank you. I just sent them an email.
  7. I recently started web graphic design at DeVry University. I like it, but want to get into the core of the program. Not so much into the English and other classes. I have been told the same thing about needing the degree to get in the door with a good company.
  8. Advice for a beginner

    Some really great advice. I was really not liking the layout either and wanted some opinions from those who know more than me. I am still learning HTML and CSS, so mostly I do a lot of copy and pasting until I can really lay it out. I want to get rid of the tile background, the banner at the top of the pages and other elements. I have some ideas and want to do it right.I use Homestead and they do provide stats. I also inserted the code for Google Analytic, but I have to spend time to figure out how to read it correctly. The connect between Máiréad and Tinkerbell is that she played the violin in the first two movies.She would have also done the third one, but her schedule prohibited her from having time to do it. She is aware of this site, as I have spoken to her about it.
  9. Advice for a beginner

    Great advice. This is what I am looking for. This is my first site and as I progress through school I will learn more, but I know that the looks of a site are important. I have had the same thoughts about the appearance and I am going to work on it.
  10. I would like some advice from others. I am a student and still learning the ins and outs of web development. The first site I created is an entertainment site and I have a question. Most of my viewers do search through and some spend a good amount of time on the site. But I also have many who come on and leave on the index page. Is there something I am doing wrong that it making them leave without going onto other pages? I checked the site with other browsers and it loads the same and it loads at a good speed, so I am puzzled as to why some stay and some leave. I promote the site on forums and certain face book groups that are related to her music, so it is not as if I am trying to reach viewers with a different interests. Any help will be appreciated. www.maireadnesbittpixieland.com
  11. e-cards

    I am looking for a program where I can offer visitors on one of my sites the ability to send an e-card. I will have about ten photos along with about ten songs and they can select a photo and song, include a message and send it to someone. All I am finding are sites that let their viewers send e-cards from their site. That is not what I want. I am wanting something like this http://www.maireadnesbitt.com/ecards/index.html Does anyone know where I can find a program to let me do this on my site? Thank you
×