SEO | Link Popularity | Search Engine Consulting | SEO Tutorial | SEO Tools | SEO Forum
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-26-2004, 11:17 PM
clasione's Avatar
clasione clasione is offline
SEO
 
Join Date: Apr 2004
Location: New York USA
Posts: 189 clasione is on a distinguished road
Send a message via MSN to clasione
Someone screwing with me?

I found this javascript in an HTML page on one of my larger high traffic sites....

Java was stuck in the middle of page.....

Take a look - Anyone know what someone was upto???

What does this script look like it does....

To me - seems to be some type of affiliate id in there....

<script language="JavaScript">

var wv_gstrWidth = "430";
var wv_gstrHeight = "378";
var wv_gstrUI = "UI0001";
var wv_gstrNewWindow = "yes";
var wv_gstrHost = "as00.estara.com";
var wv_host = wv_gstrHost=="as00.estara.com" ? "" : wv_gstrHost; // Specify host if not production
var wv_gstrAccountID = "20010229";
var wv_goWindow = null;

function PTTbutton(left,top,template,image)
{
var id = "RANDOMID" + (new Date()).getTime() + Math.round(Math.random()*1000000);
var div = '<DIV ID="' + id + '" STYLE="position:absolute; z-index:10; left:' + left + 'px; top:' + top + 'px;">';
div += '<a href="javascript:webVoicePop(\'Template=' + template + '\');"><img src="' + image + '" border="0"></a>';
div += '</DIV>';
document.write(div);
}

function webCall()
{
if (wv_goWindow==null || wv_goWindow.closed)
{
var wv_argscopy = arguments;
wv_argscopy[wv_argscopy.length++] = "calltype=webcall";
wv_goWindow = wv_start(wv_argscopy);
}
}

function webCallBack()
{
var wv_argscopy = arguments;
wv_argscopy[wv_argscopy.length++] = "calltype=webcallback";
wv_goWindow = wv_start(wv_argscopy);
}

function webVoicePop()
{
var wv_argscopy = arguments;
wv_argscopy[wv_argscopy.length++] = "calltype=webvoicepop";
wv_start(wv_argscopy);
}

function webChatPop()
{
var wv_argscopy = arguments;
wv_argscopy[wv_argscopy.length++] = "calltype=webchatpop";
wv_argscopy[wv_argscopy.length++] = "wndname=_blank";
wv_start(wv_argscopy);
}

function wv_start(a)
{
var wv_wndname = "webVoiceWindow";
var wv_referrer = escape(window.location);
if (wv_referrer.length>350)
{
var wv_tmp = (window.location).toString().indexOf("?");
wv_referrer = wv_tmp>0 ? escape(wv_referrer.substring(0,wv_tmp)+"---TRUNCATED") : escape("UNAVAILABLE - URL IS TOO LONG");
if (wv_referrer.length>350)
{
wv_referrer = escape("UNAVAILABLE - URL IS TOO LONG");
}
}
var wv_protocol = "http";
var wv_newwindow = wv_gstrNewWindow;
var wv_width = wv_gstrWidth;
var wv_height = wv_gstrHeight;
var wv_ui = wv_gstrUI;
var wv_features = "";
var wv_baseurl = "";
var wv_accountid = wv_gstrAccountID;
var wv_getRequest = "";
for (var i=0 ; i<a.length ; i++)
{
var wv_Arg = a[i].toString();
var wv_indexDelim = wv_Arg.indexOf("=");
if (wv_indexDelim!=-1)
{
var Name = (wv_Arg.substring(0,wv_indexDelim)).toLowerCase();
var Value = wv_Arg.substring(wv_indexDelim+1,wv_Arg.length);
switch(Name)
{
case "wndname": wv_wndname = Value;
break;
case "referrer": wv_referrer = escape(Value);
break;
case "newwindow": wv_newwindow = Value;
break;
case "width": wv_width = Value;
break;
case "height": wv_height = Value;
break;
case "accountid": wv_accountid = Value;
break;
case "wv_ui": wv_ui = Value;
break;
case "features": wv_features = Value;
break;
case "baseurl": wv_baseurl = Value;
break;
default: wv_getRequest += "&" + Name + "=" + escape(Value);
break;
}
}
else
{
alert("ERROR: Invalid argument passed to webXXX() function - Arg" + i + " is missing '=' sign : " + wv_Arg );
return null;
}
}

if (wv_baseurl=="") wv_baseurl = wv_protocol + "://" + wv_gstrHost + "/UI/" + wv_ui + "/" + wv_ui + ".php";
if (wv_features=="") wv_features = "width=" + wv_width + ",height=" + wv_height + ",menubar=no,toolbar=no,directories=no,scrollbars=n o,status=no,left=0,top=0,resizable=no";
wv_getRequest = wv_baseurl +
( wv_baseurl.indexOf("?")==-1 ? "?" : "&" ) +
"donotcache=" + (new Date()).getTime() +
"&accountid=" + wv_accountid +
"&referrer=" + wv_referrer +
"" +
wv_getRequest;

if (wv_newwindow!="yes")
{
window.location = wv_getRequest;
}
else
{
return window.open( wv_getRequest, wv_wndname, wv_features );
}
}
</script>
Reply With Quote
  #2  
Old 09-27-2004, 01:01 AM
Cyber-SEO's Avatar
Cyber-SEO Cyber-SEO is offline
Chillin Like A Villan
 
Join Date: May 2004
Posts: 275 Cyber-SEO is on a distinguished road
This looks like its the code for a Talk Button with http://www.estara.com/

In order for the button to be displayed you would have to call the function PTTbutton.

Maybe you added this code a while ago and forgot all about it?
__________________
Rentals
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Login/Register
User Name
Password
Remember Me?

Forum Links
Forum Home
SEO Forum
Internet Marketing Forum
Web Design Forum
Web Hosting Forum
Programming Forum
SEO Chat

Quick Links
Forum Home
New Posts
Mark Forums Read
Open Buddy List
User Control Panel
Edit Avatar
Edit Profile
Edit Options
Miscellaneous
Subscribed Threads
My Profile

Search Forums

Advanced Search
All times are GMT -8. The time now is 03:52 PM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.