Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在新的弹出窗口中打开媒体文件链接。这是需要编辑的代码:
$lib_element .= '<a target="_self" href="/downloads/' . $level3['meta']['audio_file'] . '"><div class="lib_element_audio"></div></a>';
该代码是自定义 Joomla 模式的一部分。
提前致谢!
这应该工作:
$lib_element .= '<a href="javascript:;" onClick="window.open(\'/downloads/'.$level3['meta']['audio_file'].'\', \'Titletext\', \'width=400, height=200, resizable, status, scrollbars=1, location\');">Open File<div class = "lib_element_audio"></div></a> ';