Ajax Poll Script
Address Book Script
PayPal IPN + eProduct Delivery Script
Ajax Likes-Dislikes Counter
Text Ad Script
Lead Follow-Up Database Script
Ajax ContactUs Script
Ajax Poll DX
URL Shortening Script
Contact Us Script
Fade-In Slideshow Script
AdFreely -Ad Board Script-
Protect HTML Script |
Text Ad ScriptThis is a simple & straight-forward text ad script. This script was originally created to administrate the same copies of text/html in multiple web sites from a centralized administration area. The format of ads is free-format style. You can place any text and html code. If you want to display/administrate the same ads or same text/html snippets over multiple web sites, this script will greatly make your life easier. Ver 1.05 TA201-105
You can also enter javascript as well as text & html. For example, the following is a simple javascript that rotates pictures every three seconds. <img id='ta_pic'/>
<script>
(function(){
// Rotation Interval(msec)
var interval = 3000;
// pic ID
var pic_id = "ta_pic";
// pic URL list
var pics = [
"http://www.mydomain.com/(path-to-pic1)",
"http://www.mydomain.com/(path-to-pic2)",
"http://www.mydomain.com/(path-to-pic3)"
];
var pic_idx = 0;
var pic_img = document.getElementById(pic_id);
function rotate_pic(){
if ( pic_idx == pics.length ) { pic_idx = 0; }
var src = pics[pic_idx];
pic_img.setAttribute("src", src);
pic_idx++;
setTimeout( rotate_pic, interval );
}
rotate_pic();
}());
</script>
|