Javascript 儿子被发现了。脚本运行时,它只是没有加载。我很感激你的回答,但是我想我已经很清楚了,如果我不清楚的话,我很抱歉 <td class="partial wd2" onclick="window.top.location.href='https://ww
儿子被发现了。脚本运行时,它只是没有加载。我很感激你的回答,但是我想我已经很清楚了,如果我不清楚的话,我很抱歉Javascript 儿子被发现了。脚本运行时,它只是没有加载。我很感激你的回答,但是我想我已经很清楚了,如果我不清楚的话,我很抱歉 <td class="partial wd2" onclick="window.top.location.href='https://ww,javascript,jquery,iframe,Javascript,Jquery,Iframe,儿子被发现了。脚本运行时,它只是没有加载。我很感激你的回答,但是我想我已经很清楚了,如果我不清楚的话,我很抱歉 <td class="partial wd2" onclick="window.top.location.href='https://www.planyo.com/booking.php?calendar=34264&planyo_lang=EN&mode=reserve&prefill=true&one_date=
<td class="partial wd2" onclick="window.top.location.href='https://www.planyo.com/booking.php?calendar=34264&planyo_lang=EN&mode=reserve&prefill=true&one_date=14%20Aug%202018&start_date=14%20Aug%202018&start_time=&end_time=&resource_id=104777'" title="Available for part-day rental only. Click on the date above for details.">•</td>
<td class="partial wd2" onclick=window.open('https://www.planyo.com/booking.php?planyo_lang=EN&mode=reserve&prefill=true&one_date=14%20Aug%202018&start_date=14%20Aug%202018&start_time=&end_time=&resource_id=104777','_parent')>•</td>
<!--Custom JS Overrides -->
<script>
var f=$('#calp_852795051')
f.load(function(){
f.contents().find('#horizontal_calendar').css({'border' : '1px solid red'});
f.contents().find('#caltop').css({'border' : '1px solid yellow'});
f.contents().find('#cal').css({'border' : '1px solid green'});
})
</script>
<div id="caltop" class="page" style="padding: 2px; background: transparent; border: 1px solid yellow;">
<div id="horizontal_calendar" class="left" style="border: 1px solid red;">
<table id="cal" class="calhoriz" cellpadding="0" cellspacing="0"> ......
<script>
var f = document.getElementById('calp_852795051');
f = (f.contentWindow) ? f.contentWindow : (f.contentDocument.document) ? f.contentDocument.document : f.contentDocument;
f.document.querySelector('#horizontal_calendar').css({'border' : '1px solid red'});
</script>
var b=$("[id^=calp]");
b.load(function(){
b.contents().find('script').remove(); //works
b.contents().find('body').css({'border' : '2px solid green'}); //works
b.contents().find('#caltop').prepend('<p>Blah Blah</p>'); //works
b.contents().find('#horizontal_calendar').css({'background' : '#c9c9c9'}); //works
b.contents().find('#horizontal_calendar').prepend('<p>Blah Blah</p>'); //any element/selector thing from this point is not working
b.contents().find('td').css({'border' : '3px solid black'}); //doesn't work as is inside #horizontal_calendar
})
var b=$("[id^=calp]");
b.load(function(){
b.contents().find('script').remove(); //works
b.contents().find('body').css({'border' : '2px solid green'}); //works
b.contents().find('#caltop').prepend('<p>Blah Blah</p>'); //works
b.contents().find('#horizontal_calendar').css({'background' : '#c9c9c9', 'width' : '100%'}); //works
function timeout(){
b.contents().find('#horizontal_calendar').prepend('<p>Blah Blah</p>'); //any element/selector thing from this point is not working
b.contents().find('td').css({'border' : '3px solid black'}); //doesn't work as is inside #horizontal_calendar
var element =b.contents().find('#cal');
console.log(element);
}
setTimeout(timeout, 10000);
})
var $ctx = $("#calp_852795051").get(0).contentDocument;
$cal = $("#cal", $ctx);