I m用 some子UI子在屏幕上和外围用iv。 在文件装上时, object子放在屏幕上。 它发挥了巨大作用,但我很想知道,是否有办法确定它,使之隐藏在文件负荷上,那么用户就能够点击一个顿来显示它。
I tried having the function run on document.ready
, but that didn t seem to work. Here is the code directly from the jQueryUI.
$(function() {
// run the currently selected effect
function runEffect() {
// get effect type from
var selectedEffect = "slide";
// most effect types need no options passed by default
var options = {};
// some effects have required parameters
if ( selectedEffect === "scale" ) {
options = { percent: 0 };
} else if ( selectedEffect === "size" ) {
options = { to: { width: 200, height: 60 } };
}
// run the effect
$( "#effect" ).toggle( selectedEffect, options, 500 );
};
// set effect from select menu value
$( "#button" ).click(function() {
runEffect();
return false;
});
});