If the given string is matched then I passed the browser name in the browser variable. Now I got which browser being used by the user. After I got it, simply I selected this browser class name which is an img tag and gave opacity 1.
You might like this:
You can download the source code files of Detect Browser program from this given link. Click here to download code files.