Php 单击打开单独页面中的整个div(新选项卡)
首先看看这把小提琴 基本上我要做的就是添加这样的代码Php 单击打开单独页面中的整个div(新选项卡),php,html,Php,Html,首先看看这把小提琴 基本上我要做的就是添加这样的代码 <a target="_blank" href="here should be the event tile that you see at the first line of the fiddleel .html">open event</a> 当我点击打开事件时,我应该在新页面中打开整个div 看起来我在回答这个问题,但我无法访问小提琴中的代码,代码是通过文件get contents从远程页面检索的,我想在回
<a target="_blank" href="here should be the event tile that you see at the first line of the fiddleel .html">open event</a>
当我点击打开事件时,我应该在新页面中打开整个div
看起来我在回答这个问题,但我无法访问小提琴中的代码,代码是通过文件get contents从远程页面检索的,我想在回显页面中的代码之前添加这个
我希望您理解我试图解释的内容我不知道我是否理解您的意思,但是如果您想用给定div的内容打开一个新窗口,为什么不使用window.open并将现有div的内容添加到打开的窗口中,如下所述:
也许你在找这样的东西?使用jQuery确定何时单击div中的链接,然后执行javascript操作在其自己的窗口中打开该div
$(文档).ready(函数(){
//警报(“文件准备就绪”);
$('#新建窗口a')。单击(函数(){
警惕(‘你好’);
});
});
李-马特克金沙酒店(1号球场)
直播视频网球
:罗兰·加洛斯2013
{SNIP!}
可能重复的no no no我的意思是什么,让我们解释一下,换句话说,我有一个包含许多div的页面,所有的div都像在小提琴中一样,我想在每个div上做广告链接,当点击链接时打开包含该div的窗口,新窗口中只有div,在你的小提琴中没有发现任何东西,除了点击任何链接时,会弹出一个警告,说hellooooooo
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
//alert('Document is ready');
$('#newwindow a').click(function() {
alert('helloooooo');
});
});
</script>
</head>
<body>
<div id="newwindow">
<span class="lshevent">Li - Mattek-Sands (Court 1)</span>
<div id="event153341" class="lshjpane-slider lshcontent" style="padding-top: 0px; border-top-width: medium; border-top-style: none; padding-bottom: 0px; border-bottom-width: medium; border-bottom-style: none; overflow: hidden; height: 308px;">
<table width="100%" class="insideslidebg" cellpadding="0" cellspacing="0" border="0"><tbody><tr><td colspan="2"><b>Live Streaming Video </b> <span class="section">Tennis</span>
<b>: </b> <span id="category754" class="category">Roland Garros 2013</span>
</td>
</tr></tbody></table></td>
{ SNIP! }
</tr></tbody></table></div><!-- #event153341 -->
</div><!--#newwindow-->
</body>
</html>