Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heyman/jquery-titlealert
jQuery plugin for flashing messages in the browser title bar (i.e. chat message alerts)
https://github.com/heyman/jquery-titlealert
Last synced: 1 day ago
JSON representation
jQuery plugin for flashing messages in the browser title bar (i.e. chat message alerts)
- Host: GitHub
- URL: https://github.com/heyman/jquery-titlealert
- Owner: heyman
- License: other
- Created: 2009-02-13T10:08:34.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2020-07-29T13:00:24.000Z (over 4 years ago)
- Last Synced: 2024-10-31T18:55:18.785Z (7 days ago)
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 107
- Watchers: 6
- Forks: 29
- Open Issues: 5
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
jquery-titlealert
=================Flashes the page title with a custom message.
Example usage
-------------
$.titleAlert("Hello World!", {
requireBlur:true,
stopOnFocus:true,
duration:10000,
interval:500
});Flash title bar with text "Hello World!", if the window doesn't have focus, for 10 seconds or until window gets focused, with an interval of 500ms
Parameters and Options
----------------------jQuery.titleAlert(message, options)message
A string the message that should be flashed in the browser title.options
JavaScript object containing optionsname
default
descriptioninterval
500
The flashing interval in milliseconds.originalTitleInterval
null
Time in milliseconds that the original title is diplayed for. If null the time is the same as interval.duration
0
The total lenght of the flashing before it is automatically stopped. Zero means infinite.stopOnFocus
true
If true, the flashing will stop when the window gets focus.stopOnMouseMove
false
If true, the flashing will stop when the document recieves a mousemove event (i.e. when the user moves the mouse over the document area, regardless of what window is active).requireBlur
false
Experimental. If true, the call will be ignored unless the window is out of focus. Known issues: Firefox doesn't recognize tab switching as blur, and there are some minor IE problems as well.License
-------
MIT License