Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-06-2012, 06:34 PM   PM User | #1
Calek
New to the CF scene

 
Join Date: Mar 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Calek is an unknown quantity at this point
File Pointing Issue

Hello Everyone...
I'm VERY new to JS and trying to learn using a program that creates menus with Flash and JS.
With the below code, my flash menu works when the files are in the same directory as the code, however, I cannot figure out how to make it work when I have the XML,Flash,JS files located in another directory.

Could someone give me idea what I must first look at. I believe I have tried the obvious areas in the code, but they have not worked.

Thanks !





<script type="text/javascript" src="stfmenu.js"></script>


<p><a href="http://www.menu-flash.com" style="display:none;visibility:hidden;">
Flash Menu</a></p>
<script type="text/javascript">
<!--
st_siteroot=""
st_swfpath="menu.swf";
o={}
o.position="static"; o.clear ="both";
o.width ="1"; o.height = "1"; o.left = "1"; o.top = "1";
o.id = "Adin";
if(!window.location.href.indexOf("file:") && st_swfpath.charAt(0)=="/")
o.src = st_siteroot+st_swfpath;
else
o.src = st_swfpath;
o.vars="flashid=Adin&menuId=0&dirPath=&siteRoot=";
document.write(SFMGetFlashHTML(o));
//-->
</script>
Calek is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 07:04 AM.


Advertisement
Log in to turn off these ads.