输入banner图图片脚本导航/分类

DOM XPATH获取img src值的query

代码如下:
$nodes = @$xpath->query("//*[@id='main_pr']/img/@src");
$prurl = $nodes->item(0)->nodeValue;