Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 92061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:07:40+00:00 2026-05-10T23:07:40+00:00

I’ve been tasked with rewriting the Javascript engine currently powering my customer’s internal website.

  • 0

I’ve been tasked with rewriting the Javascript engine currently powering my customer’s internal website. While reviewing the code I’ve come across this function flvFPW1 which I do not recognize, nor can I decipher the code(my Javascript knowledge is modest at best). A Google search gives me a few hits, but most if not all page hits are from the Javascript used on that particular page. In other words, I cannot find a description for this function, even though it is obviously used by others.

Can someone here enlighten me?

Thanks / Fredrik

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:07:41+00:00Added an answer on May 10, 2026 at 11:07 pm

    My own research agrees that it’s a dreamweaver extension: I found code for version 1.44 (scroll down some on this page) rather than 1.3:

    function flvFPW1(){//v1.44 var v1=arguments,v2=v1[2].split(','),v3=(v1.length>3)?v1[3]:false,v4=(v1.length>4)?parseInt(v1[4]):0, v5=(v1.length>5)?parseInt(v1[5]):0,v6,v7=0,v8,v9,v10,v11,v12,v13,v14,v15,v16;v11= new Array('width,left,'+v4,'height,top,'+v5);for (i=0;i<v11.length;i++){v12=v11[i].split(',');l_iTarget=parseInt(v12[2]); if (l_iTarget>1||v1[2].indexOf('%')>-1){v13=eval('screen.'+v12[0]); for (v6=0;v6<v2.length;v6++){v10=v2[v6].split('='); if (v10[0]==v12[0]){v14=parseInt(v10[1]);if (v10[1].indexOf('%')>-1){v14=(v14/100)*v13;v2[v6]=v12[0]+'='+v14;}} if (v10[0]==v12[1]){v16=parseInt(v10[1]);v15=v6;}} if (l_iTarget==2){v7=(v13-v14)/2;v15=v2.length;} else if (l_iTarget==3){v7=v13-v14-v16;}v2[v15]=v12[1]+'='+v7;}}v8=v2.join(',');v9=window.open(v1[0],v1[1],v8); if (v3){v9.focus();}document.MM_returnValue=false;return v9;} 

    Which was, of course, passed through a compressor to save bandwidth making it very hard to read. I spent a little bit of time un-obfuscating it before I realized that I could get better results by adding ‘dreamweaver’ to my search string. Doing that I was able to find some more interesting documentation:

    http://www.flevooware.nl/dreamweaver/extdetails.asp?extID=8 (short description) http://satsuki.altervista.org/basibloggers/source40.txt (full script code, in italian)

    In short: it’s basically just a wrapper for window.open. Here’s the progress I made translating the code:

    function flvFPW1() {//v1.44     var v1=arguments;  // pass v1[0] and v1[1] directly to window.open     var arg3=v1[2].split(',');     var focusNewWindow=(v1.length>3)?v1[3]:false;     var newWindowWidth=(v1.length>4)?parseInt(v1[4]):0;     var newWindowHeight=(v1.length>5)?parseInt(v1[5]):0;      var adjustedWindowPosition=0,result,keyValuePair,AxisProperty;     var windowSize,sizeValue,arg3Index,anchorValue;      var hwArray= new Array('width,left,'+newWindowWidth,'height,top,'+newWindowHeight);     for (i=0;i<hwArray.length;i++)  // x-axis, then y-axis     {         AxisProperty=hwArray[i].split(','); // {'width', 'left', 0}  or {'height', 'top', 0}         l_iTarget=parseInt(AxisProperty[2]);  // l_iTarget defined where?          if (l_iTarget>1||v1[2].indexOf('%')>-1)           {             screenSize=eval('screen.'+AxisProperty[0]); // x or y size of the window             for (var i=0;i<arg3.length;i++)             {                 keyValuePair=arg3[i].split('=');                 if (keyValuePair[0]==AxisProperty[0]) // if the key is (width|height)                 {                     sizeValue=parseInt(keyValuePair[1]);                     if (keyValuePair[1].indexOf('%')>-1)                     {                         sizeValue=(sizeValue/100)* screenSize;                         arg3[i]=AxisProperty[0]+'='+sizeValue;                     }                 }                  if (keyValuePair[0]==AxisProperty[1])  // if the key is (left|top)                 {                     anchorValue=parseInt(keyValuePair[1]);                     arg3Index=i;                 }             }             if (l_iTarget==2)             {                 adjustedWindowPosition=(screenSize-sizeValue)/2; // will center the window on this axix                 arg3Index=arg3.length;             }             else if (l_iTarget==3)             {                 adjustedWindowPosition= screenSize-sizeValue-anchorValue;             }             arg3[arg3Index]=AxisProperty[1]+'='+adjustedWindowPosition;  // (left|top) = value         }     }     var newArg3=arg3.join(',');     result=window.open(v1[0],v1[1],newArg3);     if (focusNewWindow)     {         result.focus();     }      document.MM_returnValue=false;     return result; } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 119k
  • Answers 119k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It looks to me as if the file was saved… May 11, 2026 at 11:48 pm
  • Editorial Team
    Editorial Team added an answer You can use goto, but the moment you do that… May 11, 2026 at 11:48 pm
  • Editorial Team
    Editorial Team added an answer That should work, can you clarify what you mean by… May 11, 2026 at 11:48 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.