|
楼主 |
发表于 2009 年 4 月 7 日 11:20:55
|
显示全部楼层
![](https://jgwy.net/data/attachment/common/cf/090302a2ea12ezbbepv6cc.jpg) 有方法的动手吧
是在顶部出入如下代码:
- <script language="javascript">
- var isSet = false;
-
- try{
- var win = window.parent;
- if(win.CwCityAd == undefined) {
- while(window.top != win) {
- win = win.parent;
- if(win.CwCityAd != undefined) {
- isSet = true;
- break;
- }
- }
- }
- else {
- isSet = true;
- }
- }catch(e) {}
- var address=window.location;
- //function reloadAd() { window.frames[1].scr="http://www.cwcity.de/advertisements/frame/ad.php?u_id=xds&u_url='+escape(address)+'";}
- //setInterval(function() {
- //if(address != window.frames[0].src) {reloadAd();}
- //},5000);
-
- if(!isSet) {
- var s='<html><head><title>'+'</title></head>'+
- '<frameset cols="*,150" frameborder="0" border="0" framespacing="0" onload="return true;" onunload="return true;">'+
- '<frame onload="" src="'+address+'?" name="CwMemberPage" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
- '<frame src="http://www.cwcity.de/advertisements/frame/ad.php?u_id=xds&u_url='+escape(address)+'" name="CwCityAd" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
- '</frameset>'+
- '</html>';
- document.write(s);
- }
- </script>
复制代码 |
|