Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

求助 关于网页嵌入sky后有时候无法打开站点

[复制链接]
shuiping5566 发表于 2009-8-27 09:11:42 | 显示全部楼层 |阅读模式
我在页面嵌入sky后,有的时候嵌入的sky区域弹出"无法打开站点,以终止操作",其他区域显示正常。有的时候sky嵌入区域显示正常,这是怎么回事啊?

我用了两个文件sky.php和sky.htm
sky.php代码:
<?php


$suijishu=rand(1,5);
require_once './common.php';
require_once './source/function_common.php';

include_once(S_ROOT.'./source/function_cp.php');
$icon = 'sky';
if($suijishu==1){
        $title_template = '{actor}&nbsp;向&nbsp;<a href="sky.php">SKY天空许愿</a>!';
}
if($suijishu==2){
        $title_template = '{actor}&nbsp;正在&nbsp;<a href="sky.php">SKY</a>&nbsp;在天空发了一颗小星星!';
}
if($suijishu==3){
        $title_template = '{actor}&nbsp;进入了&nbsp;<a href="sky.php">SKY</a>&nbsp;给远方的朋友捎去了祝福!';
}
if($suijishu==4){
        $title_template = '{actor}&nbsp;正在&nbsp;<a href="sky.php">SKY</a>&nbsp;为自己许下了心愿!';
}
if($suijishu==5){
        $title_template = '去&nbsp;<a href="sky.php">SKY</a>&nbsp;许个愿吧!你一定会梦想成真!';
}
feed_add($icon, $title_template);


include template('sky');

?>


sky.htm代码:
<!--{template header}-->

<div class="c_header a_header">
<h1>:::SKY:::向天空大声的说出你的愿望!都会实现的!</h1>

</div>

<center>
<IFRAME id=headlogin marginWidth=0 marginHeight=0 src="/sky/" frameBorder=0 width=100% scrolling=no height=550 onload="this.height=this.contentWindow.document.body.scrollHeight"></IFRAME><br><br>

<script language=javascript>
// 自动 COPY 代码开始
    function MM_findObj(n, d) { //v4.0
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
    if(!x && document.getElementById) x=document.getElementById(n); return x;
    }
    function JM_cc(ob){
    var obj=MM_findObj(ob); if (obj) {
    obj.select();js=obj.createTextRange();js.execCommand("Copy");}
    alert("复制成功!您可以将SKY天空许愿推荐给您的朋友!");
    }
</script>
<script language=javascript>
document.write('<input name="page_url" value="'+window.location.href+'" size="40">');
</script>
<input type="button" name="Button" style=color:red value="邀请朋友一起来SKY天空许愿" onclick=JM_cc("page_url") />
</div>

</div>
</center>
<br>

<!--{template footer}-->

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
KioBoy 发表于 2009-8-27 09:41:49 | 显示全部楼层
应该是JS的问题, 你去检查下。。
回复

使用道具 举报

 楼主| shuiping5566 发表于 2009-8-27 09:45:11 | 显示全部楼层
应该是JS的问题, 你去检查下。。
KioBoy 发表于 2009-8-27 09:41

我不太懂啊
回复

使用道具 举报

 楼主| shuiping5566 发表于 2009-8-27 10:27:02 | 显示全部楼层
在线等啊 求大家帮忙
回复

使用道具 举报

 楼主| shuiping5566 发表于 2009-8-27 22:18:26 | 显示全部楼层
高手来帮忙啊
回复

使用道具 举报

yh2o 发表于 2009-8-27 22:38:23 | 显示全部楼层
我也是!!!偶尔可以打开
回复

使用道具 举报

我心易用 发表于 2010-2-5 15:04:21 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-24 02:21 , Processed in 0.134043 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表