home *** CD-ROM | disk | FTP | other *** search
Wrap
<ccResource> <ccTitle> Browser ID </ccTitle> <ccCategory> Browser </ccCategory> <ccDescription> This Script allows the visitor to click on the buttons to display their browser's info. </ccDescription> <ccInstructions> Just put the beginning of this script between your pages open and closing head tags and the later part in the body where you want it displayed in your page. </ccInstructions> <ccHeadContent> <script> <!-- function CC_getBrowserName() { document.forms[0].elements[0].value =navigator.appName; } function CC_getBrowserVersion() { document.forms[0].elements[0].value = navigator.appVersion; } function CC_getBrowserCodeName() { document.forms[0].elements[0].value = navigator.appCodeName; } function CC_getBrowserUserAgent() { document.forms[0].elements[0].value = navigator.userAgent; } function CC_getBrowserNameVersion() { document.forms[0].elements[0].value = navigator.appName + " " + navigator.appVersion; } // --> </script> </ccHeadContent> <ccBodyContent> <center> <form NAME="detect"> <input TYPE="text" NAME="browser" SIZE="26" MAXLENGTH="40" VALUE="Browser Detection"><br> <br><br>Choose a button to reveal your browser's self image.<br> <input TYPE="button" VALUE="appName" onClick="CC_getBrowserName()"> <input TYPE="button" VALUE="appVersion" onClick="CC_getBrowserVersion()"> <input TYPE="button" VALUE="appCodeName" onClick="CC_getBrowserCodeName()"> <input TYPE="button" VALUE="userAgent" onClick="CC_getBrowserUserAgent()"> <input TYPE="button" VALUE="appName / appVersion" onClick="CC_getBrowserNameVersion()"><br><br><br> </form> </center><p> </ccBodyContent> <ccElementContent> <ccElementName></ccElementName> <ccElementAction></ccElementAction> </ccElementContent> <ccExtraData> </ccExtraData> </ccResource>