Flashmaps   Flashmaps  
The Premier Source For Flash Maps: City Maps, US Maps, World Maps And Much More!
Contact Us   Site Map 
How to embed
FindMe! Dynamic is an interactive Flash map that upon purchase is sent to you as a Flash movie file.

You will also receive an html file from which all you have to do is cut and paste all of the pertinent pieces to embed your map into your website.

Additionally, you'll find a javascript function to perform the 'enlarge map' feature.
How to embed
Sample
<html>
 
<head>
<title>Flashmaps</title>
 
<script>
function maximize(){
    if (isNN){newWindow=window.open('about:blank','',optNN);}
    if (isIE){newWindow=window.open('about:blank','',optIE);}
    with (newWindow.document){
      writeln('<HTML>');
      writeln('<HEAD>');
      writeln('<title>Flashmaps </title>');
      writeln('<style>body{margin:0px;}td{font-family: Arial;font-size:10}</style>');
      writeln('<sc'+'ript>');
      writeln('var isNN,isIE;');
      writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
      writeln(' isNN=(navigator.appName=="Netscape")?1:0;');
      writeln(' isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
      writeln('function reSizeToMap(){');
      writeln(' if (isIE){');
      writeln(' width=' + (newW) + ';');
      writeln(' height=' + (newH) + ';');
      writeln(' window.moveTo(' + posX + ',' + posY + ')');
      writeln(' window.resizeTo(width,height);}');
      writeln(' if (isNN){');
      writeln(' window.innerWidth=' + newW + ';');
      writeln(' window.innerHeight=' + newH + ';');
      writeln(' window.scrollbars=false;}}');
      writeln('</sc'+'ript>');
      writeln('</HEAD>')
      writeln('');
      writeln('<BODY bgcolor=#FFFFFF scroll="no" onload="reSizeToMap();self.focus()">');
      writeln('<TABLE width="100%" border="0">');
      writeln('  <TR><TD valign="middle" align="center">');
      writeln('    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
      writeln('    codebase="http://fpdownload.macromedia.com/pub/shockwave/');
      writeln('    cabs/flash/swflash.cab#version=7,0,0,0" ');
      writeln('    ID="tigris" WIDTH="' + (newW-40) + '" HEIGHT="' + (newH-40)
        + '" ALIGN="center">');
      writeln('    <PARAM NAME=movie VALUE="samples/dynamic/' + sFile + '">');
      writeln('    <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> ');
      writeln('    <EMBED src="samples/dynamic/' + sFile + '" quality=high bgcolor=#FFFFFF ');
      writeln('    swLiveConnect=FALSE WIDTH="' + (newW-40) + '" HEIGHT="' + (newH-40) + '"');
      writeln('    NAME="tigris" ALIGN=""');
      writeln('    TYPE="application/x-shockwave-flash"');
      writeln('    PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
      writeln('    </EMBED>');
      writeln('    </OBJECT>');
      writeln('  </TD></TR>')
      writeln('</TABLE>');
      writeln('</BODY>');
      writeln('</HTML>');
      close();
    }
}
 
if (parseInt(navigator.appVersion.charAt(0))>=4){
    var sFile = "Flashmaps_file.swf";
    var isNN=(navigator.appName=="Netscape")?1:0;
    var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;
}
 
tantoW = (<%=strWidth%>*100)/screen.width;
tantoH = (<%=strHeight%>*100)/screen.height;
 
if (tantoW > tantoH) {
    newW = screen.width;
    newH = (((screen.width*100)/<%=strWidth%>)/100)*<%=strHeight%>;
    posX = 0;
    posY = (screen.height - newH) / 2;
} else {
    if (tantoW < tantoH) {
        newW = (((screen.height*100)/<%=strHeight%>)/100)*<%=strWidth%>;
        newH = screen.height;
        posX = (screen.width - newW) / 2;
        posY = 0;
    } else {
        newW = screen.width;
        newH = screen.height;
        posX = 0;
        posY = 0;
    }
}
 
var optNN='scrollbars=no,menubar=no,width=' + newW + ',height=' + newH
  + 'left=' + posX + ',top=' + posY;
var optIE='scrollbars=no,menubar=0,width=' + newW + ',height=' + newH
  + 'left=' + posX + ',top=' + posY;
</SCRIPT>
 
</head>
 
<body>
 
<object width="400" height="400"
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/
    flash/swflash.cab#version=7,0,0,0">
    <param name="movie" value="Flashmaps_file.swf">
    <param name="quality" value="high">
    <embed src="Flashmaps_file.swf" quality="high"
        pluginspage="http://www.macromedia.com/go/
        getflashplayer"type="application/x-shockwave-flash"
        width="400" height="400">
    </embed>
</object>
 
</body>
</html>
Flashmaps_file.swf: name of your Flashmaps file.
FindMe! Dynamic Home
Showcase
Pricing
FAQ
1-866-392-0071
1-866-392-0071 (toll free)
Contact us Email & Postal Addresses
Contact Us   Site Map   Privacy Statement   Terms of Use   Report Piracy 
© 2008 Flashmaps Geospatial. All rights reserved.