baidu网页在框架页中的影响,,哪位高手可以消除这种影响??
<FRAMESET id=frameset cols=500,*>
<FRAME border=0 name=menu
src= "http://www.google.cn " scrolling=yes>
<FRAME border=0 name=menu
src= "http://www.baidu.com " scrolling=yes>
</FRAMESET>
google搜索打开后,在框架内弹出网页。而baidu搜索后则是在原窗口弹出网页,覆盖了框架。不知那位高人,能没有什么办法取消baidu这种影响呢。思路也可以,代码也可以。。。谢谢
------解决方案--------------------给你看个例子,希望你有启发:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<title> </title>
<script defer= "defer " type= "text/javascript " charset= "gb2312 ">
/**
原作者:未知
该代码功能很简单,将它做了很小部分的修改
**/
<!--
var tPopWait = 100; //停留tWait豪秒后显示提示。
var tPopShow = 60000; //显示tShow豪秒后关闭提示
var showPopStep = 30; //半透明步长
var popOpacity = 90; //透明度
var fontcolor = "#000000 "; //文字颜色
var bgcolor = "white "; //背景颜色
var bordercolor = "black "; //边框颜色
var sPop=null;
var curShow=null;
var tFadeOut=null;
var tFadeIn=null;
var tFadeWaiting=null;
var snapPanel = " ";
snapPanel += " <style type= 'text/css 'id= 'defaultPopStyle '> ";
snapPanel += ".cPopText { background-color: "+bgcolor+ ";color: "+fontcolor+ "; border: 1px "+bordercolor+ " solid;font-color: font-size: 12px; padding-right: 4px; padding-left: 4px; height: 240px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)} ";
snapPanel += " </style> ";
snapPanel += " <div id= 'dypopLayer ' style= 'position:absolute;z-index:1000; ' class= 'cPopText '> </div> ";
document.body.innerHTML += snapPanel;
function showPopupText()
{
try{
var o= event.srcElement;
if(o.id == "dypopLayer ")
return;
MouseX = event.x;
MouseY = event.y;
if(o.tagName== "A " && o.href!=undefined && o.href!=null && o.href!= " ")
{
//获取link 的 href 属性,并清除掉 alt && title 属性,以免显示两个提示.
o.dypop=o.href;
if(o.alt!=null&&o.alt!= " ")
{
o.alt= " "
}
if(o.title!=null&&o.title!= " ")
{
o.title= " "
}
document.title = o.href;
}
if(o.dypop!=sPop)
{
sPop = o.dypop;
clearTimeout(curShow);
clearTimeout(tFadeOut);
clearTimeout(tFadeIn);
clearTimeout(tFadeWaiting);
if(sPop==null||sPop== " ")
{
dypopLayer.innerHTML= " ";
dypopLayer.style.filter= "Alpha() ";
dypopLayer.filters.Alpha.opacity=0;
}
else
{
if(o.dyclass!=null)popStyle=o.dyclass
else popStyle= "cPopText ";
curShow=setTimeout( "showIt() ",tPopWait);
}
}
}
catch(e)
{
alert(e);
}
}
//避免重复引发onload
function changeImage(img,url){
if(img.src==sServiceUrlRoot+ "/Caches/loading.gif "){
img.src = url;
}
}
function showIt()
{
dypopLayer.className=popStyle;
//加入img标签
var key=Math.floor( Math.random() * 2000000);
var imageHtml = " <iframe width= '100% ' height= '100% ' bo