Quiz software, teaching tools, exam revision aids, learning games, courseware authoring
Java Menus
Java menu homeJava downloadBuy a java menuJava menu help centreContact us
Java menus » Java menu knowledge base

 SEARCH

 MENUS BY TYPE

 Drop-down menus

 Animated buttons

 Tree menus

 Sliding menus

 Tab menus

 Image maps

 MENUS BY NAME

 X-Bar menus

 iPOP menus

 iSlide menus

 iTree menus

 iTab menus

 iMMap menus

 Sensomap menus

 Magic menus

 MENU DESIGN

 Menu design

 Drop-down menus

 Web buttons

 Tree menus

 Sliding menus

 Menu tabs

 Image maps

 SITE LINKS

 Home

 Java downloads

 Prices / Buying

 Support

 Company

 Contact

 New menus

 Free menus

 PARTNER SITES

 Alien Menus

 Happy Menus
Java menu knowledge base
Scripting around applets
Return to knowledge base directory

 
Activating javascripts from a menu applet
 
Many of our applets can activate javascripts attached to individual entries, just like HTML hyperlinks.
 
How to do it
 
If you look at your index file with a simple text editor, you may see some entries that look like:
"LINK:myPage.htm,myFrame"
Replace this with:
"SCRIPT:myFunction()"
and then write a javascript function on your page called myFunction(). You can also combine such script commands with page loads and other commands: "LINK:myPage.htm,myFrame;SCRIPT:myFunction()"
The above loads a page into a frame and then triggers a javascript. Note that the javascript must be in the same page as the applet, unless you use the normal javascript commands for accessing other frames and windows.
 
Other things to know
 
(1) Very ancient browsers (like version 3 or older) can't do this.
(2) We cannot help you write javascripts.
(3) Further information on index file writing is here.
(4) This feature is not supported by Mac IE using the MRJ/OS9.
 
java menu