Transparent drop-down menu (2)

zhaozj2021-02-16  72

For (var i = 1; i <= 8; i ) {preloaded [i] = [loadImage (i "-1.gif"), loadImage (i "-1.gif")]; // set picture Path of OnMouseover and OnMouseout}

Function init () {

IF (mtdropdown.issupported ()) {mtdropdown.initialize ();

// Menu1.onActivate = function () {swapimage ("Button1", preloaded [1] [1] .src)}; // menu1.ondeactivate = function () {swapimage ("Button1", preloaded [1] [0 ] .src)};

// menu2.onactivate = function () {swapimage ("button2", preloaded [2] [1] .src)}; // menu2.ondeactivate = function () {swapimage ("button2", preloaded [2] [0 ] .src)};

// menu3.onactivate = function () {swapimage ("Button3", preloaded [3] [1] .src)}; // menu3.ondeactivate = function () {swapimage ("Button3", preloaded [3] [0 ] .src)};

// Menu4.onactivate = function () {swapimage ("Button4", preloaded [4] [1] .src)}; // menu4.ondeactivate = function () {swapimage ("Button4", preloaded [4] [0 ] .src)};

// menu5.onactivate = function () {swapimage ("Button5", preloaded [5] [1] .src)}; // menu5.ondeactivate = function () {swapimage ("Button5", preloaded [5] [0 ] .src)};

// Menu6.onActivate = function () {swapimage ("Button6", preloaded [6] [1] .src)}; // menu6.ondeactivate = function () {swapimage ("Button6", preloaded [6] [0 ] .src)};

// Menu7.onactivate = function () {swapimage ("Button7", preloaded [7] [1] .src)}; // menu7.ondeactivate = function () {swapimage ("Button7", preloaded [7] [0 ] .src)}; // menu8.onactivate = function () {swapimage ("Button8", preloaded [8] [1] .src)}; // menu8.ondeactivate = function () {swapimage ("Button8", preloaded [8] [0] .SRC)};

Function loadImage (sfilename) {var img = new image (); img.src = " sfilename; returnim;}

Function swapimage (imgname, sfilename) {document.Images [imgname] .src = sfilename;} // ->

转载请注明原文地址:https://www.9cbs.com/read-15961.html

New Post(0)