var menuPopup = window.createPopup(); ;
var menuItems =new Array("打开","属性","上传","下载");
function popmenu()
{
var menuContent =""; for(i=0;i<menuItems.length;i++)
{
menuContent +="<INPUT type=button value= " + menuItems[i];
menuContent +=" onclick=parent.openpage(" + i + ") ";
menuContent +="onmouseover=this.style.backgroundColor='#3300cc' onmouseout=this.style.backgroundColor='buttonface' ";
menuContent +="style='BORDER-RIGHT: none; BORDER-TOP: none; VERTICAL-ALIGN: baseline; BORDER-LEFT: none; WIDTH: 160px; BORDER-BOTTOM: none; HEIGHT: 24px; TEXT-ALIGN: left'>";
} menuPopup.document.body.innerHTML = menuContent;
menuPopup.document.body.style.border = "buttonshadow thin solid" ;
menuPopup.show(event.clientX,event.clientY,162,menuItems.length*24,document.body);
}function openpage(arg)
{
if(arg==0)
{
window.showModelessDialog("open.htm","","scroll=no;width=300;height=300;status=no;");
}
else if(arg==1)
{
window.showModelessDialog("test.htm","","scrollbar=no;width=300;height=300;status=no;");
}
else
{
alert(menuItems[arg]);
}
}<body bgColor="#ffffff" MS_POSITIONING="GridLayout" oncontextmenu="popmenu();return false">...</body>
var menuItems =new Array("打开","属性","上传","下载");
function popmenu()
{
var menuContent =""; for(i=0;i<menuItems.length;i++)
{
menuContent +="<INPUT type=button value= " + menuItems[i];
menuContent +=" onclick=parent.openpage(" + i + ") ";
menuContent +="onmouseover=this.style.backgroundColor='#3300cc' onmouseout=this.style.backgroundColor='buttonface' ";
menuContent +="style='BORDER-RIGHT: none; BORDER-TOP: none; VERTICAL-ALIGN: baseline; BORDER-LEFT: none; WIDTH: 160px; BORDER-BOTTOM: none; HEIGHT: 24px; TEXT-ALIGN: left'>";
} menuPopup.document.body.innerHTML = menuContent;
menuPopup.document.body.style.border = "buttonshadow thin solid" ;
menuPopup.show(event.clientX,event.clientY,162,menuItems.length*24,document.body);
}function openpage(arg)
{
if(arg==0)
{
window.showModelessDialog("open.htm","","scroll=no;width=300;height=300;status=no;");
}
else if(arg==1)
{
window.showModelessDialog("test.htm","","scrollbar=no;width=300;height=300;status=no;");
}
else
{
alert(menuItems[arg]);
}
}<body bgColor="#ffffff" MS_POSITIONING="GridLayout" oncontextmenu="popmenu();return false">...</body>
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script language="JavaScript" type="text/JavaScript">
function MM_preloadImages() {
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var I,j=d.MM_p.length,a=MM_preloadImages.arguments; for(I=0; I<a.length; I++)
if (a[I].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[I];}}
}function yemian(aa){
if (aa=="new"){
var shouye="首页"
window.open("../new/newmemo.asp?newleibie="+shouye)
document.form1.searchkey.disabled=true
}
if (aa=="company"){
alert("对不起。这项功能还没有开通!")
document.form1.select.focus();
document.form1.searchkey.disabled=true
}
if (aa!="new" && aa!="company"){
document.form1.searchkey.disabled=false
}
}if(window.navigator.appVersion.indexOf(6.0)!=-1){
var oPopup = window.createPopup();
var popTop=50;function popmsg(msgstr){
var winstr="<table width=\"200\" height=\"150\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background: #FFF8F0;border: #666666 1px solid;\">";
winstr+="<tr><td valign=\"top\" style=\"border: #eeeeee 3px solid;\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
winstr+="<tr><td height=\"20\" style=\"background: #90CC52;\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
winstr+="<tr><td width=\"30\" align=\"center\"><img src=\"image/gonggao.gif\" width=\"7\" height=\"7\"></td><td style=\"color: #CC4F53;font-family: Verdana, Arial, sans-serif, 宋体;font-size: 9pt;line-height: 150%;\"> <strong>网站公告</strong></td></tr></table></td></tr>";
winstr+="<tr><td style=\"padding: 8px;color: #333333;font-family: Verdana, Arial, sans-serif, 宋体;font-size: 9pt;line-height: 180%;\">"+msgstr+"</td></tr></table></td></tr></table>";
oPopup.document.body.innerHTML = winstr;
popshow();
}function popshow(){
//window.status=popTop;
if(popTop>1720){
clearTimeout(mytime);
oPopup.hide();
return;
}else if(popTop>1520&&popTop<1720){
oPopup.show(screen.width-218,screen.height,200,1720-popTop);
}else if(popTop>1500&&popTop<1520){
oPopup.show(screen.width-218,screen.height+(popTop-1720),200,150);
}else if(popTop<180){
oPopup.show(screen.width-218,screen.height,200,popTop);
}else if(popTop<220){
oPopup.show(screen.width-218,screen.height-popTop,200,150);
}
popTop+=10;
var mytime=setTimeout("popshow();",50);
}
popmsg(" 这里网罗了全国多数的企业和<br>公司,希望成为您的一个商业的<br>平台!欢迎到[<span style=\" color:#ff6501;\">湖南商情网</span>],您<br>的到来是我们的动力!<br> +++<span style=\" color:#ff6501;\">www.0731sq.com</span>+++");
}
</script>
</HEAD><BODY></BODY>
</HTML>