写js,或者调用js插件:
function dynamicLoadJs(url) {
var oHead = document.getElementsByTagName('head').item(0);
var oScript = document.createElement("script");
oScript.type = "text/javascript";
oScript.src = url;
oHead.appendChild(oScript);
}
dynamicLoadJs("/webroot/scripts/js/klouds.min.js");
setTimeout(function() {
$(".fr-titlelayout.ui-state-enabled").find("div[widgetname=REPORT5]").prepend('<canvas id="canvas" style="position:absolute;z-index:-2;"></canvas>');
$(".fr-titlelayout.ui-state-enabled").find("div[widgetname=REPORT6]").prepend('<canvas id="mycanvas" style="position:absolute;z-index:-2;"></canvas>');
$('#canvas').Klouds({
layerCount: 4,
speed: 2,
cloudColor1: '#19b2cc',
cloudColor2: '#ffffff',
bgColor: '#297f0'});
$('#mycanvas').Klouds({
layerCount: 5,
speed: 2,
cloudColor1: '#ffffff',
cloudColor2: '#ffbf00',
bgColor: '#ffffff'});
},500);