zoukankan      html  css  js  c++  java
  • Google Maps API 进级:在信息窗口GInfoWindow中嵌入Flash动画

    转自:http://hi.baidu.com/xfm_zhr/blog/item/98bd0a2a9a064e3f5243c12b.html

    在信息窗口GInfoWindow中嵌入Flash动画

    注意:这里的OBJECT标签要放入一个指定大小的标签中,以便显示。

    示例:

          if (GBrowserIsCompatible()) {

            map = new GMap2(document.getElementById("map"));

            map.addControl(new GSmallMapControl());

            map.addControl(new GMapTypeControl());

           

            var geoPoint= new GLatLng(39.92, 116.46);

            map.setCenter(geoPoint, 5);

           

            //创建GMarker对象

            var marker = new GMarker(geoPoint);

            //在地图上为marker0添加涂层,显示marker0

            map.addOverlay(marker);

           

            //添加flash

            var flash_html = "<div style=\"500px; height:400px\"";

            flash_html += "<object width=\"480\" height=\"395\">";

            flash_html += " <param name=\"allowScriptAccess\" value=\"sameDomain\">";

            flash_html += " <param name=\"movie\" value=\"http://tv.mofile.com/cn/xplayer.swf\">";

            flash_html += " <param name=\"FlashVars\" value=\"v=TDL351BF&p=http://cache.mofile.com/tv/static/picture/u14/Disk1/cnc/2007/4/29/TD/L3/TDL351BF.jpg&autoplay=0\">";

            flash_html += " <param name=\"wmode\" value=\"transparent\">";

            flash_html += " <embed src=\"http://tv.mofile.com/cn/xplayer.swf\" FlashVars=\"v=TDL351BF&p=http://cache.mofile.com/tv/static/picture/u14/Disk1/cnc/2007/4/29/TD/L3/TDL351BF.jpg&autoplay=0\" width=\"480\" height=\"395\" allowScriptAccess=\"sameDomain\" wmode=\"transparent\" type=\"application/x-shockwave-flash\"/>";

            flash_html += "</object>";

            flash_html += "</div>";

            marker.openInfoWindowHtml(flash_html);

          }

  • 相关阅读:
    Android “swipe” vs “fling”
    Parcel
    ViewConfiguration 和 ViewConfigurationCompat
    Hive记录-配置支持事务管理hive-site.xml
    SQL记录-资源正忙online或nowait
    SQL记录-解锁和dbms_job操作
    Java记录-SpringMVC整合Echarts画地图加散点图
    Hive记录-impala常用命令
    Hive记录-Sqoop常用命令
    Linux记录-shell一行代码杀死进程(收藏)
  • 原文地址:https://www.cnblogs.com/wangpei/p/1626971.html
Copyright © 2011-2022 走看看