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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖

[疑难] 请高人看看如何才能让这两个链接在新窗口打开

[复制链接]
不动山人 发表于 2009-11-25 04:21:17 | 显示全部楼层
document.write('<a href="$siteurl/space.php?uid=$uid">$_SGLOBAL[supe_username]</a> | <a class="tx_blue" href="$siteurl/space.php?uid=$uid"target="_blank">我的主页</a> | <a class="tx_blue" href="$siteurl/cp.php"target="_blank">个人中心</a> |  [<a href="$siteurl/batch.login.php?action=logout" >退出</a>]');
END;
        if(checkperm('manageadmincp')) {
        echo("document.write(' | <a href=\"$siteurl/admincp.php\" target=\"_blank\">管理</a>');");}

这样加进去没有用???
回复

使用道具 举报

 楼主| 天婷a 发表于 2009-11-25 10:22:44 | 显示全部楼层
document.write('$_SGLOBAL[supe_username] | 我的主页 | 个人中心 |  [退出]');
END;
        if( ...
不动山人 发表于 2009-11-25 04:21



    没用,我试过了
回复

使用道具 举报

北京公子 发表于 2009-12-17 14:35:33 | 显示全部楼层
看来高手们都跟着贾君鹏回家吃饭了。
回复

使用道具 举报

草上蚂蚱 发表于 2009-12-29 20:18:20 | 显示全部楼层
页面在新窗口打开,只需要在模板中加一句  target=“_blank”,具体代码如下:

  1. document.write('<a href="$siteurl/space.php?uid=$uid">$_SGLOBAL[supe_username]</a> | <a class="tx_blue" href="$siteurl/space.php?uid=$uid"  target="_blank" >我的主页</a> | <a class="tx_blue" href="$siteurl/cp.php" target="_blank" >个人中心</a> |  [<a href="$siteurl/batch.login.php?action=logout">退出</a>]');

  2. END;

  3. if(checkperm('manageadmincp')) {

  4. echo("document.write(' | <a href="$siteurl/admincp.php" target="_blank">管理</a>');");}
复制代码
回复

使用道具 举报

SSAY 发表于 2009-12-30 00:35:41 | 显示全部楼层
  1.         document.write('<a href="$siteurl/space.php?uid=$uid">$_SGLOBAL[supe_username]</a> | <a class="tx_blue" href="$siteurl/space.php?uid=$uid" target="_blank">我的主页</a> | <a class="tx_blue" href="$siteurl/cp.php" target="_blank">个人中心</a> |  [<a href="$siteurl/batch.login.php?action=logout">退出</a>]');
  2. END;
  3.         if(checkperm('manageadmincp')) {
  4.         echo("document.write(' | <a href="$siteurl/admincp.php" target="_blank">管理</a>');");}
复制代码
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-28 04:37 , Processed in 0.130094 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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