谁能告诉我这张图片出处的出处

信息提示
您的同一ip请求过于频繁,如果希望继续访问,请输入验证码:
Copyright 1998 – 2010 Tencent. All Rights Reserved.信息提示
您的同一ip请求过于频繁,如果希望继续访问,请输入验证码:
Copyright 1998 – 2010 Tencent. All Rights Reserved.→ 我看了代码,请问高手怎么修改好呢,关于地图显示图片和多媒体 共有
人关注过本帖
主题:我看了代码,请问高手怎么修改好呢,关于地图显示图片和多媒体
119kent 1楼
等级:3S小菜
积分:127
威望:0
精华:0
2005-2-23 22:17:00
我看了代码,请问高手怎么修改好呢,关于地图显示图片和多媒体 Post By:2005-3-18 11:36:00
贴子已被锁定
strTable=strTable+"table border=1pt bordercolorlight=#C0C0C0 cell acing=1pt bordercolordark=#FFFFFF style='font-size: 9pt' bgcolor=#ceccc1 width=100%";
for(var jCount=0;jCount< Property-1;jCount++)
arrayWidth[jCount]=100/nProperty;
arrayWidth[nProperty-1]=100-(100/nProperty)*(nProperty-1);
strTable=strTable+"tr";
for(var jCount=0;jCount< Property;jCount++)
if(wantedNode.attributes.item(jCount).name=="SMID")
nSMID=jCount;
if(wantedNode.attributes.item(jCount).name=="LAYER")
nL=jCount;
strTable=strTable+"td width="+arrayWidth[jCount]+"%"+wantedNode.attributes.item(jCount).name+"/td"
strTable=strTable+"/tr";
for(var i=0;iRecCount;i++)
strTable=strTable+"tr";
wantedNode = root.item(i);
var nProperty=wantedNode.attributes.length;
for(var j=0;j< Property;j++)
//×ö Ograve raquo cedil ouml Ntilde hy raquo;·JÒ up2 Ecirc Ccedil Ograve raquo cedil ouml;±ä Aacute iquest micro laquo Ecirc Ccedil up2 raquo Ecirc Ccedil Ecirc ocirc ETH Ocirc;±ä Aacute iquest Ouml raquo Ecirc Ccedil Euml;üÄ Uuml micro Egrave Oacute Uacute;SMID
//add by yg 2002-5-16 ×÷Õ zlig frac14 Oacute Egrave euml micro Auml Egrave Otilde AElig Uacute acute;úÂ euml;,Ï Ocirc Ecirc frac34 frac14 Oacute Egrave euml up3 ot frac14 ara Aacute acute frac12 Oacute;
if(j==nSMID)
//×ö Ograve raquo cedil ouml Aring ETH ara Iuml;, up2;úÉúÈ ccedil Iuml Acirc acute;úÂ euml;,È ccedil up1 ucirc Aring ETH ara Iuml Icirc ordf AElig auml Euml ucirc;×Ö ara Icirc;,¿ Eacute Ograve Ocirc up2;úÉúÆ auml Euml ucirc acute;úÂ euml;
var TempID="";
var TempL="";
var objStyle="PENWIDTH:10;PENCOLOR:133;";
TempID=wantedNode.attributes.item(j).value;
TempL=wantedNode.attributes.item(nL).value;
strTable=strTable+"td width="+arrayWidth[j]+"%"
strTable=strTable+"a href=javascript:window.opener.parent.FrameMapViewImage.MapSeek('"+TempL+"','"+TempID+"','TRACKMODE','"+objStyle+"',0)"
strTable=strTable+wantedNode.attributes.item(j).value+"/a"+"/td"
//Ò ordf Ocirc Uacute Otilde acirc Agrave iuml frac14 Oacute Egrave euml AElig auml Euml ucirc Aring ETH ara Iuml;, up2;úÉúÍ frac14 AElig ot Eacute;úÓ up2 ETH;§ up1 ucirc micro Auml Iacute oslash Ograve up3;,Ô¤Ï Egrave ara;¨Ò aring ordm Atilde Iacute frac14 AElig ot micro Auml Atilde ucirc;×Ö Icirc ordf;PIC,ÉúÒ ocirc raquo;òÕ zlig Ecirc Oacute AElig micro Icirc ordf Ecirc up2 Atilde acute Ecirc up2 Atilde acute micro Auml frac34 Iacute up3 Eacute Aacute Euml;
strTable=strTable+"td width="+arrayWidth[j]+"%"+wantedNode.attributes.item(j).value+"/td"
strTable=strTable+"/tr";
strTable=strTable+"/table> lt r";
strTable=GetSqlText("ERROR");
if(strTable=="")
strTable=" ara Ocirc up2 raquo AElig eth ound ot Atilde raquo Oacute ETH ETH Aring Iuml cent;";
//Table = strTable;
var strFeature="height=360,width=500,status=no,toolbar=no,resizable=no,menubar=no,location=no,scrollbars=yes";
var aWin = window.open("","Print",strFeature);
aWin.document.open();
aWin.document.write("html");
aWin.document.write("head");
aWin.document.write("meta http-equiv='Content-Type' content='text/html; charset=gb2312'");
aWin.document.write("titleSuperMap µ Oslash Iacute frac14;·&thor Icirc tilde;__kentÐ THORN cedil Auml Ouml ETH lt;/title");
aWin.document.write("/head");
aWin.document.write("BODY style='font-size: 9pt' bgcolor=#eeccE1");
这里显示表格,我想在表格里面把做成超连接的属性字段显示出来,请问高手有没有办法呢?
aWin.document.write(strTable);
aWin.document.write("/BODY");
aWin.document.write("/html");
aWin.document.close();
aWin.focus();
********************************
赶紧学,好赶快毕业,工作了好有钱花
) iteasy 2楼
等级:初级小牛
积分:2381
精华:5
2003-9-12 15:33:00 Post By:2005-3-18 17:19:00
代码写清楚些,功能需求写一些,有点注释,写明出处.alert(strTable)下一看看生成的串,代码用文本发上来.
) cougar_ll 3楼
不当民工改做潜水员
等级:3S技术大牛
积分:1850
精华:6
2002-7-3 14:33:00 Post By:2005-3-19 13:52:00
这个市请问了好久了吧?哈哈
好像要理解斑竹的解决方案吧
是这样子的,SuperMap IS中呢,他返回客户端的仅仅是一张图片,这张图片之所以可以相应一些事情,是因为那个图片上面还有一些东西。相当于在这个图片上面有一个div的层。
斑竹的意思就是,让你在这个div上面写一些东西,这些东西就是一个一个的小的div这些div呢,就有了mouseover,mouseup,contextmenu这些属性了,在这些属性里面,就可以达到你要做的事情了。
小弟也正在学习当中,说得不对的地方请斑竹指正,楼上的有不清楚的地方也可以继续探讨
Aaron.Lee
) 119kent 4楼
等级:3S小菜
积分:127
威望:0
精华:0
2005-2-23 22:17:00 Post By:2005-3-21 20:09:00
谢谢楼上指点!
我只想问问下面的代码
aWin.document.write(strTable);
他是通过aWin.document.write()写了一个HTML网页,这个网页弹出显示SQL查询数据库中的的信息。我上次问版主怎么能显示多媒体信息,例如图片视频等,版主让我把那个字段的内容写上http://的链接,然后再通过修改显示,斑竹让我参考SMSQL.JS中的代码,我看了后很有启发,也想自己写出上面的空能,无奈现在J***A正学到第四周,哈哈
strTable=strTable+"a href=javascript:window.opener.parent.FrameMapViewImage.MapSeek('"+TempL+"','"+TempID+"','TRACKMODE','"+objStyle+"',0)"
上面这句是给那个SMID加的超级链接,功能是在图上显示这个东西
strTable=strTable+"td width="+arrayWidth[j]+"%"+wantedNode.attributes.item(j).value+"/td"
上面这句给出的我想是其他字段的信息显示,但是没有超级链接。
wantedNode.attributes.item(j).value这个我想就是关键了,我十分想知道怎么能读出指定字段的信息,列如我对图片字段的命名是PIC,然后在里面写上了
,我想让这个字段在弹出窗口显示的不是
,而是“点击显示图片”,然后把点击显示图片的超级链接写成
strTable=strTable+"td width="+arrayWidth[jCount]+"%"+wantedNode.attributes.item(jCount).name+"/td"
这句话里面的wantedNode.attributes.item(jCount).name应该就是字段名称了我想
应该很简单的我想,但是无奈不知道怎么修改。
********************************
赶紧学,好赶快毕业,工作了好有钱花
) 119kent 5楼
等级:3S小菜
积分:127
威望:0
精华:0
2005-2-23 22:17:00 Post By:2005-4-1 10:57:00
for(var jCount=0;jCount< Property;jCount++)
if(wantedNode.attributes.item(jCount).name=="SMID")
nSMID=jCount;
if(wantedNode.attributes.item(jCount).name=="LAYER")
nL=jCount;
if(wantedNode.attributes.item(jCount).name=="PIC")
nPIC=jCount;
strTable=strTable+"td width="+arrayWidth[jCount]+"%"+wantedNode.attributes.item(jCount).name+"/td"
strTable=strTable+"/tr";
for(var i=0;iRecCount;i++)
strTable=strTable+"tr";
wantedNode = root.item(i);
var nProperty=wantedNode.attributes.length;
for(var j=0;j< Property;j++)
//做一个循环J也是一个变量但是不是属性变量只是它能等于SMID
//add by yg 2002-5-16 作者加入的日期代码,显示加入超级链接
if(j==nSMID)
//做一个判断,产生如下代码,如果判断为其他字段,可以产生其他代码
var TempID="";
var TempL="";
var objStyle="PENWIDTH:10;PENCOLOR:133;";
TempID=wantedNode.attributes.item(j).value;
TempL=wantedNode.attributes.item(nL).value;
strTable=strTable+"td width="+arrayWidth[j]+"%"
strTable=strTable+"a href=javascript:window.opener.parent.FrameMapViewImage.MapSeek('"+TempL+"','"+TempID+"','TRACKMODE','"+objStyle+"',0)"
strTable=strTable+wantedNode.attributes.item(j).value+"/a"+"/td"
if(j==nPIC)
//自己编写的显示图片的字段
strTable=strTable+"td width="+arrayWidth[j]+"%"
strTable=strTable+"a href=javascript:window.open('"wantedNode.attributes.item(j).value"')"
strTable=strTable+wantedNode.attributes.item(j).value+"/a"+"/td"
//要在这里加入其他判断,产生图片生硬效果的网页,预先定义好图片的名字为PIC,生音或者视频为什么什么的就成了
strTable=strTable+"td width="+arrayWidth[j]+"%"+wantedNode.attributes.item(j).value+"/td"
改过一部分了~~~不知道谁能帮我看看有什么问题~~~
********************************
赶紧学,好赶快毕业,工作了好有钱花
) 119kent 6楼
等级:3S小菜
积分:127
威望:0
精华:0
2005-2-23 22:17:00 Post By:2005-4-1 11:08:00
大侠,谁能告诉我以下代码的意思,谢谢
for(var jCount=0;jCount< Property;jCount++)
if(wantedNode.attributes.item(jCount).name=="SMID")
nSMID=jCount;
if(wantedNode.attributes.item(jCount).name=="LAYER")
nL=jCount;
if(wantedNode.attributes.item(jCount).name=="PIC")
//这句话是我自己加上去的
nPIC=jCount;
strTable=strTable+"td width="+arrayWidth[jCount]+"%"+wantedNode.attributes.item(jCount).name+"/td"
********************************
赶紧学,好赶快毕业,工作了好有钱花
) 119kent 7楼
等级:3S小菜
积分:127
威望:0
精华:0
2005-2-23 22:17:00 Post By:2005-4-1 22:33:00
没有人支持,自己回答巴~~~上面的代码还是不成,已经选择不了图层了,更别说查询了
********************************
赶紧学,好赶快毕业,工作了好有钱花
) iteasy 8楼
等级:初级小牛
积分:2381
精华:5
2003-9-12 15:33:00 Post By:2005-4-4 8:43:00
关注,仔细看看,太长了.:)
) iteasy 9楼
等级:初级小牛
积分:2381
精华:5
2003-9-12 15:33:00 Post By:2005-4-4 10:29:00
for(var jCount=0;jCount< Property;jCount++)
if(wantedNode.attributes.item(jCount).name=="SMID")
nSMID=jCount;
if(wantedNode.attributes.item(jCount).name=="LAYER")
nL=jCount;
if(wantedNode.attributes.item(jCount).name=="PIC")
nPIC=jCount;
strTable=strTable+"td width="+arrayWidth[jCount]+"%"+wantedNode.attributes.item(jCount).name+"/td"
strTable=strTable+"/tr";
上面代码做用是在表格第一行列出字段名
for(var i=0;iRecCount;i++)//循环每条记录
for(var j=0;j< Property;j++)
//循环每个字段
if(j==nSMID)
//是smid字段,就加上高亮链接
问题是你的条件写的好象有问题
你写的是
if(j==nSMID){}
if(j==nPIC) {}
if(j==nSMID){}
else if(j==nPIC) {}
可以试一下,有问题再联系.
[此贴子已经被作者于2005-4-4 10:33:13编辑过]
) iteasy 10楼
等级:初级小牛
积分:2381
精华:5
2003-9-12 15:33:00 Post By:2005-4-4 10:36:00
另外在这个函数的
var aWin = window.open("","Print",strFeature);
上面加上alert(strTable)可以看到这个表格的代码,有助您的调试.
) 总数 14
   京ICP证05002978号
Copyright 2000 - 2010 Powered By

参考资料

 

随机推荐