Hi Simon,
I received a response from my developer, however sorry it is rather short. It’s just he is busy with so many projects at the moment.
Anyway, he reply was:
“Yes, you can mix PHP, HTML, CSS and JavaScript. You can programmatically output Post ID along with the JavaScript using PHP.”
I hope that helps you.
Regards,
Damian Baker