SmartFAQ由智能工厂(https://www.smartfactory.ca)开发,智能工厂是InBox Solutions(https://www.inboxsolutions.net)的分支机构。

如何创建target=blank的xhtml-strict链接?
当您想要制作您的智友xhtml-strict时,需要留意一些与xhtml-transitional不同的地方。其中之一是target=blank在xhtml-strict中是不允许的。我知道制作智友xhtml-strict可能需要提前考虑,因为智友强烈支持xhtml-transitional,但我还想通知您。请将此功能添加到您的主题的head标签之间
<script type="text/javascript">

script>
此外,此函数的onload必须在body标签内部,如下所示
<body onload="externalLinks();">
还需要改变class/module.textsanitizer.php。查找
target="_blank"
并将其替换为
rel="external"
因此,这是必须在新窗口中打开的链接的写法。只需给任何需要在新窗口中打开的链接添加rel="external"。我必须承认,我不知道以上代码片段的作者是谁,以及如何更优雅地放置此函数。


评论归作者所有。我们对此不负责。
user

 特定菜单项目


在模块.textsanitzer.php中的所有代码中,我该如何知道具体想替换哪个元素为 rel="external" ?

 


Login

Who's Online

279 user(s) are online (19 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 279


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Did you know ?

Style sheets can be interpreted easily here ...

Random question

How do I make a smarty-template for user-avatars?