используй
а потом уже выдирай ссылки из $text с помощью
Для просмотра ссылки Войди или Зарегистрируйся например
так не получается !
в переменную текст записывается
вот что
var rdm_id = 2231; var rdm_site_id = 48; var rdm_show_desc = 0; //var rdm_show_desc = 0; var rdm_show_photo = 1; //var rdm_show_photo = 1; var rdm_show_align = 'center'; var title_position = 1; var const_title_before= 0; var const_title_after = 1; var rdm_class_title = ''; var rdm_class_desc = ''; var rdm_class_photo = ''; var rdm_style_photo = ''; var rdm_header = ''; var rdm_footer = '
'; var rdm_delimeter = ''; var rdm_line_before = ''; var rdm_line_after = ''; var rdm_title_before = ''; var rdm_title_after = '
'; var rdm_desc_before = ''; var rdm_desc_after = ''; var rdm_data = ''; var rdm_img_size = ' width="50" height="50" '; var rdm_css_styles = 'div#rdminfrm_2231 div {padding: 2px} div#rdminfrm_2231 ul {list-style-type: none} div#rdminfrm_2231 table {border: none; background-color: #FFFFFF} div#rdminfrm_2231 table td {width: 25%; padding: 4px; text-align: left; vertical-align: top; ; border-width: 1px; border-style: dotted; border-color: #CCCCCC} div#rdminfrm_2231 div.rdm_title_2231 a, div#rdminfrm_2231 div.rdm_title_2231 a:hover {font-family: Tahoma; font-weight: bold; font-size: 12px; color: #004080; text-decoration: none} div#rdminfrm_2231 div.rdm_img_2231 {float: left} div#rdminfrm_2231 div.rdm_img_2231 img {border-width: 1px; border-style: none; border-color: #CCCCCC} div#rdminfrm_2231 div.rdm_text_2231 a, div#rdminfrm_2231 div.rdm_text_2231 a:hover {font-family: Tahoma; font-weight: normal; font-size: 12px; color: black; text-decoration: none}'; var rdm_initid = 'rdminfrm_2231'; var rdm_host = 'http://click.readme.ru/'; var rdm_num = 4; var rdm_domain = 'http://click.readme.ru/'; function getCookie(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0){return null;}}else{begin += 2;}var end=dc.indexOf(";", begin);if (end==-1){end=dc.length;}return unescape(dc.substring(begin+prefix.length,end));} function setCookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+((expires)?"; expires="+expires.toGMTString(
"")+((path)?"; path="+path:"")+((domain)?";domain="+domain:"")+((secure)?"; secure":"");} var rdm_init = document.getElementById(rdm_initid); function RDMI(){if(rdm_init){rdm_init.innerHTML = rdm_data;}} function RDMH(){rdm_data+=rdm_header;} function RDMF(){rdm_data+=rdm_footer;RDMI();} function RDMAdd(title,news_url,url,desc,photo,special){ tit = '
'+title+'<'+'/a>
'; str=rdm_line_before; if(title_position == const_title_before) {str+= tit;} if(rdm_show_photo&&photo!='') {str+='
<'+'/a>
';} if(title_position == const_title_after) {str+= tit;} if(rdm_show_desc&&desc!='') {str+='
'+desc+'<'+'/a>
';} rdm_data+=str+rdm_line_after; } if (rdm_init) { document.write(''+rdm_css_styles+'<'+'/style>'); document.write('<'+'/scr'+'ipt>'); document.write('<'+'/scr'+'ipt>'); document.write('<'+'/scr'+'ipt>'); }
но ни как не текст