Hi, so I've been trying to get music to play in the background of my new project on Twine 2. I'm using Harlowe.
I went into the "Edit story Javascript" and put in this code:
<li><audio controls style="width:130px;height:60px;">
<source src="My Mp3 file" type="audio/mpeg">
</audio></li>
When I tried to upload the program it was in as a test, I received the error message
" There is a problem with this story's script (#1):
expected expression, got '<': "
I then checked to see if maybe I should put it into the "stylesheet" but that didn't work either, though I got no error message. What am I doing wrong?
Comments
The Story Javaascript area is for Javascript code and the Story Stylesheet area is for CSS, as explained in the Adding Custom Javascript and CSS section of the Twine 2 Guide