Anirudh
Anirudh

Reputation: 874

using JavaScript from another page

I found the following Javascript effect to be interesting and wanted to use it on my webpage as background.

http://www.chiptune.com/starfield/starfield.html

I saved the html page on to my computer and tried to run it locally, but all it render is a blank black page.

The page doesn't seem to use any external files other than the adsense .js'es. Then why is running on my browse directly from the their website but not locally from my computer.

Note - I ran it as file:///home/anirudh/fest/stars/Starfield.html and not from local server. Is that why it is not running?

Upvotes: 0

Views: 104

Answers (1)

Andrew Hall
Andrew Hall

Reputation: 3073

Because the 2 adsense js files are missing when you run locally, the rest of the javascript does not execute.

Removing references to the 2 js files fixes the issue as tested just now by me :)

Upvotes: 4

Related Questions