Forum Moderators: open

Message Too Old, No Replies

yahoo code what is it?

yahoo,code,if (document.referrer && (document.referrer!='') && window.Image

         

webmasterjedi

4:46 pm on Mar 29, 2004 (gmt 0)

10+ Year Member



when i view source of my yahoo store i get a code that i dont know what it is maybe someone can help?
\this is the code

if (document.referrer && (document.referrer!='') && window.Image)

webmasterjedi

5:51 pm on Mar 29, 2004 (gmt 0)

10+ Year Member



i dont know

webmasterjedi

5:51 pm on Mar 29, 2004 (gmt 0)

10+ Year Member



someone please help!

RonPK

7:27 pm on Mar 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Greetings, Jedi. Don't worry, your post will be read. It may be helpful to post a little bit more of the code, like the next lines. It is hard to tell what a script does without seeing the code.

webmasterjedi

9:31 pm on Mar 29, 2004 (gmt 0)

10+ Year Member



o sorry this is the full code i really appreciate you time in helping me figure this out.
----------------------------------------------------
<script language="javascript">
<!--
if (document.referrer && (document.referrer!='') && window.Image)
{
(new Image).src="http://redirect1.vip.store.yahoo.com/cgi-bin/referadd?spcl=1&et=40684d34&catalog=ustronics&r=" + escape(document.referrer); }
// -->
</script>
----------------------------------------------------
i think it might be yahoo trying to mess with our stores traffic.
thanks in advanced

Rambo Tribble

11:42 pm on Mar 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The JavaScript in question appears to be checking to see if there is a value for a referrer object and whether it and an image or images are part of the document. Then it calls a new image with a server script from Yahoo!

Not knowing much about Yahoo!, I can't say for sure, but this appears to be part of tracking the referrals from other sites to yours.