SimplePortal
Support => English Support => Topic started by: Squibby on August 03, 2015, 04:28:41 PM
-
I have a html website with a page that had a javascript game in it. The javascript was in a separate .js file.
I am wondering how to get this to work in a portal page.
Any advice will be good.
-
Create an HTML page and put this inside of it.
<script type="text/javascript" src="yourjavascriptfilepath.js"></script>
It should work.
Regards
-
Didnt seem to work but I got around the problem by adding page in a iframe on site.
Now trying to add a midi file to a post.
Added simple embed mod.
Tried <embed> and ahref to link to mid file but no avail.
Tried to paste above into block but no result either
-
.midi is an extremely old file format and used exclusively for electronic music these days, I was using it occasionally at school with old Motorola v360 phones... It's a 1980's format and you'd need to embed a player for those, but I don't know any :/
By the way you can't just <embed> stuff and thinking it will work, you need to add proper logic for it to work, something like the youtube video embedder: it has its own logic behind it (on SMF side), otherwise it wouldn't work.
Regards