這裏是PHP中的解析器,它目前在PHP中顯示,我需要一個函數來顯示解析的圖像在jQuery中。我需要顯示從PHP文件解析jQuery中的XML
for($y = 0; $y <= 1; $y++){
$featured_channel = array_values($featured_channel);
$arraytotal = (count($featured_channel)-1);
$x = rand(0,$arraytotal);
I want to pull $featured_channel[$x]-> into jQuery and display the images in that.
你需要告訴我們'$ featured_channel'持有什麼樣的值。他們是否形象src網址?圖像斑點? –
噢,對不起...他們是來自XML文件的圖像,帶有URL路徑,描述和標題。 – Martin