decode($var); //print_r($var_arr); $img = $var_arr->imgsrc; $xs = $var_arr->xcoord; $ys = $var_arr->ycoord; $caption = $var_arr->caption; $caption2 = implode(', ',$var_arr->caption); $s = @getimagesize($img); $id = $var_arr->id; $wpfbg = new wpfbg(); ?> <?=$caption2?> print_blogjs(false); ?> map_Start($img, $id); if (is_array($xs)) { foreach($xs as $key=>$x) { $xn = round(($x / 100) * $s[0]); $yn = round(($ys[$key] / 100) * $s[1]); $wpfbg->map_Entry($caption[$key], $xn, $yn, 150, 150, $id); } } else { $wpfbg->map_Entry($caption, $x, $y, 150, 150, $id); } $wpfbg->map_End(); ?>