473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

window.yzq_a

Hi,
Can anyone please tell me what is window.yzq_a? It is often used like
in "if(window.yzq_a == null)". Does it check if a window is open or is
that something else?

Thanks,
~Parthi.

Sep 23 '05 #1
4 1260
Parthi said the following on 9/23/2005 2:58 AM:
Hi,
Can anyone please tell me what is window.yzq_a? It is often used like
in "if(window.yzq_a == null)". Does it check if a window is open or is
that something else?


It is checking a custom property of the window object. Probably a
variable. Can you give a URL to a page that uses it?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 23 '05 #2
Thanks for the quick reply.
I found one URL:
http://sports.groups.yahoo.com/group...ub/message/669

Sep 23 '05 #3
Parthi said the following on 9/23/2005 3:23 AM:
Thanks for the quick reply.
I found one URL:
http://sports.groups.yahoo.com/group...ub/message/669


View the source. Somewhere in that 423 lines of garbage HTML code you
will find somewhere where it either defines it or doesn't. And then
based on that variable, it writes a garbage script tag, probably for the
ads.

I *can* tell you this though, it is not a normal feature of the window
object, it is something specific to that site.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 23 '05 #4
Parthi wrote in message news:11*********************@g47g2000cwa.googlegro ups.com...
Thanks for the quick reply.
I found one URL:
http://sports.groups.yahoo.com/group...ub/message/669


if I hadn't read Randy's previous post, I would have no idea
what you're talking about.

You need to quote relevant information for others to understand
what is going on.

now, on the page you mentioned, there is the following line:
if (window.yzq_a == null) document.write("<scr" +
"ipt type=text/javascript src=http://us.js1.yimg.com/us.yimg.com/lib/bc/bc_1.7.0.js></scr" +
"ipt>");

what this does, it checks if there is an object named yzq_a,
and if not (or is "== null") then write a line to load the file
http://us.js1.yimg.com/us.yimg.com/lib/bc/bc_1.7.0.js.

in that file you will find the following line:

function yzq_a(p,v){var w=window;if(w.yzq1==null)w.yzq1=new Object();var d=w.yzq1;if(p=='a')p+=Math.random();if(d[p]==null)d[p]=v;}

so now window.yzq_a is a function and not "== null" anymore

now on a line further down the page you find something like
if (window.yzq_a)
{
yzq_a('p', 'P=WiSZlkLa[...]'); /* I removed stuff and */
yzq_a('a', '&U=13apl03[...]'); /* replaced it by [...] */
}

this now runs the function with different parameters since the
function is available.
HTH
Sep 24 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Carol Lyn | last post by:
Could use your assistance with this. I have a window that opens via onclick and it is a small window with info about a site. If the user is interested in visiting that site, there is a link to...
6
by: David Hayes | last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12 AM): > > >I want to maximize the browser...
19
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). ...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
26
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized...
4
by: alexandre.brisebois | last post by:
Hi, I am using access 2003, I would like to know if there is an option to reorganize the tables in a maner that is readable, as we can do in sql sever 2000 or 2005. I have been given a database...
5
by: asadhkhan | last post by:
I have the following code which works correctly in IE 6, but in IE 7, Fire Fox 2.0 and Netscape 8 it does not work. I have a main page where a button calls this pop-up and uploads a file once you...
24
by: Jeremy J Starcher | last post by:
While reading c.l.j, I've noticed that some people prefer and indeed even recommend the use of "window.alert()" over "alert()". I can't find any technical reason to make this distinction, and...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.