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;
break;
case "transparent":
$options["wmode"] = "\"transparent\"";
$options["wmode"] = "transparent";
break;
case "speed":
$options["tspeed"] = $value;
break;
case "distribution":
$options["distr"] = "\"true\"";
$options["distr"] = "true";
break;
}
}

View File

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

View File

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