Chitika Daily Keyword Rotator
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





