gpt4 book ai didi

php - 玩家打开不止一次?

转载 作者:行者123 更新时间:2023-11-28 05:09:52 25 4
gpt4 key购买 nike

This is my site.当我选择要播放的歌曲时,player.php 文件将打开并播放所选的歌曲。

一切正常,但问题是当 o 返回并选择另一首歌曲时,它又打开了一个播放器窗口。请帮助我。

即使我也选择其他歌曲,我只希望打开一个播放器窗口。检查问题去this url并播放一次歌曲

播放器.php

createElement("playlist");$dom->appendChild($root);$root->setAttribute('version', "1");$root->setAttribute('xmlns', "http://xspf.org/ns/0/");$rootnext = $dom->createElement("trackList");$root->appendChild($rootnext);foreach ($song as $counter) {    $tokens = ",";    $tokenized = strtok($counter, $tokens);// create child element$song = $dom->createElement("track");$rootnext->appendChild($song);$song1 = $dom->createElement("creator");$song->appendChild($song1);$text = $dom->createTextNode("www.musicking.in");$song1->appendChild($text); $song1 = $dom->createElement("title");$song->appendChild($song1);// create text node$text = $dom->createTextNode($tokenized);$song1->appendChild($text); $tokenized = strtok($tokens);$song1 = $dom->createElement("location");$song->appendChild($song1);$text = $dom->createTextNode($tokenized);$song1->appendChild($text); }// save $dom->save("playlist.xml");?>

播放列表.xml

www.musicking.inDuryodhana's dialouge1/Ntr dialouges/duryodhana's dialouge.mp3www.musicking.inDuryodhana's dialouge2/Ntr dialouges/dvsk_dialogues-10.mp3www.musicking.inDuryodhana's dialouge3/Ntr dialouges/dvsk_dialogues-3.mp3www.musicking.inDuryodhana's dialouge4/Ntr dialouges/dvsk_dialogues-4.mp3www.musicking.inDuryodhana's dialouge5/Ntr dialouges/dvsk_dialogues-5.mp3www.musicking.inDuryodhana's dialouge6/Ntr dialouges/dvsk_dialogues-6.mp3www.musicking.inDuryodhana's dialouge7/Ntr dialouges/dvsk_dialogues-7.mp3www.musicking.inDuryodhana's dialouge8/Ntr dialouges/dvsk_dialogues-8.mp3www.musicking.inDuryodhana's dialouge9/Ntr dialouges/dvsk_dialogues-9.mp3www.musicking.inDuryodhana's dialouge10/Ntr dialouges/dvsk_dialogues-11.mp3www.musicking.inDuryodhana's dialouge11/Ntr dialouges/karna's dialouge.mp3

最佳答案

我认为它会打开一个新窗口,因为您在表单中指定了 target='_blank'。尝试使用不同的目标(即 target="player")。

关于php - 玩家打开不止一次?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/661631/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com