home *** CD-ROM | disk | FTP | other *** search
- <HTMLtool>Shaula Haitner's Rollover</HTMLtool>
- <HTML>
-
- <HEAD>
- <title></title>
- <!-- the only tailoring needed is to adapt the names convention.
- any image of the original set will have a name of the type ico1a, ico2a, etc..
- any image of the corresponding replacing set will have the name ico1b, ico2b, etc..
- the name of the image will be of the type a1, a2, a3
- e.g for the image ico1a.gif its name should be a1
- and the replacing image should be ico1b.gif. The parameter for
- mouseover and mouseout for this image should be 1.
- The width check is needed to do the replacement only after the image has been loaded.
- the minimum width should be larger than 45 ( width of unknown image).
- gif images involved in roll over shouldn't be interlaced for aestetic reasons.
- -->
-
- <script>
- <!--
- // written by Shaula Haitner general detector for DHTML
-
- browser4=false; browser3=false; roll=false;
- if( navigator.appVersion.indexOf("X11") == -1){ //check if not unix
-
- if(navigator.appName == "Netscape" ) {
- if(parseInt(navigator.appVersion) >= 4) {
- browser4 = true; sug="netscape" ; roll=true;
- }
- else if(parseInt(navigator.appVersion) == 3) {browser3 = true; browser4=false ;roll=true; // good for roll-over for netscape3
- } }
-
- else if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.indexOf("Macintosh") == -1) {
- if(parseInt(navigator.appVersion) >= 4) {
- browser4=true ; roll=true ;
- }}}
- if (roll) {
- var max=8; var meteg=-1;
- var imgb = new Array (max) ;
- for (var i=0 ; i <=max ; i++) {
- imgb[i] = new Image;}}
-
- function load() {
- if (roll) {
-
- // preload navigation bar images for replacing images
-
- imgb[1].src="ico1b.gif";
- imgb[2].src="ico2b.gif";
- imgb[3].src="ico3b.gif";
- imgb[4].src="ico4b.gif";
- imgb[5].src="ico5b.gif";
- imgb[6].src="ico6b.gif";
-
-
- }}
-
-
- function ovr(i) {
- if (roll) {
- if(imgb[i].width > 130 ) { // check if image has been loaded
-
- eval ('document.images["a' + i + '"].src' + "= imgb[i].src" ) ; // replaces original with roll over image
- meteg=i ; // just in case of conflict
- }}}
-
- function out(i) {
- if (roll) {
- if (meteg==i) {
- eval ('document.images["a' + i +'"].src' + ' ="ico' + i + 'a.gif" ') ; // restores original image
- }}}
-
- // stop hiding -->
-
- </script>
- <BODY onLoad=load() bgcolor=white>
- <table cellpadding=0 cellspacing=0 border=0 >
-
- <tr><td><a href="0600.htm" onMouseOver="ovr(6)" onMouseOut="out(6)" target=body1><IMG SRC="ico6a.gif" WIDTH=146 HEIGHT=44 name="a6" border=0></a></td></tr>
- <tr><td><a href="0100.htm" onMouseOver="ovr(1)" onMouseOut="out(1)" target=body1><IMG SRC="ico1a.gif" WIDTH=146 HEIGHT=50 name="a1" border=0></a></td></tr>
- <tr><td><a href="0500.htm" onMouseOver="ovr(5)" onMouseOut="out(5)" target=body1><IMG SRC="ico5a.gif" WIDTH=146 HEIGHT=50 name="a5" border=0></a></td></tr>
- <tr><td><a href="0200.htm" onMouseOver="ovr(2)" onMouseOut="out(2)" target=body1><IMG SRC="ico2a.gif" WIDTH=146 HEIGHT=52 name="a2" border=0></a></td></tr>
- <tr><td><a href="0400.htm" onMouseOver="ovr(4)" onMouseOut="out(4)" target=body1><IMG SRC="ico4a.gif" WIDTH=146 HEIGHT=46 name="a4" border=0></a></td></tr>
- </table>
-
-
- </BODY>
-
- </HTML>