84
rated 0 times
[
89]
[
5]
/ answers: 1 / hits: 32541
/ 11 Years ago, wed, may 22, 2013, 12:00:00
i have index html page in my site, its the main page.
in the index html i have a button and by clicking it i want to open a popup form, i have the js file and css file of this popup included in the index html.
i just cant open this animated popup by clicking the input type button..
can anyone help me?
the clouds js:
$(function ()
{
// Register Smart skin.
$.speedoPopup.registerSmartSkin('clouds', function (overlay, container)
{
// We don't want to brake anything if there is no overlay.
if (!overlay)
{
return ;
}
if ($.speedoPopup.browser_ie && $.speedoPopup.browser_ie< 9)
{
return;
}
var clouds = '<div class=cloud x1></div><div class=cloud x2></div><div class=cloud x3></div><div class=cloud x4></div><div class=cloud x5></div>';
overlay.append(clouds);
});
});
index html: below the head tag
<link type='text/css' href='clouds/clouds.css' rel='stylesheet' media='screen' />
<script type='text/javascript' src='clouds/clouds.js'></script>
and the button:
<div>
<input type='button' name='clouds' value='Clouds'/>
</div>
More From » jquery