October 26, 2005

Chitika Daily Keyword Rotator

Filed under: Chitika eMiniMalls and Updates/News at 6:10 pm

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/blogvp/public_html/wp-content/plugins/technotag.php on line 41

To rotate different kind of ads depending on the day of the week use this code:

Put this above the regular Chitika code:

<script language="javascript">
var dow = new Array();

dow[’Sunday’] = " ‘ipod’ , ‘dell laptop’ , ‘powerbook’ ";
dow[’Monday’] = " ‘xbox’ , ‘playstation’ , ‘nintendo’ ";
dow[’Tuesday’] = " ‘couch’ , ‘bedroom furniture’ , ‘office furniture’ ";
dow[’Wednesday’] = " ‘popcorn maker’ , ‘blender’ , ‘toaster’ ";
dow[’Thursday’] = " ‘cod liver oil’ , ‘glucosamine’ , ‘arthritis’ ";
dow[’Friday’] = " ‘braun shaver’ , ‘norelco shaver’ , ‘rogaine’ ";
dow[’Saturday’] = " ‘LCD monitor’ , ‘hard drive’ , ‘headphones’ ";

var now = new Date();
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
</script>

Change the queries line in your Chitika code to:

var ch_queries = new Array(dow[dayNames[now.getDay()]]);

Thanks to chitikatips

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI.

Leave a comment

eXTReMe Tracker