TinyPortal

Development => Block Codes => Topic started by: sledskiing on December 10, 2009, 11:12:50 PM

Title: What's wrong with my script block?
Post by: sledskiing on December 10, 2009, 11:12:50 PM
Hello, wondering if somebody could help me. I am trying to embedd the same map from www.powderbuzz.com.  He is grabbing the info from http://avalanche.state.co.us/pub_bc.php .  I've gotten the OK but I can't get it to work.  any advice


<script language="JavaScript" type="text/javascript"><!--
            if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
               alert("This page requires AC_RunActiveContent.js.");
            } else {
               var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
               if(hasRightVersion) {
                 // if we've detected an acceptable version, embed the flash
                 AC_FL_RunContent(
                   'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0',
                   'width', '510',
                   'height', '650',
                   'src', 'http://avalanche.state.co.us/warnings_map.swf',
                   'quality', 'high',
                   'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                   'align', 'middle',
                   'play', 'true',
                   'loop', 'true',
                   'scale', 'showall',
                   'wmode', 'opaque',
                   'devicefont', 'false',
                   'id', 'warnings_map',
                   'bgcolor', '#e4e4e4',
                   'name', 'warnings_map',
                   'menu', 'true',
                   'allowScriptAccess','sameDomain',
                   'allowFullScreen','false',
                   'movie', 'warnings_map',
                   'salign', ''
                 ); //end AC code
               } else {
                 // flash is too old or we can't detect the plugin
                 var alternateContent = 'The Forecast Map flash application requires the Adobe Flash Player.'
                 + ' Get Flash (http://www.macromedia.com/go/getflash/)';
                 // insert non-flash content
                 document.write(alternateContent);
               }
            }
            // --></script>
Title: Re: What's wrong with my script block?
Post by: sledskiing on December 11, 2009, 12:13:50 AM
got it

embed src not src
Title: Re: What's wrong with my script block?
Post by: Lesmond on December 11, 2009, 01:28:56 AM
Nice sledskiing glad you got it sorted :up: