Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



View Poll Results: how was the code
good 0 0%
very good 0 0%
bad 0 0%
very bad 0 0%
Multiple Choice Poll. Voters: 0. You may not vote on this poll

Reply
re-posting with code controlling flash
Old 10-23-2007, 06:54 PM re-posting with code controlling flash
Novice Talker

Posts: 6
Name: almog
Trades: 0
Hi, I am web master I was asked to control a flash
based navigation menu Thur JavaScript for work.
we wanted to control the flash menu Thur JavaScript.
IE: to go to a certain frame when the html page loads.
I got it working using JavaScript but I am havening
problems one in IE7 it does not load on the first time
once I refresh it does, sometimes the links inside the
flash menu don't work, but what is driving me crazy is
in Firefox it loads fine but when I go back and forth it
does not work. Also its not working at all in safari.
can someone please help me. the code is at the bottom
thanks
<SCRIPT language=JavaScript>

var movieName = "vdo_menu5";
function thisMovie(movieName) {
// IE and Netscape refer to the movie object differently.
// This function returns the appropriate syntax depending on the browser.
if (navigator.appName.indexOf ("Microsoft") !=-1) {
return window[movieName]
} else {
return document[movieName]
}
}
function movieIsLoaded (theMovie) {
if (typeof(theMovie) != "undefined") {
return theMovie.PercentLoaded() == 100;
} else {
return false;
}
}
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent(playgtr3);
addLoadEvent(function() {
});

function playgtr3() {
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).TGotoFrame("_level0/buttSet",15)
}
}

</SCRIPT>

<TBODY onload="playgtr3()">
[/code]
almog00 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to re-posting with code controlling flash
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11860 seconds with 13 queries