hey folks,
i m working on google api classes php file and i can’t figure out how to style it with my class. coz the code of function where the div get its id from is like this
<?php
function getMap() {
$_output = '<script type="text/javascript" charset="utf-8">' . "\
" . '//<![CDATA[' . "\
";
$_output .= 'if (GBrowserIsCompatible()) {' . "\
";
if(strlen($this->width) > 0 && strlen($this->height) > 0) {
$_output .= sprintf('document.write(\\'<div id="%s" align="left" style="width: %s; height: %s"><\\/div>\\');',$this->map_id,$this->width,$this->height) . "\
";
} else {
$_output .= sprintf('document.write(\\'<div id="%s"><\\/div>\\');',$this->map_id) . "\
";
}
$_output .= '}';
if(!empty($this->js_alert)) {
$_output .= ' else {' . "\
";
$_output .= sprintf('document.write(\\'%s\\');', str_replace('/','\\/',$this->js_alert)) . "\
";
$_output .= '}' . "\
";
}
$_output .= '//]]>' . "\
" . '</script>' . "\
";
if(!empty($this->js_alert)) {
$_output .= '<noscript>' . $this->js_alert . '</noscript>' . "\
";
}
return $_output;
}
/**
* print sidebar (put at location sidebar will appear)
*
*/
function printSidebar() {
echo $this->getSidebar();
}
function getSidebar() {
[B] return sprintf('<div id="%s"></div>',$this->sidebar_id) . "\
";[/B]
can anyone tell me how to apply my css?