开发者

Simple jquery popup

开发者 https://www.devze.com 2022-12-08 03:16 出处:网络
I\'d like to make a very simple jquery box come up saying 开发者_Go百科\"Sorry, that blog post could not be found.\"

I'd like to make a very simple jquery box come up saying 开发者_Go百科"Sorry, that blog post could not be found."

I don't want anything very advanced... How should I go about this?


You can check out these nice custom alert and confirmation boxes. You can customize them.


The jQuery plug-in Impromptu is a good simple choice for a pop-up that looks a lot nicer than a standard JS alert

http://trentrichardson.com/Impromptu/index.php

There are instructions on the site that will help you in your implementation.


Like the jQuery UI Dialog? Here's a Working Demo

$('div.no-post').dialog({        
    buttons: { 
        "Ok": function() { 
            $(this).dialog("close"); 
        } 
    },
    title: "Post Not Found",
    modal: true,
    draggable: false,
    resizable: false
});

<div class="no-post">
    Sorry, that blog post could not be found.
</div>

or I've always liked the BlockUI plugin

0

精彩评论

暂无评论...
验证码 换一张
取 消