I have to div id's in the index.html
DIV #1 is ID = VideoCode;
DIV #2 is ID = VIdeoDesc;
inside Playlist.html file I have this script:
function SelectVideo(num) {
var VideoCode = window.top.document.getElementById('VideoCode');
var VideoDesc = window.top.document.getElementById('VideoDesc');
switch(num) {
case "00":
VideoCode.innerHTML = '<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/U6J0ftKx3dw&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/U6J0ftKx3dw&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>';
VideoDesc = "Bachelors Grove is the most haunted place in Illinois. The oldest graves date back 1800's. Before the team was formed - Eclipses Productions; runned by David W. and his brother Max found an interesting sighting.";
break;
I have an error that says, "VideoCode is null on line 70".
ANyways to fix this? Thanks! I tried looking up some stuff online about this and I thought I was close but I guess not. I know that it's returning null because maybe it can't find it or has nothing or no value to it.
So, how do I fix this immediately. I have visitors on my page and don't want to delay them.
-Paul

New Topic/Question
Reply


MultiQuote




|