Sexy Alert Box with MooTools

This item was filled under [ JavaScript ]

Thanks for visiting! If you're new here, you may want to subscribe to my Rss Feed. This blog posts regular Internet news, updates for apps, security, ideas, hacks, quick fixes and everything about hi-tech. Go ahead, Subscribe to our Feed or Register for Free!

image

The author decided to call SexyAlertBox and is a mod to change the default style of JavaScript Alert Box. This script use MooTools to create the animation and look really good.

Here is another demo:

sexy-alert-box-script

Adding this effect to your pages is simply. Here is a short guide:

1. Edit the <head>
You can download the package and inside you can find everything what you need for this effect. Before the head tag add this two lines:


<script src="mootools.js" type="text/javascript"></script>
<script src="sexyalertbox.v1.js" type="text/javascript"></script>

…add also this line for the CSS file:

<link rel="stylesheet" href="sexyalertbox.css" type="text/css" media="all" />

2. Edit the HTML Code
Add this line of code within the <body> tag:

<script type="text/javascript">  window.addEvent('domready', function() {
Sexy = new SexyAlertBox();
});
  </script>

…and to have an example create a link which display an alert box with a simple message:

<a href="#" onclick="Sexy.alert('Hello Sexy Box!'); return false;">Sexy Box Effect!</a>

Download and live demo coders.me

Popularity: 998 reading
If you like this entry, consider bookmarking or help us promote it. Thank You!
Interesting Articles:

Related post to "Sexy Alert Box with MooTools"

  • SWFUpload is back with v2.2.0 beta Release

    SWFUpload is back with a beta Release. SWFUpload is a small JavaScript/Flash library to get the best of both worlds. It features the great...


  • Beautiful CSS Styling Calendar

    Calendar is a Javascript class that adds accessible and unobtrusive date-pickers to your form elements. This class is a compilation of many...


  • JavaScript Submit button hack

    On slow server or double clicks often we have double post and double comments on blogs forum, forms, uploading etc. Here is a fast JavaScript...


  • Cool font for website with facelift

    Facelift Image Replacement (or FLIR, pronounced fleer) is an image replacement script that dynamically generates image representations of text...


  • CSS Hack max width like image resize

    Recently I was fixing some CSS image alignments and the width for images. And the problem was with the big images that come out of content?! At...


  • Create your own Free Ajax Guestbook

    JibberBook is an easy-to-use, open-source guestbook built with PHP5 and JavaScript. It aims to create a pleasant user experience while giving...


  • Download Free CSS cheat sheet

    After the post with JavaScript cheat sheet we want to show you another part most important for web designer, CSS. The CSS cheat sheet is...


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Comments on “Sexy Alert Box with MooTools”

  • pdeevi
    29 October, 2008, 12:17

    Can you please help me how to use these alert boxes in asp.net page with out head and body tags.

  • 29 October, 2008, 21:29
  • pdeevi
    30 October, 2008, 11:24

    Thank you very much for your quick reply.I worked with these alert boxes on html pages.Its working fine. I wanted to use these sexyalert boxes on an asp.net page with a master page.So on that page no head and body tags.I am using java script code after the

    some code.So I wanted to use sexy alert box in that code.Can you please let me know how to use these alert boxes.
    Thanks in advance.

Leave a Comment