日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Skyline软件二次开发初级——4如何在WEB页面中的三维地图上使用弹出框Popups

發布時間:2023/12/14 编程问答 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Skyline软件二次开发初级——4如何在WEB页面中的三维地图上使用弹出框Popups 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1.簡單彈出框:

<html>
????<head>
????????<title>Popup1</title>
????????<object?id="SGWorld"?classid="CLSID:3a4f91b1-65a8-11d5-85c1-0001023952c1"?style="visibility:hidden;height:0?"></object>
????????<script?type="text/javascript">
????????
????????
function?Init()
????????{
????????????
var?popup?=?SGWorld.Creator.CreatePopupMessage("My?popup",?"http://www.yahoo.com");
????????????SGWorld.Window.ShowPopup(popup);
????????}
????????
????????
</script>
????</head>
????<body?onload="Init();">
????</body>
</html>

2.彈出框的尺寸和位置:

<html>
????<head>
????????<title>Popup2</title>
????????<object?id="SGWorld"?classid="CLSID:3a4f91b1-65a8-11d5-85c1-0001023952c1"?style="visibility:hidden;height:0?"></object>
????????<script?type="text/javascript">

????????
function?Init()
????????{

????????????
var?popup?=?SGWorld.Creator.CreatePopupMessage("My?popup",?"http://www.yahoo.com",0,0);
????????????
????????????popup.Height?
=?160;
????????????popup.Width?
=?SGWorld.Window.Rect.Width;
????????????
//popup.Align?=?"bottom";

????????????SGWorld.Window.ShowPopup(popup);
????????}
????????
????????
</script>
????</head>
????<body?onload="Init();">
????</body>
</html>

3.簡單文本彈出框:

?

<html>
????<head>
????????<title>Popup3</title>
????????<object?id="SGWorld"?classid="CLSID:3a4f91b1-65a8-11d5-85c1-0001023952c1"?style="visibility:hidden;height:0?"></object>
????????<script?type="text/javascript">
????????
????????
function?Init()
????????{
????????????
var?popup?=?SGWorld.Creator.CreatePopupMessage("My?popup");

????????????popup.innerText?
=?"Did?you?know:\r\nYou?can?have?multiple?popup?messages?by?giving?them?different?caption.\r\nPopup?messages?with?the?same?caption,?replaces?each?other.";

????????????SGWorld.Window.ShowPopup(popup);
????????}
????????
????????
</script>
????</head>
????<body?onload="Init();">
????</body>
</html>

?

4.在指定時間后消失的無標題彈出框:

?

<html>
????<head>
????????<title>Popup4</title>
????????<object?id="SGWorld"?classid="CLSID:3a4f91b1-65a8-11d5-85c1-0001023952c1"?style="visibility:hidden;height:0?"></object>
????????<script?type="text/javascript">
????????
????????
function?Init()
????????{
????????????
//?passing?empty?caption?will?turn?caption?off.?You?can?also?turn?caption?on/off?using?ShowCaption?property?of?popup.
????????????var?popup?=?SGWorld.Creator.CreatePopupMessage("",?"",?0,?0,?300,?50,?5000);
????????????
????????????popup.InnerText?
=?"This?is?a?simple?text?popup?without?a?caption.\r\nIt?will?be?displayed?for?5?seconds";????????????
????????????popup.Align?
=?"BottomLeft";

????????????SGWorld.Window.ShowPopup(popup);
????????}
????????
????????
</script>
????</head>
????<body?onload="Init();">
????</body>
</html>

?

5.最大化彈出框:

?

<html>
????<head>
????????<title>Popup5</title>
????????<object?id="SGWorld"?classid="CLSID:3a4f91b1-65a8-11d5-85c1-0001023952c1"?style="visibility:hidden;height:0?"></object>
????????<script?type="text/javascript">
????????
????????
function?Init()
????????{
????????????
var?popup?=?SGWorld.Creator.CreatePopupMessage("Article",?"http://www.yahoo.com",5,5);

????????????popup.Width?
=?SGWorld.Window.Rect.Width-10;
????????????popup.Height?
=?SGWorld.Window.Rect.Height-10;

????????????SGWorld.Window.ShowPopup(popup);
????????}
????????
????????
</script>
????</head>
????<body?onload="Init();">
????</body>
</html>

?

6.彈出框的尺寸和位置 (2):

?

<html>
????<head>
????????<title>Popup6</title>
????????<object?id="SGWorld"?classid="CLSID:3a4f91b1-65a8-11d5-85c1-0001023952c1"?style="visibility:hidden;height:0?"></object>
????????<script?type="text/javascript">
????????
????????
function?Init()
????????{
????????????
var?popup?=?SGWorld.Creator.CreatePopupMessage("Custom?position?and?dimensions?(displayed?for?10?sec)",?"http://www.yahoo.com",?-100,?300,?500,?200,?10000);

????????????SGWorld.Window.ShowPopup(popup);
????????}
????????
????????
</script>
????</head>
????<body?onload="Init();">
????</body>
</html>

?

7.移除彈出框:

<html>
????<head>
????????<title>Popup7</title>
????????<object?id="SGWorld"?classid="CLSID:3a4f91b1-65a8-11d5-85c1-0001023952c1"?style="visibility:hidden;height:0?"></object>
????????<script?type="text/javascript">
????????
????????
????????
function?Init()
????????{
????????????
var?popup?=?SGWorld.Creator.CreatePopupMessage();
????????????
????????????popup.InnerText?
=?"This?sample?shows?how?to?programmatically?remove?the?popup";

????????????popup.Align?
=?"Top";

????????????SGWorld.Window.ShowPopup(popup);
????????????
????????????alert(
"Click?OK?to?remove?the?popup");

????????????SGWorld.Window.RemovePopup(popup);
????????}???????????????
????????
????????
</script>
????</head>
????<body?onload="Init();">
????</body>
</html>

?

?

轉載于:https://www.cnblogs.com/yitianhe/archive/2012/09/22/2697845.html

總結

以上是生活随笔為你收集整理的Skyline软件二次开发初级——4如何在WEB页面中的三维地图上使用弹出框Popups的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。