• Resolved abstract808

    (@abstract808)


    Hi Everyone,
    I am trying to add 5 AMMAP (Flash Based) maps onto one Wordress page. Each map calls the following:

    <script type="text/javascript" src="[full URL]/ammap/MAP1/ammap/swfobject.js"></script>
    	<div id="flashcontent">
    		<strong>You need to upgrade your Flash Player</strong>
    	</div>
    	<script type="text/javascript">
    		var so = new SWFObject("[full URL]/ammap/MAP1/ammap/ammap.swf", "ammap", "600", "400", "8", "#444444");
    		so.addVariable("path", "[full URL]/ammap/MAP1/ammap/");
    		so.addVariable("settings_file", escape("[full URL]/ammap/MAP1/ammap/ammap_settings.xml"));                  // you can set two or more different settings files here (separated by commas)
    		so.addVariable("data_file", escape("[full URL]/ammap/MAP1/ammap/ammap_data.xml"));
    //  	so.addVariable("map_data", "<map ...>...</map>");                                   // you can pass map data as a string directly from this file
    //  	so.addVariable("map_settings", "<settings>...</settings>");                         // you can pass map settings as a string directly from this file
    //    so.addVariable("additional_map_settings", "<settings>...</settings>");              // you can append some map settings to the loaded ones
    //    so.addVariable("loading_settings", "LOADING SETTINGS");                             // you can set custom "loading settings" text here
    //    so.addVariable("loading_data", "LOADING DATA");                                     // you can set custom "loading data" text here
    //    so.addVariable("preloader_color", "#999999");	                                      // you can set preloader bar and text color here
    		so.write("flashcontent");
    	</script>

    If I enter one of the codes onto the page, it works fine; when I add 5 of them on one page, only the last one shows and all of the others shows the “You need to upgrade your Flash Player”. I have even tried to add them into the Raw HTML Snippet plugin and I still cannot get it to work.

    How can I get multiple Javascripts to work on one page?

Viewing 1 replies (of 1 total)
  • Thread Starter abstract808

    (@abstract808)

    fixed.

    I overlooked the fact that everyone of them had the “flashcontent”, so I had to make all of them unique (“flashcontent1”, “flashcontent2”, etc.)

Viewing 1 replies (of 1 total)

The topic ‘Multiple Javascripts on One Page?’ is closed to new replies.