Showing posts with label ads. Show all posts
Showing posts with label ads. Show all posts

Monday, October 12, 2009

What's Today's Date? -How to put today's date in a blog

I knew was going to be a great day, because you visited my blog.

This next piece of javascript is common to a lot of ads. It's  used to create a sense of urgency,and  immediacy, so you think the ad was updated just that day.

<p>Update: The free trial is still available as of <SCRIPT>var mydate=new Date(); mydate.setDate(mydate.getDate()-0);var theYear=mydate.getFullYear(); var day=mydate.getDay(); var month=mydate.getMonth(); var daym=mydate.getDate(); if (daym<10)daym="0"+daym;var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); var montharray=new Array("January","February","March","April","May"," June","July","August","September","October","November","December"); document.write(dayarray[day]+", "+montharray[month]+" "+daym+", "+theYear);</SCRIPT>!</b>

The free trial will always still be available as of the date you open it, as long as the ad runs. Play around with the text in red to create your own unique message incorporating the date!

How about changing the red text to:

I knew ... was going to be a great day, because  visited  my blog!

Sunday, October 11, 2009

How Ads Mimic Your Address - Bet I Know where you're from!

Hi!   Thanks for visiting!

What do you do for fun around , ?

***

Here's the html & java trick:

I became right click curious when I saw this "blog" about tooth whitening. Now , this may be a very good product, but I can't stand lies. By  right clicking and choosing show source, I found this interesting little javascript:

<p align="left"> <em>            My name is Rachel Bell. I live in                     <script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script><script language="JavaScript">document.write(geoip_city());</script>, <script language="JavaScript">document.write(geoip_region());</script> and I want to tell you about

How I this works is your IP address is detected by the ad program, which then makes "Rachel" appear to be from a city close to your location. Here's my suggestion for putting this liar script to better use:

Why not change the text in red to:

Hi!  Thanks for visiting. What do you do for fun around  ... ?

Right click browsing in , or am I?