一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

动态按钮生成器(下)

时间:2022-06-30 09:51:07 编辑:袖梨 来源:一聚教程网

由于内容超长,只好分2次贴出,以下为下半部分:
Images.length+=1;for(var b=Images.options.length-1;b>g;b--)
{Images.options[b].text=Images.options[b-1].text;}Images.options[g+1].text=Imagi[g+1].Name;CleanBoxes(window.document.mouseOverForm);}}}else
{if(Images.length!=0)
{var g=-1;var r=no_of_images;Imagi[r]=new ImageObject(Imagi[r-1].Name,Imagi[r-1].OffSrcPro,Imagi[r-1].OffSrc,Imagi[r-1].OnSrcPro,Imagi[r-1].OnSrc,Imagi[r-1].Width,Imagi[r-1].Height,Imagi[r-1].Alt,Imagi[r-1].Border,Imagi[r-1].URL,Imagi[r-1].LinkTarget);for(var p=Imagi.length-2;p>g;p--)
{Imagi[p].Name=Imagi[p-1].Name;Imagi[p].OffSrcPro=Imagi[p-1].OffSrcPro;Imagi[p].OffSrc=Imagi[p-1].OffSrc;Imagi[p].OnSrcPro=Imagi[p-1].OnSrcPro;Imagi[p].OnSrc=Imagi[p-1].OnSrc;Imagi[p].缺少项目!")
}}}function CheckIt(array,string){if(array==null||array=="")
variable="";else
variable=string+array+""";return variable;}function generateIt() {if (document.mouseOverForm.Images.length != 0) {HeadCode = "T LANGUAGE="Javascript">" + "<" + "!-" + "-Hide";HeadCode += "//http://www.njcatv.net/javascript/dai5.htm";HeadCode += "function isCompatible()" + "{" + "var BrowserName=navigator.appName;" + "var BrowserVer=parseInt(navigator.appVersion);" + "var Compatible=(BrowserName=="Netscape"&&BrowserVer==3)||(BrowserName=="Netscape"||BrowserVer==4)||(BrowserName=="Microsoft Internet Explorer"||BrowserVer==4)" + "return Compatible;" + "}";HeadCode += "function flipIt(img,tothis)" + "{" + "if(isCompatible())" + "{" + "img.src=tothis.src;" + "}" + "}";BodyCode = "";for (var count = 0; count < Imagi.length; count++) {var xName = Imagi[count].Name;var xNameOff = Imagi[count].OffSrcPro + Imagi[count].OffSrc;var xNameOn = Imagi[count].OnSrcPro + Imagi[count].OnSrc;var Target = CheckIt(Imagi[count].LinkTarget, "TARGET="");var Border=CheckIt(Imagi[count].Border," BORDER="");var Alt = CheckIt(Imagi[count].Alt, "ALT="");var );var );var MouseOver="onMouseOver="flipIt(document." + xName + "," + xName + "On);"";

热门栏目