Hi,
in my application (http://tools.webmasterei.com/kmlkalender/) the
popups are filled by ajax with the content of a database. There are
texts, images and flashes. How can I resize the dimension of
infowindow?
Here is my php/js/-code:
$iw = $t->getIW($id); // get all contents
switch ($iw->typ) {
case 'flv': // flashmovie
$js = "var so = new SWFObject('./lib/mediaplayer.swf','mpl',
240,180,'7');so.addParam('allowfullscreen','true');so.addVariable
('autostart','true');";
$js .= "\nso.addVariable('file','".$iw->url."');";
$js .= "\nso.write('iw_".$id."');";
echo $js;
break;
case 'img': //image with text
$js = "html = '".$iw->txt."<img width=240 src=\"" . $iw->url .
"\"
alt=\"Photo\" />';\n";
$js .= "$('iw_'+".$id.").innerHTML=html;";
echo $js;
break;
case 'pan': // panorama
$js = "$('iw_".$id."').width='320';var so = new
SWFObject('./lib/
panoStudioViewer.swf','mpl',320,180,'7');\nso.addParam
('allowfullscreen','false');\nso.addVariable('autostart','true');";
$js .= "\nso.addVariable('pano','getxml.php?t%3D' + '' + '%26i
%3D'+ encodeURI('".$iw->url."'));";
$js .= "\nso.write('iw_".$id."');";
echo $js;
break;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---