How do I enable HTML 5 custom code...

User 508080 Photo


Registered User
6 posts

I would like to add some html 5 content to a website I have already created using visual site designer.

Actually it's a very simple audio player built into html 5. http://www.html5tutorial.info/html5-audio.php

This code works for me without issues outside of VSD, but won't work when used as an object inside of VSD.

Thanks for your help!


<audio id="player">
<source src="Kalimba.ogg" type="audio/ogg" />
<source src="Kalimba.mp3" type"audio/mpeg" />
</audio>

<div>
<button onclick="document.getElementById('player').play()">Play</button>
<button onclick="document.getElementById('player').pause()">Pause</button>
<button onclick="document.getElementById('player').volume += 0.1">Vol+ </button>
<button onclick="document.getElementById('player').volume -= 0.1">Vol- </button>
</div>

User 187934 Photo


Senior Advisor
20,271 posts

Keep the content on a separate html page that you create with the html editor then use an iframe inside VSD to display the contents of that page.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 508080 Photo


Registered User
6 posts

I didn't think of that. Thanks. :)

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.