Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 299311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:48:41+00:00 2026-05-12T06:48:41+00:00

I have created a simple flash menu and the SWF file, JS files (swfoject.js

  • 0

I have created a simple flash menu and the SWF file, JS files (swfoject.js and flying.js) & XML files are in a folder called “icpmenu_es” on the server root. If I open the SWF file on my local HDD it works fine but if I alter the paths to the files for use on my website, it won’t work at all. I know it has found the JS files because if I put an incorrect path in it comes up with the message saying that I need to install Flash or allow JS to access the menu. The code is as follows:

<HTML><HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="keywords" content="" /> <meta name="description" content="TEST" /> <meta http-equiv="Content-Language" content="es" /> <base href="http://www.ideal-country-property.com/"></base> <title> TEST | Ideal Country Property S.L.</title>
<script type="text/javascript" src="icpmenu_es/swfobject.js"></script>
<script type="text/javascript" src="icpmenu_es/flying.js"></script></HEAD><BODY> <!-- ICP www.ideal-country-property.com -->
<div id="ICPmessage" style="position:absolute; top:100px; padding-left:0px; z-index:0;">
    You need to upgrade your Flash Player or to allow javascript to enable Website menu. </br>
    <a href="http://www.adobe.com/go/getflashplayer">Get Flash Player</a>            
</div>
<script type="text/javascript">
// <![CDATA[
    var so = new SWFObject("icpmenu_es/menu.swf", "menu", "185", "440", "8", "#000000");
    so.addVariable("page_code", "a_b_c");

    so.addParam("wmode", "transparent");
    so.addParam("scale", "noscale");
    so.addParam("salign", "TL");
    so.write("ICPmessage");
// ]]>
</script></BODY></HTML>      

Any help would be much appreciated as this is driving me crazy and it seems such a simple thing. By the way, if I change the BASE attribute to the icpmenu_es folder then it works as all the src links just have the “filename” and not the path. However, I can’t change the BASE attribute to this folder as I have other scripts running on our Website in different locations and it would then mess these up! Thanks in advance for your help. Chris.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:48:41+00:00Added an answer on May 12, 2026 at 6:48 am

    Once you put this on your web server preceeding the path with / will mean that anything that wishess to access it will go to the root of the domain,

    /yourfolder/javascript.js

    if you simply use

    yourfolder/javascript.js

    and for example, your current path on your site is

    http://www.yoursite.com/members

    then that relative path will be translated into

    http://www.yoursite.com/members/yourfolder/javascript.js

    So using absolute, it will always know to go to the root of your site to file the files!

    UPDATE:


    Use the following markup and test

    <HTML> 
    <HEAD> 
        <title>ICP Spanish Menu</title> 
    <base href="http://www.ideal-country-property.com"></base>  
        <script type="text/javascript" src="/icpmenu_es/swfobject.js"></script> 
        <script type="text/javascript" src="/icpmenu_es/flying.js"></script> 
      </HEAD> 
    <BODY> 
    <!-- ICPmessage www.ideal-country-property.com --> 
        <div id="ICPmessage" style="position:absolute; top:100px; padding-left:0px; z-index:0;"> 
            You need to upgrade your Flash Player or to allow javascript to enable Website menu. </br> 
            <a href="http://www.adobe.com/go/getflashplayer">Get the FREE Flash Player from Adobe</a>            
        </div> 
    <div id="menu"></div>
        <script type="text/javascript"> 
        // <![CDATA[
            var so = new SWFObject ("/icpmenu_es/menu.swf", "menu", "185", "440", "8", "#000000");
            so.addVariable("page_code", "a_b_c");
    
            so.addParam("wmode", "transparent");
            so.addParam("scale", "noscale");
            so.addParam("salign", "TL");
            so.write("ICPmessage");
        // ]]>
        </script> 
    </BODY> 
    </HTML>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple XML file created in R that consists of the following
I have created a simple SWF-loader in ActionScript 3.0. It loads an SWF from
I have created a simple wcf service which used the WCF Service Library template.
I have created a simple grid of divs by left floating them and an
I have created a simple Asp.Net custom control which automatically combines all the correct
I have a simple GtkStatusBar created with glade,and want to add a simple message
I have a requirement to create a simple database in Access to collect some
I have a simple PowerShell script that uses WMI to create a web site
i have very simple problem. I need to create model, that represent element of
I have stfw but I cannot find a simple / standalone way to create

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.