Neocities.org

Dannarchy

dannarchy.com

6,718,786 views
1,277 followers
12,041 updates
0 tips
hi!! can i ask for some very newbie guidance on how i would implement loading in your traffic counter/last updated JS using a JS file rather than HTML? when i use it as a file, i get no result even with other javascript files being loaded in right. do you have any tips?? thank you again for all your contributions to the community <3 <3
dann 1 week ago

I experimented with it, and had some odd results. I moved the code into a file called hitcounter.js, and immediately, the .html file reported that the script was blocked by the browser. I tried to look at the file I uploaded, and it just hung on Loading... I renamed it to hitcounter2.js, and then it was fine. Referencing this new filename also worked.

1 like
dann 1 week ago

I tried naming it something else locally and reuploading, but now that filename was locked somehow. I ended up just choosing a new filename via the New File button on the uploader, and then copy & pasting the code into it. That seemed to do that trick. Not sure what's up, since I've uploaded .js files before, and this would be a huge pain if I can to implement the manual workaround.

1 like
dann 1 week ago

* if I have to

1 like
electric-dot-gay 1 week ago

ok, thanks so much. i'll give a shot at uploading it via pasting the code into neocities itself. it's an odd problem, it's not necessarily something i NEED to have loaded into a file, but it just seemed so weird to me it didn't work when i tried? thanks!!

dann 1 week ago

The console log in the developer portion of the browser can help to a degree

1 like

Website Stats

Last updated 2 days ago
CreatedMar 25, 2019
Site Traffic Stats

Tags

videogames design programming nostalgia personal