如何使用 Shadowbox 仅从网页中提取文本?
我在 Joomla 中设置了一篇文章,为网站用户显示条款和条件。我希望当用户单击链接时它会显示在影子框中。这是当前的锚文本示例:
<a href="pathtoarticle.php" rel="shadowbox;height=572;width=975">Terms and Conditions</a>
这非常适合显示整个网页,但我想做的只是在页面上显示文章文本(纯白色背景)。这对于 Shadowbox 来说有可能吗?如果是这样,怎么办?
I have an article set up in Joomla that displays Terms and Conditions for the site users. I would like this to show up in a shadowbox when a user clicks a link. Here is the current anchor text example:
<a href="pathtoarticle.php" rel="shadowbox;height=572;width=975">Terms and Conditions</a>
This works out great for displaying the entire web page, but what I would like to do is just display the article text on the page (plain with a white background). Is this in someway possible with shadowbox? If so, how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果我理解正确的话 - 当“页面”加载到影子盒中时,您希望抑制“页面”中的模块和其他外围设备。
将 ?tmpl=component 添加到链接的 URL 中。
If I'm understanding you correctly - you want to suppress the modules and other periphery from your 'page' when it is loaded in the shadowbox.
Add ?tmpl=component to the url of your link.
您可以使用
div
元素和 css 阴影效果来实现此目的。如何显示/隐藏 div 解释如下:
http://www.randomsnippets。 com/2008/02/12/how-to-hide-and-show-your-div/
这里解释了如何添加阴影:
http://placenamehere.com/article/384/css3boxshadowininternetexplorerblurshadow/
You can do this with a
div
element and css shadow effect.How to show/hide div is explained here:
http://www.randomsnippets.com/2008/02/12/how-to-hide-and-show-your-div/
How you can add shadow is explained here:
http://placenamehere.com/article/384/css3boxshadowininternetexplorerblurshadow/
我相信有一些组件可以做到这一点 - 但您可能必须发挥创意才能做到这一点,而无需使用 a href 标签拉动整个页面。
在数据库中,有一个特定区域专门保存该信息,您可以编写一个小查询来专门提取该信息并将其放入影子框中,但该查询会是什么样子我不确定。
I believe there are some components to do this - but you may have to get creative to do it without pulling the whole page with an a href tag.
In the database there's a particular area that holds that specifically and you could write a little query to just pull that information specifically and put it in the shadowbox, but what that query would look like I'm not sure.