this is actually a general javascript question and not necessarily drupal but i am using drupal for this page. i've been trying to make a link to have a pop-up window instead of a normal link but i am stuck...so i am posting this problem here,...maybe someone can help me.
the code which is working perfectly without having the link as a pop-up window is:
//mp3 ringtones
include_once 'my_xml_parser.php';
$sFile = 'http://mobilecontentprovider.xml';
$aArray = MyXmlParse($sFile); // parsing of the file
$aRess = $aArray['resources']; //array with all content
$aInfos = $aArray['infos']; //array with all informations (max_page, total_results...)
$sMax_Len = 20; //number of char of the string to display
foreach ($aRess as $aInfo) {
$lib = stripslashes($aInfo['lib']);
if (strlen($lib) > $sMax_Len) {
$lib = substr($lib, 0, $sMax_Len).'...';
}
echo '<a href="'. $aInfo['url_download'].'"><img src="'.$aInfo['file'].'" alt="'.$aInfo['lib'].'" /> '.$lib.'</a><br />';
}
so i tried to change the link to have a pop-up window to:
<?php
//mp3 ringtones
include_once 'my_xml_parser.php';
$sFile = 'http://mobilecontentprovider.xml';
$aArray = MyXmlParse($sFile); // parsing of the file
$aRess = $aArray['resources']; //array with all content
$aInfos = $aArray['infos']; //array with all informations (max_page, total_results...)
$sMax_Len = 20; //number of char of the string to display
foreach ($aRess as $aInfo) {
$lib = stripslashes($aInfo['lib']);
if (strlen($lib) > $sMax_Len) {
$lib = substr($lib, 0, $sMax_Len).'...';
}
echo '
'.$lib.'