//ALL CONTENT & CODE COPYRIGHT 2000 PANKPAGES:
function generate() {
// form var's
// on image flips
img1on=document.data.image1on.value
img2on=document.data.image2on.value
//off image flips
img1off=document.data.image1off.value
img2off=document.data.image2off.value
//image url's
img1url=document.data.image1url.value
img2url=document.data.image2url.value
//other image flips
otherdefault=document.data.otherdefault.value
otherimage1=document.data.other1.value
otherimage2=document.data.other2.value
//misc. var's
begin="<"
end=">"
quote="\""
// output code
output=begin+"\!"+"--  start copy and paste here  //--"+end+"\n\n<Script Language="+quote+"Javascript"+quote+">"
+"\napp="+quote+"'"+quote+";"+
"\nloaded=false;"
+"\nif (document.images) {"
//begin image on source
+"\n\n"+"image1on = new Image();"+
"\nimage1on.src="+quote+img1on+quote+";"
+"\nimage2on = new Image();"+
"\nimage2on.src="+quote+img2on+quote+";"
//begin image off source
+"\n\nimage1off = new Image();"+
"\nimage1off.src="+quote+img1off+quote+";"
+"\nimage2off = new Image();"+
"\nimage2off.src="+quote+img2off+quote+";"
//define other image default
+"\n\notherImageDefault = new Image();"+
"\notherImageDefault.src ="+quote+otherdefault+quote+
//begin other images for dual flip
"\n\notherImage1 = new Image();\n"
+"otherImage1.src ="+quote+otherimage1+quote+
"\n\notherImage2 = new Image();\n"
+"otherImage2.src ="+quote+otherimage2+quote+
//end function
"\n\n\n}"+"\nfunction changeImages() {"+
"\nif (document.images) {"
+"\nfor (var i=0; i<changeImages.arguments.length; i+=2) {"+
"\ndocument[changeImages.arguments[i]].src = eval"+"\n(changeImages.arguments[i+1] +"+quote+".src"+quote+");"
+"\n }  }}"+
//scritp end
"\n\n"+begin+"/script>\n\n"+
begin+"\!"+"--  stop copying here  //--"+end
//output form one, main script
document.data.output.value = output
//url output2 for images
output2=begin+"\!"+"--  start copy and paste here  //--"+end+"\n"
//other image default warning!!
+begin+"\!"+"--you MUST Name your default other image otherImage//--"+end+
//define other image default
"\n\n<img src="+quote+otherdefault+quote+" Name="+quote+"otherImage"+quote+" border=0>"+
//img one url
"\n\n<a href="+quote+img1url+quote+" onMouseOver="+quote+"changeImages('image1', 'image1on', 'otherImage', 'otherImage1')"+quote
+"\n onMouseOut="+quote+"changeImages('image1', 'image1off', 'otherImage', 'otherImageDefault')"+quote+end+
"\n<img src="+quote+img1off+quote+" Name="+quote+"image1"+quote+" border=0></a>"+
//img two url
"\n\n<a href="+quote+img2url+quote+" onMouseOver="+quote+"changeImages('image2', 'image2on', 'otherImage', 'otherImage2')"+quote
+"\n onMouseOut="+quote+"changeImages('image2', 'image2off', 'otherImage', 'otherImageDefault')"+quote+end+
"\n<img src="+quote+img2off+quote+" Name="+quote+"image2"+quote+" border=0></a>\n\n"
+begin+"\!"+"--  stop copying here  //--"+end
document.data.output2.value = output2
} 