Hi guys
I’m having a problem with flash/javascript/iframes. I have a flash banner that is positioned at a fixed position on the bottom of the screen. When I press a button on the banner, the page (which is an iframe) should change.
I got it to work using javascript. But it only works on the Internet. On my local computer it doesn’t work. No error, nothing. Please mind that it is a task for school (for my exams) so it should work only locally.
Check out: http://www.arckodrazen.com/neher and click on “Vanille”, the page should change.
My codes:
Actionscript:
mc_vanille_over.onRelease = function(){
getURL("javascript:test();")
}
javascript:
<script type="text/javascript">
function test(){
frames['mainframe'].location.href = 'vanille.html';
}
</script>
Iframe:
<iframe name="mainframe" src="madagascar.html" scrolling="no"></iframe>
So, how do i solve this Internet vs Local issue?