Skip to Content

Introduction

Following up of my last article “how to display animated Logo in the masthead” https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5086. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]

This article is for displaying the animated logo
in the portal Login Page. The idea behind this article is to check whether FLASH is installed on the end user machine to display the animated logo. If FLASH is
not installed then display the ordinary image

By Birla Bose, SAP Netweaver Consultant,

Satyam Computer Services Limited.

 

The below sample code would identify whether FLASH is
installed or not on the client user machine at runtime. Based on this we can display animated image if FLASH is installed else display the normal image.

The below code should be placed in the umLogonBotArea.txt
which is inside the com.sap.portal.runtime.logon.par.


<!– // FLASH Installation Check code Starts Here ></pre><pre> </pre><pre><script language=”JavaScript” type=”text/javascript”></pre><pre> </pre><pre><!


// –


// Globals

// Major version of Flash required

var requiredMajorVersion = 5;

// Minor version of Flash required

var requiredMinorVersion = 0;

// Minor version of Flash required

var requiredRevision = 0;

// the version of javascript supported

var jsVersion = 1.0;


// –



// ></pre><pre></script></pre><pre><script language=”VBScript” type=”text/vbscript”></pre><pre><! // Visual basic helper required to detect Flash Player ActiveX control version information

Function VBGetSwfVer(i)

  on error resume next

  Dim swControl, swVersion

  swVersion = 0

 

  set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i))

  if (IsObject(swControl)) then

    swVersion = swControl.GetVariable("$version")

  end if

  VBGetSwfVer = swVersion

End Function


// ></pre><pre></script></pre><pre> </pre><pre> </pre><pre><script language=”JavaScript1.1″ type=”text/javascript”></pre><pre> </pre><pre><! // Detect Client Browser type

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply