Есть переменный див, меняется концовка, как его вырезать с html страницы или скрыть ? c помощью javascript PHP: <div id="ads_games_parent25283" > содержимое + есть ещё div</div>
PHP: <div id="ads_games_parent11890" align="center" style="margin-bottom:4px;position:relative;zoom:1;"><style type="text/css">.adv-close {background: #b6b6b6 !important;padding: 0 8px !important;margin:0 0 4px 0 !important;font: 9px/15px 'Tahoma', 'Arial' !important;color: #fff !important;text-decoration: none !important;text-transform: uppercase;border-radius: 3px;display:inline-block;} .adv-close span {background: url(http://s10.ucoz.net/ucoz/img/uads/adv-close.png) no-repeat right center; padding: 0 13px 0 0 !important;cursor: pointer;} .adv-remove {display: block;text-align:center !important;background: url(http://s10.ucoz.net/ucoz/img/uads/a-buttons-logged.gif) repeat-x !important;padding: 0 10px !important;margin:0 !important;font: bold 9px/18px 'Tahoma', 'Arial' !important;color: #fff !important;text-decoration: none !important;text-transform: uppercase;border-radius: 0 0 3px 3px;} .adv-remove span {cursor: pointer;}</style><div id="begun_clbutton" style="z-index:9000;position:absolute;top:1px;right:1px;text-align:right;cursor:pointer;" onclick="$(this).parent().hide();"><a href="#" class="adv-close"><span>Закрыть</span></a></div><script type="text/javascript">var begun_auto_pad = 233624550;var begun_block_id = 233624658;var begun_callbacks = {"block":{"draw": function(block) {if ( (block.filled_banners_data.text==0) && (block.filled_banners_data.graph==0)) {document.write('<script type=\"text/javascript\">document.getElementById(\'begun_clbutton\').style.display=\'none\';\x3c/script><div id=\"ads_games_11890\" onclick=\"window.open(\'http://u.to/7b5eAQ\')\" style=\"cursor:pointer;height:108px; background:url(\'http://s10.ucoz.net/ucoz/img/uads/ru/gladiatus.png\') no-repeat; background-repeat:none;max-width:728px; margin:auto;\"><div style=\"position:related;top:0;left:0;text-align:right;cursor:pointer;\" onclick=\"$(this).parent().hide();event.stopPropagation();\"><a href=\"#\" class=\"adv-close\"><span>Закрыть</span></a></div><div style=\"position:related;top:0px;left:0px;text-align:left;margin-top:72px;cursor:pointer;\" onclick=\"event.stopPropagation();\"><a href=\"javascript://\" onclick=\"new _uWnd(\'UBROWSERDOWNLOAD\',\'Отключение рекламы\',-550,-400,{resize:0,autosize:0,align:\'justify\'},\'<div id="ads_window" class="ads_window"></div><script type="text/javascript" src="http://ucoznews.ucoz.net/uadsoff.js"></script>\');return false;\" title=\"Отключение рекламы рекламу на всех сайтах системы uCoz\" class=\"adv-remove\"><span>Убрать рекламный баннер</span></a></div></div>');} else {document.write('<a href=\"javascript://\" onclick=\"new _uWnd(\'UBROWSERDOWNLOAD\',\'Отключение рекламы\',-550,-400,{resize:0,autosize:0,align:\'justify\'},\'<div id="ads_window" class="ads_window"></div><script type="text/javascript" src="http://ucoznews.ucoz.net/uadsoff.js"></script>\');return false;\" title=\"Отключение рекламы рекламу на всех сайтах системы uCoz\" class=\"adv-remove\"><span>Убрать рекламный баннер</span></a>');}}}};</script><script src="http://autocontext.begun.ru/autocontext2.js" type="text/javascript"></script><div style="padding-top:1px"><a href="javascript://" onclick="new _uWnd('getpro','Премиум аккаунт',550,200,{resize:0,autosize:1,closeonesc:1,align:'justify'},{url:'/index/90-21'});return false;">Убрать рекламу на сайте</a></div></div>
jQuery позволяет использовать регулярку при работе с селектором, например: PHP: $("div:regex(id, ads_games_parent.*)");