Javascript How to make this function?Like http://news.china.com/zh_cn/the Lift "gift" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <SCRIPT language=javascript>document.ns = navigator.appName == "Netscape"function winload(){if (navigator.appName == "Netscape"){document.win.pageY=pageYOffset;document.win.pageX=0;}else{win.style.top=document.body.scrollTop;win.style.right=0;streamlayer1.style.top=document.body.scrollTop;streamlayer1.style.right=0;}}function writeCookie(name, value, hours){ var expire = ""; if(hours != null) { expire = new Date((new Date()).getTime() + hours * 3600000); expire = "; expires=" + expire.toGMTString(); } document.cookie = name + "=" + escape(value) + expire;}function readCookie(name){ var cookieValue = ""; var search = name + "="; if(document.cookie.length > 0) { offset = document.cookie.indexOf(search); if (offset != -1) { offset += search.length; end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; cookieValue = unescape(document.cookie.substring(offset, end)) } } return cookieValue;}function openwin(){ if (readCookie("tbadshow")=="hide"){document.writeln("<div id=win style='position: absolute;width:64;top:300;visibility: visible;z-index: 1'><EMBED src='http://ads.china.com/zxs/news/sp/8080.swf' quality=high WIDTH=80 HEIGHT=80 TYPE='application/x-shockwave-flash' id=winicon name='winicon'></EMBED></div>");document.writeln("<div id=streamlayer1 style='position: absolute;visibility:hidden;z-index:30'><EMBED src='http://ads.china.com/zxs/news/sp/350250.swf' quality=high WIDTH=350 HEIGHT=250 TYPE='application/x-shockwave-flash' wmode='transparent' id='winhide' name='winhide'></EMBED></div>");writeCookie("tbadshow", "hide", 1);} else {document.writeln("<div id=win style='position: absolute;width:64;top:300;visibility: hidden;z-index: 1'><EMBED src='http://ads.china.com/zxs/news/sp/8080.swf' quality=high WIDTH=80 HEIGHT=80 TYPE='application/x-shockwave-flash' id=winicon name='winicon'></EMBED></div>");document.writeln("<div id=streamlayer1 style='position: absolute;visibility:visible;z-index:30'><EMBED src='http://ads.china.com/zxs/news/sp/350250.swf' quality=high WIDTH=350 HEIGHT=250 TYPE='application/x-shockwave-flash' wmode='transparent' id='winhide' name='winhide'></EMBED></div>");writeCookie("tbadshow", "hide", 1);}winload();}openwin(); 看清楚了,是flash 是的,他是个FLASH啊!!!! xp打包后在win7上运行问题 DataGridView排序后自定义属性失效 小问题?如何是想如下的注释?有没有快捷方法啊? Windows编程下如何在按钮单击事件里获得当前解决方案所在目录 C#中获得系统进程信息 在vs.net2003中的aspx里用iframe时,子页里的中文都变成了“口” 郁闷,求救!!!在C# 程序中,如何像用 mailto 那样直接出现outlook 发送信件窗体,并且可以自动添加一个附件。 帮帮忙小问题。 winform中打开浏览器 如何将菜单的效果设置与C#本身的效果相同 C#中,有一个函数,它能将单引号变为重复的双引号? 一个c# 权限问题
<SCRIPT language=javascript>
document.ns = navigator.appName == "Netscape"
function winload()
{
if (navigator.appName == "Netscape")
{document.win.pageY=pageYOffset;
document.win.pageX=0;
}
else
{
win.style.top=document.body.scrollTop;
win.style.right=0;
streamlayer1.style.top=document.body.scrollTop;
streamlayer1.style.right=0;
}
}function writeCookie(name, value, hours)
{
var expire = "";
if(hours != null)
{
expire = new Date((new Date()).getTime() + hours * 3600000);
expire = "; expires=" + expire.toGMTString();
}
document.cookie = name + "=" + escape(value) + expire;
}function readCookie(name)
{
var cookieValue = "";
var search = name + "=";
if(document.cookie.length > 0)
{
offset = document.cookie.indexOf(search);
if (offset != -1)
{
offset += search.length;
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
cookieValue = unescape(document.cookie.substring(offset, end))
}
}
return cookieValue;
}function openwin()
{
if (readCookie("tbadshow")=="hide"){
document.writeln("<div id=win style='position: absolute;width:64;top:300;visibility: visible;z-index: 1'><EMBED src='http://ads.china.com/zxs/news/sp/8080.swf' quality=high WIDTH=80 HEIGHT=80 TYPE='application/x-shockwave-flash' id=winicon name='winicon'></EMBED></div>");
document.writeln("<div id=streamlayer1 style='position: absolute;visibility:hidden;z-index:30'><EMBED src='http://ads.china.com/zxs/news/sp/350250.swf' quality=high WIDTH=350 HEIGHT=250 TYPE='application/x-shockwave-flash' wmode='transparent' id='winhide' name='winhide'></EMBED></div>");
writeCookie("tbadshow", "hide", 1);
}
else {
document.writeln("<div id=win style='position: absolute;width:64;top:300;visibility: hidden;z-index: 1'><EMBED src='http://ads.china.com/zxs/news/sp/8080.swf' quality=high WIDTH=80 HEIGHT=80 TYPE='application/x-shockwave-flash' id=winicon name='winicon'></EMBED></div>");
document.writeln("<div id=streamlayer1 style='position: absolute;visibility:visible;z-index:30'><EMBED src='http://ads.china.com/zxs/news/sp/350250.swf' quality=high WIDTH=350 HEIGHT=250 TYPE='application/x-shockwave-flash' wmode='transparent' id='winhide' name='winhide'></EMBED></div>");
writeCookie("tbadshow", "hide", 1);
}
winload();
}
openwin(); 看清楚了,是flash