1 2 3 4 5 6 7 8 9 | <?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml"...more namespace declarations go here...> <head> ...head contents go here... </head> <body> ...body contents go here... </body> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # <?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml" ...more namespace declarations go here....> <head> <script src="xforms-check.js"></script> ...more head content go here... </head> <body> ...body contents go here.. </body> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | if (isFirefox()) { if (hasMozXForms()) { message('Firefox: XForms add-on is installed'); return; } var xpi =''; var rel = '0.8'; var relName='Mozilla XForms ' + rel + ' Release Extension'; var relURL='...'; if (navigator.platform == 'Win32') { xpi={relName : relURL + '_win.xpi'}; } else if (navigator.platform == 'Linux') { xpi={relName : relURL + '_linux.xpi'}; } else if (navigator.platform == 'MacOSX') { xpi={relName : relURL + 'macosx.xpi'}; } /* If appropriate platform, start the installer. Let the installer handle browser version checks. */ if (xpi != '') { message('Firefox: Installing XForms add-on...'); InstallTrigger.install(xpi); } else { alert('Firefox: Mozilla XForms not available for your browser platform'); } |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |