I've looked on here and most say that its escape problems so I think I too am at fault of this. I look on google and most have example of replace the text of one div with another etc.. here I want to replace the default content of " mainMidSec" with what I have on the if statement in the .js
I'm trying to test something out for a mobile site...but I'm getting syntax errors. I'm almost positive it has to do with quotes etc...I've tried outer double inner single quotes and the other way around and its not taking it.
Here is the code:
<script type="text/javascript">
var screenW = document.getElementById('mainMidSec');
if ((screen.width<=800) && (screen.height<=800))
{
screenW.innerHTML = '<video width="500" height="400" controls poster="imgs/vidPosterImgSMALLER.jpg">
<source src="videos/mp4-video-versions/2010reel_MP4.mp4">
<p> Your current web browser is out of date . Please update it wont you...pretty please?</p>
</video>'
}
</script>
Any ideas / suggestions / knowledge bombs you guys drop on me I'll gladly and humbly accept!