dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: New with Javascipt. Need help with animation.

  1. #1
    Join Date
    Aug 2014
    Posts
    1

    New with Javascipt. Need help with animation.

    I'm having trouble primarily because I'm so new at this. I'm not sure how to get started. I want a dark blue background with twinkling stars (a starry night) and the occasional shooting star would be nice... This will all be animated using javascript.

    Also how to input a javascript code into a html file? I'll have a separate javascript file (I'm working in eclipse if you're familiar), so I'm not sure what the html background code will look like, tying the javascript file in it.

    I found this code: http://www.javascriptfreecode.com/8.htm
    but its terrible... It's not even compatible with firefox and when I tried opening it in safari it was all squished to the top of the page.

    Help out an amateur!!!

  2. #2
    Join Date
    Jul 2012
    Posts
    57
    How about you try learning the language before you attempt your idea.

  3. #3
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,501
    May one day yester-year back in 1990's or something it may have worked...

    document.write has been depreciated and it is frowned upon for using it despite it still working in browsers.

    document.layers is also depreciated in favor of using CSS for positioning of elements

    Try this http://www.script-tutorials.com/nigh...omment-page-1/

    IDK about shooting stars, a bit overrated if you ask me...
    Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
    Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
    I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
    I laughed that hard I burst my colostomy bag... (\\.\ May03)
    Life for some is like a car accident... Mine is like a motorway pile up...

    Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles