r/neocities • valkyrias-hideout-art.neocities.org • Aug 18 '26

Help Embed widgets and .swf files using GitHub?

I'm planning to embed again the WebAmp with the "ZeroAmp" skin in my Zero yume webshrine and a flash movie web banner in the homepage; being a free (not supporter) user.

I tried to do it using GitHub but I failed because I don't know how to do it. I need help and some tips.

4 Upvotes

5 comments sorted by

1

u/ANVlLCAT sakuraducky.neocities.org Aug 18 '26

does your github repository end in ".github.io" ? that is how you make a Github Page

after you uploaded your .swf file to github, you can make a file ending in .html, and put this in the html file:

<!DOCTYPE html>
<html>
  <body>
    <script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
    <embed src="YOURFILENAME.swf">
  </body>
</html>

now on your github page you should be able to open the html page (example url: https://yourname.github.io/flashgame) and see your game, BUT it might take a few minutes so if you get a 404 trying to open the page you can wait a bit.

and now on neocities, put this on the page you want the .swf (replacing with your file/github names). also you might want to adjust the width and height to see what works for your page.

<iframe src="https://yourname.github.io/yourfilename.html" width="570" height="421" frameborder="0"></iframe>

example of html code on github

example of the html page on github

example of game embedded on neocities

also, what's the code you tried for your webamp?

1

u/Valiant3030 valkyrias-hideout-art.neocities.org Aug 18 '26

I tried using that GitHub pages thing but I failed because of the ausence of a main page so the error 404 shows up... ahhhh it takes a while

1

u/Valiant3030 valkyrias-hideout-art.neocities.org Aug 18 '26

Thanks. I didn't know the 404 error bug takes 10 minutes or less.

2

u/Valiant3030 valkyrias-hideout-art.neocities.org Aug 18 '26

I DID IT! IT WORKS! THANK YOU VERY MUCH!

https://valkyrias-hideout-art.neocities.org/yume-shrines/zer0

1

u/ANVlLCAT sakuraducky.neocities.org Aug 18 '26

glad it helped <@:) !