js-styled-alert replace javascript alert() to html/css stylized

Yii JsStyledAlertWidget

Widget replaces javascript alert() function to its own, that you can stylize by html & css

Installation

Just put JsStyledAlertWidget directory to yor extensions dir (/protected/extensions).

If you wont to use themes, just place JsStyledAlertWidget/views to themes//views/JsStyledAlertWidget

Usage

Just place following code to your layout file somewhere inside "BODY" tag: ~~~ <?$this->widget('ext.jsStyledAlert.JsStyledAlertWidget');?> ~~~

Stylizing

Edit files in protected/extensions/JsStyledAlertWidget/views/ (or in themes//views/JsStyledAlertWidget if you use themes):

html: JsStyledAlertWidget.php

css: assets/StyledAlert.css

js: assets/StyledAlert.js

If you wont to use images, put them to assets directory & include in widget view file using $assetPath in SRC attribute: ~~~ [html] image1.jpg

Preserve element id's when you edit html, else you will need to correct js

Requirements

Yii 1.0+ jQuery (included to Yii)

Cnangelog

09.11.2010 fixed some bugs, added including of jquery (if not included in your html)

08.11.2010 initial release

Resources

3 0
3 followers
903 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: Nayjest
Created on: Nov 8, 2010
Last updated: 13 years ago

Downloads

show all

Related Extensions