Hi all,
I have been really scratching my head over this one for quite some time so any help, suggestions would be more than welcome.
what I am trying to achieve:
The user loads a video inside a div (display:none;) from a flash navigation.
the javascript i am currently using to show/hide the div works fine from html buttons and hyper links in all browsers except firefox!
<script type="text/javascript">
function playVideo(sourceId, targetId) {
if (typeof(sourceId)=='string') {sourceId=document.getElementById(sourceId);}
if (typeof(targetId)=='string') {targetId=document.getElementById(targetId);}
targetId.innerHTML=sourceId.innerHTML;
return false;
}
</script>
The flash navigation also needs to trigger a named anchor and for this i am using getURL:
on (press) {
getURL("javascript:playVideo('selectDemo3','videoPlayback');");
}
on (release) {
getURL("#video");
}
PROBLEM -
firefox and safari will not show the div from the code passed through flash! ie is as yet untested. Chrome seems to work well with the whole thing (including the jump to div using named anchor) and sunrise has varying success (if you click the button 20 times one of them will work!).
Summary -
I want to show hide div from flash and activate a named anchor…how is this done!??
current working example:
http://bestplaces.tv/test/video.html
Thanks for reading, hope to have some answers soon,
Vince:confused: