stunnix javascript obfuscator encoder 4.2
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 830
WMS Javascript Library 0.02
WMS Javascript Library is an object-oriented JavaScript library for creating dynamic Web-based maps. more>>
WMS Javascript Library is an object-oriented JavaScript library for creating dynamic Web-based maps from otherwise static WMS (Web Map Service) images by adding pan/zoom functionality with Google Maps-like draggability.
Custom clickable overlays can be added to create a useful GIS.
WMS Javascript Librarys wmsmap.js purpose is to facilitate the creation of dynamics maps using freely available WMS servers. For example to create the dynamic equivalent of the image above, include the javascript files, define the Layer object, create a new map object, and associate it with an html DIV element.
// define layer object
var myLayer = {
URL: http://wms.jpl.nasa.gov/wms.cgi?,
LAYERS: [BMNG],
FORMAT: image/jpeg,
BBOX: [0,0,180,90]
};
// create new map object with layer
var myMap = new WMap(map_div,[myLayer]);
Enhancements:
- This release fixes IE bugs and improves the documentation and example layout.
<<lessCustom clickable overlays can be added to create a useful GIS.
WMS Javascript Librarys wmsmap.js purpose is to facilitate the creation of dynamics maps using freely available WMS servers. For example to create the dynamic equivalent of the image above, include the javascript files, define the Layer object, create a new map object, and associate it with an html DIV element.
// define layer object
var myLayer = {
URL: http://wms.jpl.nasa.gov/wms.cgi?,
LAYERS: [BMNG],
FORMAT: image/jpeg,
BBOX: [0,0,180,90]
};
// create new map object with layer
var myMap = new WMap(map_div,[myLayer]);
Enhancements:
- This release fixes IE bugs and improves the documentation and example layout.
Download (0.38MB)
Added: 2006-01-07 License: AFPL (Aladdin Free Public License) Price:
1392 downloads
Javascript Flickr Slideshow 0.2
Javascript Flickr Slideshow is a slideshow that shows images from Flickr.com. more>>
Javascript Flickr Slideshow is a slideshow that shows images from Flickr.com. You can specify tags and/or users to limit the slideshow.
Javascript Flickr Slideshow uses the "canvas" object, works in Firefox and Internet Explorer using the excanvas.js library, and integrates into any Web page.
Enhancements:
- A bug that caused Internet Explorer to crash when refreshing a page was fixed.
- The API was expanded to handle image and canvas tags.
<<lessJavascript Flickr Slideshow uses the "canvas" object, works in Firefox and Internet Explorer using the excanvas.js library, and integrates into any Web page.
Enhancements:
- A bug that caused Internet Explorer to crash when refreshing a page was fixed.
- The API was expanded to handle image and canvas tags.
Download (0.17MB)
Added: 2007-02-26 License: GPL (GNU General Public License) Price:
988 downloads
Generic JavaScript validator 1.0
Generic JavaScript validator is a simple but powerful cross-browser JavaScript that combines DOM and regulars expressions. more>>
Generic JavaScript validator is a simple but powerful cross-browser JavaScript that combines DOM and regulars expressions for the client-side validation of forms.
It can validate any number of form on HTML documents. Generic JavaScript validator also supports user defined JavaScript functions.
Include .js file
Inside < head > section of the html with the form inside you insert these lines
< script language="JavaScript" type="text/javascript" src="validate.js" >< /script >
<<lessIt can validate any number of form on HTML documents. Generic JavaScript validator also supports user defined JavaScript functions.
Include .js file
Inside < head > section of the html with the form inside you insert these lines
< script language="JavaScript" type="text/javascript" src="validate.js" >< /script >
Download (0.012MB)
Added: 2006-09-14 License: GPL (GNU General Public License) Price:
663 downloads
Epoch DHTML JavaScript Calendar 2.0.1
Epoch JavaScript Calendar and DatePicker runs on all major browsers and features a fast user interface. more>>
Epoch JavaScript Calendar and DatePicker runs on all major browsers and features a fast user interface, multiple date selection, flat or popup modes, CSS styling, automatic date formatting, full object-oriented design, and more. Epoch DHTML JavaScript Calendar is available in over a dozen major international languages.
Main features:
- Fast loading and initialization
- Intuitive, customizable interface
- Compatible with all Modern Browsers - see compatibility chart below.
- Can display as a Flat or Popup (DatePicker) calendar
- Automatic Date Formatting - US, European, or create your own!
- Multiple-Date selection - by clicking on calendar cells or the day & week headings.
<<lessMain features:
- Fast loading and initialization
- Intuitive, customizable interface
- Compatible with all Modern Browsers - see compatibility chart below.
- Can display as a Flat or Popup (DatePicker) calendar
- Automatic Date Formatting - US, European, or create your own!
- Multiple-Date selection - by clicking on calendar cells or the day & week headings.
Download (0.029MB)
Added: 2006-09-18 License: LGPL (GNU Lesser General Public License) Price:
1207 downloads
Javascript Search Aggregator 1.0.2
Javascript Search Aggregator allows you to perform all of your Web searches from one place. more>>
Javascript Search Aggregator allows you to perform all of your Web searches from one place.
You can create many categories of searches such as work and fun and customize search engines for your specific needs.
Javascript Search Aggregator remembers the last query and state of the tabs and works on any browser with JavaScript support.
Enhancements:
- Do not load last selected engine on first load
<<lessYou can create many categories of searches such as work and fun and customize search engines for your specific needs.
Javascript Search Aggregator remembers the last query and state of the tabs and works on any browser with JavaScript support.
Enhancements:
- Do not load last selected engine on first load
Download (0.004MB)
Added: 2006-07-09 License: BSD License Price:
1203 downloads
ff javascript library 1.11
ff javascript library is a minimal library meant to develop real-life Javascript-enabled Web sites. more>>
ff javascript library is a minimal library meant to develop real-life Javascript-enabled Web sites. ff javascript library offers a cross-brower API for all common browsers.
That is, all w3 standards compatible browsers (Mozilla/Firefox, Opera, Safari/Konqueror, etc.) on one side and Internet Explorer on the other side. At less than 7kb for the compressed Javascript version and even less than 3kb for the gzipped version, it offers quick loading even for dialup users.
Main features:
- Crossbrowser AJAX, Event and DOM functions offering the same API for w3 DOM compatible browsers and Internet Explorer.
- DOM helper functions and a DOM builder allowing to easily create complex DOM trees.
- Firebug support / emulation. If the library is executed on firefox with firebug installed it uses firebugs logging and error reporting functions -- otherwise it sets up a firebug emulation. This emulation by default does nothing and logs to a debug DIV when the URL parameter "ffdebug=1" is passed to the document.
- ScriptDoc comments enabling Code Assist functionality in Aptana
Enhancements:
- The DOM Builder supports the tabindex attribute.
- The ff.extend function was added.
- The DOM Builder ignores null arguments now.
<<lessThat is, all w3 standards compatible browsers (Mozilla/Firefox, Opera, Safari/Konqueror, etc.) on one side and Internet Explorer on the other side. At less than 7kb for the compressed Javascript version and even less than 3kb for the gzipped version, it offers quick loading even for dialup users.
Main features:
- Crossbrowser AJAX, Event and DOM functions offering the same API for w3 DOM compatible browsers and Internet Explorer.
- DOM helper functions and a DOM builder allowing to easily create complex DOM trees.
- Firebug support / emulation. If the library is executed on firefox with firebug installed it uses firebugs logging and error reporting functions -- otherwise it sets up a firebug emulation. This emulation by default does nothing and logs to a debug DIV when the URL parameter "ffdebug=1" is passed to the document.
- ScriptDoc comments enabling Code Assist functionality in Aptana
Enhancements:
- The DOM Builder supports the tabindex attribute.
- The ff.extend function was added.
- The DOM Builder ignores null arguments now.
Download (0.017MB)
Added: 2007-03-25 License: BSD License Price:
944 downloads
Kits JavaScript Brainf*ck Interpreter 0.01
Kits JavaScript Brainf*ck Interpreter is a rather fast interpreter for the Brainf*ck esoteric programming language. more>>
Kits JavaScript Brainf*ck Interpreter is a rather fast interpreter for the Brainf*ck esoteric programming language.
<<less Download (0.005MB)
Added: 2007-08-13 License: GPL (GNU General Public License) Price:
807 downloads
PHP JavaScript Tooltip Generator Class 1.1
PHP JavaScript Tooltip Generator Class is a PHP class that can generate JavaScript tooltips. more>>
PHP JavaScript Tooltip Generator Class is a PHP class that can generate JavaScript tooltips. The project works on all major browsers, but transparency is not supported on Opera.
In Internet Explorer, the tooltips show above HTML SELECT elements as they should. The appearance of the tooltips is template driven. Only onmouseover/onmousemove events need to be sepcified, not onmouseout.
Further suggestions, comments and requests are welcommed.
Id also really appreciate if you could send me links to the web pages where you are using the class so I can give them as refference and convince more people to use it. Thanks!
The code is heavily documented so you can easily understand every aspect of it
Enhancements:
- in Firefox, the tooltips were showing up in the right position only the first time; after that, the tooltips would show in the top left corner of the screen.
- "Sticky" tooltips can now be created (tooltips that follow the mouse cursor) by calling the "show" method on the onmousemove event rather than on the onmouseover event.
- In Internet Explorer, the vertical scrollbar no longer appears if a tooltip is shown.
- Automatic tooltip re-positioning has been improved in order to keep the tooltip in the visible part of the browser window if it would "flow" outside.
- There is some code cleanup.
<<lessIn Internet Explorer, the tooltips show above HTML SELECT elements as they should. The appearance of the tooltips is template driven. Only onmouseover/onmousemove events need to be sepcified, not onmouseout.
Further suggestions, comments and requests are welcommed.
Id also really appreciate if you could send me links to the web pages where you are using the class so I can give them as refference and convince more people to use it. Thanks!
The code is heavily documented so you can easily understand every aspect of it
Enhancements:
- in Firefox, the tooltips were showing up in the right position only the first time; after that, the tooltips would show in the top left corner of the screen.
- "Sticky" tooltips can now be created (tooltips that follow the mouse cursor) by calling the "show" method on the onmousemove event rather than on the onmouseover event.
- In Internet Explorer, the vertical scrollbar no longer appears if a tooltip is shown.
- Automatic tooltip re-positioning has been improved in order to keep the tooltip in the visible part of the browser window if it would "flow" outside.
- There is some code cleanup.
Download (0.047MB)
Added: 2006-11-15 License: Free for non-commercial use Price:
1080 downloads
Versatile Encoder 0.8p2
Versatile Encoder allows you to encode your own videos into good quality mpeg4 or h264. more>>
Versatile Encoder allows you to encode your own videos into good quality mpeg4 or h264. The input can be a sequence of files (as generated by blender), a file (if you want to recompress something) or a DVD/VCD (if you need to backup some movie).
This piece of software tries to guess good defaults and to help the user in his choices. It works at least under Windows and Linux, the coding platform is Linux.
It should work without a hassle under all BSD variants and probably under MacOSX too, report me if you get it working somewhere else.
<<lessThis piece of software tries to guess good defaults and to help the user in his choices. It works at least under Windows and Linux, the coding platform is Linux.
It should work without a hassle under all BSD variants and probably under MacOSX too, report me if you get it working somewhere else.
Download (0.092MB)
Added: 2006-07-10 License: BSD License Price:
1207 downloads
Javascript Browser Sniffer 0.5.1
JavaScript Browser Sniffer is a browser identifier written in JavaScript (EcmaScript) and released under the LGPL license. more>>
JavaScript Browser Sniffer is a browser identifier written in JavaScript (EcmaScript) and released under the LGPL license. It can tell your browser name, version and operating system you (the visitor) are using (its like phpsniff, but in JavaScript)
Main features:
- Microsoft Internet Explorer (should work with any version)
- Netscape 4.x, 6.x and 7.x
- Mozilla Seamonkey, Galeon, Firebird, Phoenix, Epiphany, K-Meleon, Camino and Chimera (should work with any version)
- Opera (should work with any version)
- Konqueror (should work with any version)
- Nautilus (version number is not available yet)
- Safari (should work with any version)
- Omniweb (should work with any version))
- Links (should work with any version)
- ELinks (should work with any version)
- PowerMarks (should work with any version)
- Crazy Browser (should work with any version)
- MyIE2 (should work with any version)
- Java (should work with any version)
- iCab (should work with any version)
- NetFront (should work with any version)
- Avant Browser (should work with any version)
- MSN Explorer (should work with any version)
- w3m (should work with any version) (please note that w3m only supports JavaScript on the client-side if using w3m-js)
- Netcaptor (should work with any version)
- Dillo (should work with any version) (only server-side)
- Lynx (should work with any version) (only server-side)
<<lessMain features:
- Microsoft Internet Explorer (should work with any version)
- Netscape 4.x, 6.x and 7.x
- Mozilla Seamonkey, Galeon, Firebird, Phoenix, Epiphany, K-Meleon, Camino and Chimera (should work with any version)
- Opera (should work with any version)
- Konqueror (should work with any version)
- Nautilus (version number is not available yet)
- Safari (should work with any version)
- Omniweb (should work with any version))
- Links (should work with any version)
- ELinks (should work with any version)
- PowerMarks (should work with any version)
- Crazy Browser (should work with any version)
- MyIE2 (should work with any version)
- Java (should work with any version)
- iCab (should work with any version)
- NetFront (should work with any version)
- Avant Browser (should work with any version)
- MSN Explorer (should work with any version)
- w3m (should work with any version) (please note that w3m only supports JavaScript on the client-side if using w3m-js)
- Netcaptor (should work with any version)
- Dillo (should work with any version) (only server-side)
- Lynx (should work with any version) (only server-side)
Download (0.020MB)
Added: 2006-10-19 License: GPL (GNU General Public License) Price:
652 downloads
PHP/Javascript Jigsaw puzzle 0.1
PHP/Javascript Jigsaw puzzle automatically creates jigsaw puzzles from a folder of images. more>>
PHP/Javascript Jigsaw puzzle automatically creates jigsaw puzzles from a folder of images.
Enhancements:
- javascript libary
<<lessEnhancements:
- javascript libary
Download (0.011MB)
Added: 2006-03-13 License: GPL (GNU General Public License) Price:
778 downloads
iPod Video Encoder 1.0.2
iPod Video Encoder is a command line tool for convenient encoding of video files for use on iPod video. more>>
iPod Video Encoder is a command line tool for convenient encoding of video files for use on iPod video. iPod Video Encoder project uses the ffmpeg tool for the actual encoding.
It features recursive encoding of all files in a directory, and generating a podcast.xml file for convenient use in iTunes.
It can be used in a cron job that periodically checks directories for new files and encodes them without user intervention.
Main features:
- Encoding of single files
- Optional specification of a/v bitrates
- Recursively encode all files in a directory
- Generating a podcast.xml for convenient use in iTunes
Options:
--version show programs version number and exit
-h, --help show this help message and exit
-R, --recursive Process directories recusively
-f, --force Force re-encode existing iPod videos
-t, --test Only encode first 10 seconds, to produce test videos
-e EXTENSIONS, --extensions=EXTENSIONS
Comma separated list of input extensions. Default: avi
-i IPODEXT, --ipodext=IPODEXT
iPod extension. Default: .ipod.mp4
-b VIDEO_RATE, --video-rate=VIDEO_RATE
Video bit rate, in kbps (default: 1024)
-a AUDIO_RATE, --audio-rate=AUDIO_RATE
Audio bit rate, in kbps (128)
-W WIDTH, --width=WIDTH
Video width, in pixels (default: 320)
-H HEIGHT, --height=HEIGHT
Video height, in pixels (default: 240)
-P, --pretend Do not really encode, just print out the ffmpeg
commands which would be executed
-v, --verbose Enable verbose output
Podcast options:
-p, --podcast Generate a podcast.xml file for each directory.
--podcast-documentroot=PODCAST_DOCUMENTROOT
Podcast document root; eg. /var/data/Movies/
--podcast-baseurl=PODCAST_BASEURL
Podcast base URL; eg. http://localhost/
Enhancements:
- Only uses the -e option for processing directories.
- The default ipod extension is now _ipod.mp4 for Windows compatibility.
- The README file has been extended with information on the .ipod-encoder settings file.
- The program no longer crashes when HOME is not set on Windows.
- --width and --height parameters have been added.
<<lessIt features recursive encoding of all files in a directory, and generating a podcast.xml file for convenient use in iTunes.
It can be used in a cron job that periodically checks directories for new files and encodes them without user intervention.
Main features:
- Encoding of single files
- Optional specification of a/v bitrates
- Recursively encode all files in a directory
- Generating a podcast.xml for convenient use in iTunes
Options:
--version show programs version number and exit
-h, --help show this help message and exit
-R, --recursive Process directories recusively
-f, --force Force re-encode existing iPod videos
-t, --test Only encode first 10 seconds, to produce test videos
-e EXTENSIONS, --extensions=EXTENSIONS
Comma separated list of input extensions. Default: avi
-i IPODEXT, --ipodext=IPODEXT
iPod extension. Default: .ipod.mp4
-b VIDEO_RATE, --video-rate=VIDEO_RATE
Video bit rate, in kbps (default: 1024)
-a AUDIO_RATE, --audio-rate=AUDIO_RATE
Audio bit rate, in kbps (128)
-W WIDTH, --width=WIDTH
Video width, in pixels (default: 320)
-H HEIGHT, --height=HEIGHT
Video height, in pixels (default: 240)
-P, --pretend Do not really encode, just print out the ffmpeg
commands which would be executed
-v, --verbose Enable verbose output
Podcast options:
-p, --podcast Generate a podcast.xml file for each directory.
--podcast-documentroot=PODCAST_DOCUMENTROOT
Podcast document root; eg. /var/data/Movies/
--podcast-baseurl=PODCAST_BASEURL
Podcast base URL; eg. http://localhost/
Enhancements:
- Only uses the -e option for processing directories.
- The default ipod extension is now _ipod.mp4 for Windows compatibility.
- The README file has been extended with information on the .ipod-encoder settings file.
- The program no longer crashes when HOME is not set on Windows.
- --width and --height parameters have been added.
Download (0.010MB)
Added: 2006-01-20 License: GPL (GNU General Public License) Price:
1379 downloads
JavaScript::Autocomplete::Backend 0.10
JavaScript::Autocomplete::Backend is a Google Suggest-compatible autocompletion backend. more>>
JavaScript::Autocomplete::Backend is a Google Suggest-compatible autocompletion backend.
SYNOPSYS
package MyAutocompleter;
use base qw(JavaScript::Autocomplete::Backend);
my @NAMES = qw(alice bob charlie);
sub expand {
my ($self, $query) = @_;
# do something to expand the query
my $re = qr/^Q$queryE/i;
my @names = grep /$re/, @NAMES;
(lc $query, @names, [], [""]);
}
MyAutocompleter->run;
This is a base class for implementing an autocompletion server with the same protocol used by Google Suggest ( http://www.google.com/webhp?complete=1&hl=en ). It is basically a CGI script that takes a word to be completed as the "qu" parameter and returns a specially concoted JavaScript statement. For more efficiency it should be possible to turn it into a mod_perl handler; that is left as an exercise for the reader.
The front-end JavaScript code is discussed in http://serversideguy.blogspot.com/2004/12/google-suggest-dissected.html .
This module is used by creating a subclass, which should override the expand method, which takes care of searching for the autocompletion results.
<<lessSYNOPSYS
package MyAutocompleter;
use base qw(JavaScript::Autocomplete::Backend);
my @NAMES = qw(alice bob charlie);
sub expand {
my ($self, $query) = @_;
# do something to expand the query
my $re = qr/^Q$queryE/i;
my @names = grep /$re/, @NAMES;
(lc $query, @names, [], [""]);
}
MyAutocompleter->run;
This is a base class for implementing an autocompletion server with the same protocol used by Google Suggest ( http://www.google.com/webhp?complete=1&hl=en ). It is basically a CGI script that takes a word to be completed as the "qu" parameter and returns a specially concoted JavaScript statement. For more efficiency it should be possible to turn it into a mod_perl handler; that is left as an exercise for the reader.
The front-end JavaScript code is discussed in http://serversideguy.blogspot.com/2004/12/google-suggest-dissected.html .
This module is used by creating a subclass, which should override the expand method, which takes care of searching for the autocompletion results.
Download (0.004MB)
Added: 2006-11-24 License: Perl Artistic License Price:
1068 downloads
JavaScript::Minifier 0.01
JavaScript::Minifier is a Perl translation of jsmin.c. more>>
JavaScript::Minifier is a Perl translation of jsmin.c.
SYNOPSIS
use JavaScript::Minifier;
my $obj = new JavaScript::Minifier;
$obj->minify(*STDIN, *STDOUT);
use JavaScript::Minifier qw(jsmin);
jsmin(*STDIN, *STDOUT);
This work is a translation from C to Perl of jsmin.c published by Douglas Crockford. Permission is hereby granted to use the Perl version under the same conditions as the jsmin.c on which it is based.
Refer to the JSMin website for further information: http://javascript.crockford.com/jsmin.html
Speed is a bit slower than the python version and the python and perl versions are quite a bit slower than the c version(of course).
Here are test results processing a 71K javascript file. This is one of the largest we have -- most are considerably smaller.
| wall clock seconds(approximate)
---------------------------------------
Perl: | 1.4
Python: | 1.0
C: | 0.03
Tests performed on a Intel(R) Pentium(R) 4 CPU 1.80GHz under no load.
<<lessSYNOPSIS
use JavaScript::Minifier;
my $obj = new JavaScript::Minifier;
$obj->minify(*STDIN, *STDOUT);
use JavaScript::Minifier qw(jsmin);
jsmin(*STDIN, *STDOUT);
This work is a translation from C to Perl of jsmin.c published by Douglas Crockford. Permission is hereby granted to use the Perl version under the same conditions as the jsmin.c on which it is based.
Refer to the JSMin website for further information: http://javascript.crockford.com/jsmin.html
Speed is a bit slower than the python version and the python and perl versions are quite a bit slower than the c version(of course).
Here are test results processing a 71K javascript file. This is one of the largest we have -- most are considerably smaller.
| wall clock seconds(approximate)
---------------------------------------
Perl: | 1.4
Python: | 1.0
C: | 0.03
Tests performed on a Intel(R) Pentium(R) 4 CPU 1.80GHz under no load.
Download (0.004MB)
Added: 2007-02-12 License: Perl Artistic License Price:
988 downloads
Javascript::Menu 2.02
Javascript::Menu is a NumberedTree that generates HTML and Javascript code for a menu. more>>
Javascript::Menu is a NumberedTree that generates HTML and Javascript code for
a menu.
SYNOPSIS
use Javascript::Menu;
# Give it something to do (example changes the menus caption):
my $action = sub {
my $self = shift;
my ($level, $unique) = @_;
my $value = $self->getValue;
return "getElementById(caption_$unique).innerHTML=$value";
};
# Build the tree:
my $menu = Javascript::Menu->convert(tree => $otherTree, action => $action);
my $menu = Javascript::Menu->readDB(source_name => $table, source => $dbh,
action => $action);
my $menu = Javascript::Menu->new(value => Please select a parrot,
action => $action);
my $blue = $menu->append(value => Norwegian Blue);
$blue->append(value => Pushing up the daisies);
$menu->append(value => A Snail);
# Or maybe you just want a navigational menu?
my $menu = Javascript::Menu->new(value => Please select a prime minister);
$menu->append(value => Ariel Sharon,
URL => www.corruption.org/ariel_sharon.htm);
$menu->append(value => Benjamin Netanyahu,
URL => www.corruption.org/bibi.htm);
$menu->append(value => Shaul Mofaz, URL => www.martial_law.org);
# Print it out as a right-to-left menu:
my $css = $menu->buildCSS($menu->reasonableCSS);
print $cgi->start_html(-script => $menu->baseJS(rtl),
-style => $css); #CSS plays an important role.
print $tree->getHTML;
Javascript::Menu is an object that helps in creating the HTML, Javascript, and some of the CSS required for a table-based menu. There are a few other modules that deal with menus, But as I browsed through them, I found that none of them exactly fitted my needs. So I designed this module, with the following goals in mind:
Flexibility
The main feature of this module is the ability to supply all nodes or any specific node with a subroutine that is activated in time of the code generation to help decide what the item will do when it is clicked. This allows customisation far beyond associating a link with every item. Multy-level selection menus become very easy to do (and this is, in fact, what I needed when I started writing this).
I18n
Working with i18n (internationalization) can be a big headache. Working with Hebrew (or Arabic) forces you not only to change your charachters, but also to change your direction of writing. I incorporated into this module the ability to produce right-to-left menus and tested it using a legacy ASCII-based encoding (iso-8859-8).
Object Hierarchy
I designed the module to work with two other modules of mine, Tree::Numbered and Tree::Numbered::DB, which simplify the task of building the menu and allow for construction of a menu from database information.
The current version adds support for highlighting the item thats hovered over. Youll find that having made some preliminary steps, like tweaking the CSS to look the way you like it to, the rest is fairly easy.
<<lessa menu.
SYNOPSIS
use Javascript::Menu;
# Give it something to do (example changes the menus caption):
my $action = sub {
my $self = shift;
my ($level, $unique) = @_;
my $value = $self->getValue;
return "getElementById(caption_$unique).innerHTML=$value";
};
# Build the tree:
my $menu = Javascript::Menu->convert(tree => $otherTree, action => $action);
my $menu = Javascript::Menu->readDB(source_name => $table, source => $dbh,
action => $action);
my $menu = Javascript::Menu->new(value => Please select a parrot,
action => $action);
my $blue = $menu->append(value => Norwegian Blue);
$blue->append(value => Pushing up the daisies);
$menu->append(value => A Snail);
# Or maybe you just want a navigational menu?
my $menu = Javascript::Menu->new(value => Please select a prime minister);
$menu->append(value => Ariel Sharon,
URL => www.corruption.org/ariel_sharon.htm);
$menu->append(value => Benjamin Netanyahu,
URL => www.corruption.org/bibi.htm);
$menu->append(value => Shaul Mofaz, URL => www.martial_law.org);
# Print it out as a right-to-left menu:
my $css = $menu->buildCSS($menu->reasonableCSS);
print $cgi->start_html(-script => $menu->baseJS(rtl),
-style => $css); #CSS plays an important role.
print $tree->getHTML;
Javascript::Menu is an object that helps in creating the HTML, Javascript, and some of the CSS required for a table-based menu. There are a few other modules that deal with menus, But as I browsed through them, I found that none of them exactly fitted my needs. So I designed this module, with the following goals in mind:
Flexibility
The main feature of this module is the ability to supply all nodes or any specific node with a subroutine that is activated in time of the code generation to help decide what the item will do when it is clicked. This allows customisation far beyond associating a link with every item. Multy-level selection menus become very easy to do (and this is, in fact, what I needed when I started writing this).
I18n
Working with i18n (internationalization) can be a big headache. Working with Hebrew (or Arabic) forces you not only to change your charachters, but also to change your direction of writing. I incorporated into this module the ability to produce right-to-left menus and tested it using a legacy ASCII-based encoding (iso-8859-8).
Object Hierarchy
I designed the module to work with two other modules of mine, Tree::Numbered and Tree::Numbered::DB, which simplify the task of building the menu and allow for construction of a menu from database information.
The current version adds support for highlighting the item thats hovered over. Youll find that having made some preliminary steps, like tweaking the CSS to look the way you like it to, the rest is fairly easy.
Download (0.025MB)
Added: 2006-06-12 License: Perl Artistic License Price:
1235 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above stunnix javascript obfuscator encoder 4.2 search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed