1
0

Fixed the issue with IE. There were two problems the first being IE would set the font-size parameter in the CSS to be FONT-SIZE and the tagcloud.swf would only look for the lower case version. The second being tha for some reason IE would return huge font-sizes from the .css call.

This commit is contained in:
Tim Almdal 2009-10-03 15:52:04 -07:00
parent daa16ca5cd
commit ac1ad4187c
3 changed files with 14 additions and 18 deletions

View File

@ -40,13 +40,13 @@ class tag_cloud_block {
$options["bgColor"] = $value; $options["bgColor"] = $value;
break; break;
case "transparent": case "transparent":
$options["wmode"] = "\"transparent\""; $options["wmode"] = "transparent";
break; break;
case "speed": case "speed":
$options["tspeed"] = $value; $options["tspeed"] = $value;
break; break;
case "distribution": case "distribution":
$options["distr"] = "\"true\""; $options["distr"] = "true";
break; break;
} }
} }

View File

@ -41,7 +41,7 @@
var tags = document.createElement("tags"); var tags = document.createElement("tags");
$("#gTagCloud a").each(function(i) { $("#gTagCloud a").each(function(i) {
var addr = $(this).clone(); var addr = $(this).clone();
$(addr).attr("style", "font-size:" + $(this).css("fontSize") + ";"); $(addr).attr("style", "font-size: 14pt;");
$(tags).append(addr); $(tags).append(addr);
}); });
@ -52,32 +52,28 @@
distr: self.options.distr, distr: self.options.distr,
tspeed: self.options.tspeed, tspeed: self.options.tspeed,
hicolor: self.options.hicolor, hicolor: self.options.hicolor,
tagcloud: escape("<tags>" + $(tags).html() + "</tags>") tagcloud: escape("<tags>" + $(tags).html() + "</tags>").toLowerCase()
}; };
var params = { var params = {
bgColor: self.options.bgColor, bgcolor: self.options.bgColor,
wmode: self.options.wmode, wmode: self.options.wmode,
allowscriptaccess: self.options.scriptAccess, allowscriptaccess: self.options.scriptAccess
swliveconnect: true
}; };
var attributes = { swfobject.embedSWF(self.options.movie, "gTagCloud", width, .75 * width, "9", false,
id: "gTagCloud3D" flashvars, params);
};
swfobject.embedSWF(self.options.movie, "gTagCloud", width, .75 * width, "9.0.0", false,
flashvars, params, attributes);
} }
}); });
$.extend($.ui.gallery_tag_cloud, { $.extend($.ui.gallery_tag_cloud, {
defaults: { defaults: {
bgColor: 0xFFFFFF, bgColor: "0xFFFFFF",
wmode: "transparent", wmode: "transparent",
scriptAccess: "always", scriptAccess: "always",
tcolor: 0x333333, tcolor: "0x333333",
tcolor2: 0x009900, tcolor2: "0x009900",
hicolor: 0x000000, hicolor: "0x000000",
tspeed: 100, tspeed: "100",
distr: "true", distr: "true",
mode: "tag" mode: "tag"
} }

View File

@ -4,7 +4,7 @@
$("#gTag").gallery_tag_cloud({ $("#gTag").gallery_tag_cloud({
movie: "<?= url::file("modules/tag_cloud/lib/tagcloud.swf") ?>" movie: "<?= url::file("modules/tag_cloud/lib/tagcloud.swf") ?>"
<? foreach ($options as $option => $value) : ?> <? foreach ($options as $option => $value) : ?>
, <?= $option ?> : <?= $value ?> , <?= $option ?> : "<?= $value ?>"
<? endforeach ?> <? endforeach ?>
}); });
}); });