W
whitgurley
I've searched the web as well as I can for a solution to this problem
but have found nothing and just don't know enough about JavaScript to
figure out what's going. What I'm trying to do is convert this script:
<a href="#"
onclick="MM_goToURL('parent.frames[\'movieA\']','color2.html');return
document.MM_returnValue">TEST</a>
....to something that I can use within a Flash movie, which as far as I
can tell means that it needs to reside in the 'href' (GetURL) attribute
instead of a separate 'onclick' event. I've tried to do this with this
test version:
<a
href="javascript:MM_goToURL('parent.frames[\'movieA\']','color2.html');return
document.MM_returnValue">TEST2</a>
....which seems to be working in Firefox/Mac, but nowhere else (IE and
Safari are the only other browsers I really care about). I'm hoping
that you JS pros will know immediately what the problem is here (other
than the author not knowing what he's doing). Thanks in advance to
anyone who can help.
In case anyone is interested, I'm attempting to setup a Flash-based
portfolio site that displays loaded-on-the-fly content in pop-up
iFrames above the movie (*that* much I've figured out). The script
above references this Macromedia script:
<script type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2)
eval(args+".location='"+args[i+1]+"'");
}
//-->
</script>
The only technical hitch I have now is getting this script to do the
popping.
Thanks!
- whit
but have found nothing and just don't know enough about JavaScript to
figure out what's going. What I'm trying to do is convert this script:
<a href="#"
onclick="MM_goToURL('parent.frames[\'movieA\']','color2.html');return
document.MM_returnValue">TEST</a>
....to something that I can use within a Flash movie, which as far as I
can tell means that it needs to reside in the 'href' (GetURL) attribute
instead of a separate 'onclick' event. I've tried to do this with this
test version:
<a
href="javascript:MM_goToURL('parent.frames[\'movieA\']','color2.html');return
document.MM_returnValue">TEST2</a>
....which seems to be working in Firefox/Mac, but nowhere else (IE and
Safari are the only other browsers I really care about). I'm hoping
that you JS pros will know immediately what the problem is here (other
than the author not knowing what he's doing). Thanks in advance to
anyone who can help.
In case anyone is interested, I'm attempting to setup a Flash-based
portfolio site that displays loaded-on-the-fly content in pop-up
iFrames above the movie (*that* much I've figured out). The script
above references this Macromedia script:
<script type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2)
eval(args+".location='"+args[i+1]+"'");
}
//-->
</script>
The only technical hitch I have now is getting this script to do the
popping.
Thanks!
- whit