Welcome to WebmasterWorld Guest from 18.204.48.199

Forum Moderators: martinibuster

Message Too Old, No Replies

Mediabot Reads Javascript?

Go figure

     
5:08 am on Feb 17, 2005 (gmt 0)

Full Member

10+ Year Member

joined:Dec 18, 2004
posts:321
votes: 0


I have a small local travel site, and recently added a "DATE" javascript in the top left corner on the index page for my visitors convenience.
I then added a leaderboard below the title. When I went to check the index page yesterday, all the ads were for a "dating service" I thought, "What in the world?"

So I opened up Dreamweaver and did a search for "date" and the word "date" showed up 5 times in the javascript, and not anywhere else on the page.

So, now I'm thinking, would my visitors be interested in dating? Or should I remove it for more relevent ads?

I had no idea the Mediabot read "javascripts." I wonder if this would be useful for pages that get some really irrevelent ads? What do you think?

1:02 pm on Feb 17, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 28, 2004
posts:105
votes: 0


IMHO Googlebot does not parse JavaScript, I think that now it can collect links from it , but that's not the same as understanding-reading the content of a javascript.
1:23 pm on Feb 17, 2005 (gmt 0)

Full Member

10+ Year Member

joined:Dec 18, 2004
posts:321
votes: 0


Here's the lines that have the word "date" in them. I don't see a link here.

var now = new Date();

var date = ((now.getDate()<10)? "0" : "")+ now.getDate();

today = days[now.getDay()] + ", " +
months[now.getMonth()] + " " +
date + ", " +
(fourdigits(now.getYear())) ;

I guess these "dating" ads deserve some testing, right? Maybe there's more "single" people traveling then I realize. So I'll leave them on for a week or so, and see what happens. It's not like I get alot of return visitors. They come, read what they need, and leave.

1:27 pm on Feb 17, 2005 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
posts:9074
votes: 6


Is the Javascript inline and uncomented? You can either place comment tags around the inline Javascript or, even better, you can place it in a separate file and call it from the page.

That should help sort out the problem of the mediabot parsing the word "date" out of context.

4:11 pm on Feb 17, 2005 (gmt 0)

Full Member

10+ Year Member

joined:Dec 18, 2004
posts:321
votes: 0


Thanks for the tips encyclo. If I don't see any good results for the ads I'll remove them. But I find this all rather interesting.

Say, I have a page on the Industrial Revolution in our town, and I'm getting ads for industrial toilets. If I add the Date java, wouldn't showing ads for dating be better?

5:01 pm on Feb 17, 2005 (gmt 0)

Full Member

10+ Year Member

joined:Oct 15, 2003
posts:281
votes: 0


hoo boy, I can see the rush of people adding javascript to their pages:

<script type="text/javascript">
function widget() {
var widget = "widget";
var blue_widget = "blue widget";
var discount_widget = "discount widget":
return(1);
}
</script>

(all in fun of course )

5:29 am on Feb 18, 2005 (gmt 0)

Full Member

10+ Year Member

joined:Dec 18, 2004
posts:321
votes: 0


Hahahahaha linear, don't think I haven't thought of that! But the hubby says that would be cheating, and we're too smart for that right?

(I feel we do have another straw in our "white" hat though. lol)