Jump to content

Rotator Codding


vijay

Recommended Posts

Message Forwarded From butiI am trying to replace this file from in red  and bold ( with the one down there in Blue)<?phpdefined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );global $_VERSION;?><div align="center"><img src="files/cyberdesigns.jpg"></div><div align="center">2005 © <a href="files/copy.html" target="_blank">Copyright Kokstadonline</a> | <a href="files/term_condition.html" target="_blank">Terms and Conditions</a> | <a href="files/disclaimer.html.html" target="_blank">Disclaimer</a> | <a href="files/policy.html.html" target="_blank">Policy</a></div><div align="center"><a href="http://www.cyberdesigns.co.za">Website Designed By : Cyber Designs</a></div>with this banner_rotator.html -- the whole of this file <html><title>Banner Rotator Test</title><head><script language="JavaScript">/*  Banner Rotator v1.0 Created by: Ben K. (ben@webhostreview.biz) Website: http://www.webhostreview.biz/ Download this and other great scripts from: http://www.webhostreview.biz/scripts.php Instructions: 1)Place all the JavaScript code located between the <script> tags inside the <script> tags on your web page or into your .js file.  2)Place all the CSS code located between the <STYLE> tags inside the <STYLE> tags on your web page or into your .css file. 3)Modify the speed, displayTime, wait, bannerLocations, and bannerURLs variables according to you needs. 4)Place the JavaScript call for the initVar() and moveBanner() functions in the onLoad attribute of the <BODY> tags of your web page. 5)Insert the HTML code for <DIV> layer "addbox" into a location in the body of your web page where you want the banners to appear. */var displayTime, speed, wait, banner1, banner2, bannerIndex, bannerLocations;function initVar() { displayTime = 10; // The amount of time each banner will be displayed in seconds. speed = 5; // The speed at which the banners is moved (1 - 10, anything above 5 is not recommended). wait = true; banner1 = document.getElementById("banner1"); banner2 = document.getElementById("banner2"); banner1.style.left = 0; banner2.style.left = 500; bannerIndex = 1; /*  Important: In order for this script to work properly, please make sure that the banner graphic and the   URL associated with it have the same index in both, the bannerLocations and bannerURLs arrays.  Duplicate URLs are permitted. */   // Enter the location of the banner graphics in the array below. bannerLocations = new Array("D:\Documents and Settings\dogle\My Documents\My Pictures\News.gif", "http://www.webhostreview.biz/banner3.gif"); // Enter the URL's to which the banners will link to in the array below. bannerURLs = new Array("http://www.webhostreview.biz","http://www.webhostreview.biz");}function moveBanner(){ if(!wait){    banner1.style.left = parseInt(banner1.style.left) -  (speed * 5);  banner2.style.left = parseInt(banner2.style.left) - (speed * 5);      if(parseInt(banner1.style.left) <= -500){  banner1.style.left = 500;  bannerIndex = (bannerIndex < (bannerLocations.length - 1)) ? ++bannerIndex :0;  banner1.src = bannerLocations[bannerIndex];  link1.href = bannerURLs[bannerIndex];  wait = true;  }    if(parseInt(banner2.style.left) <= -500){  banner2.style.left = 500;  bannerIndex = (bannerIndex < (bannerLocations.length - 1)) ? ++bannerIndex :0;  banner2.src = bannerLocations[bannerIndex];  link2.href = bannerURLs[bannerIndex];  wait = true;  }  setTimeout("moveBanner()",100);  } else {  wait = false;  setTimeout("moveBanner()", displayTime * 1000); }}</script><style>#addbox { position: relative; width: 500px; height: 70 px; clip: rect(0px, 500px, 0px, 70px); overflow: hidden; }#banner1 { position: relative; width: 480px; height: 60px; left: 0; top: 5px; }#banner2 { position: relative; width: 480px; height: 60px; left: 500px; top: -55px !important; top:-58px; }</style></head><body onLoad="initVar(); moveBanner()"><div align="center"><div name="addbox" id="addbox"><a name="link1" id="link1" href="http://www.webhostreview.biz"><img border="0" name="banner1" id="banner1" src="http://www.webhostreview.biz/banner1.gif"></a><a name="link2" id="link2" href="http://www.webhostreview.biz"><img border="0" name="banner2" id="banner2" src="http://www.webhostreview.biz/banner3.gif"></a></div></div></body></html>
Link to comment
Share on other sites

<?phpdefined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );global $_VERSION;?><div align="center"><iframe src="files/bannerrotator.htm" height="90" width="500" frameborder="0" scrolling="no"></iframe></div><div align="center">2005 © <a href="files/copy.html" target="_blank">Copyright Kokstadonline</a> | <a href="files/term_condition.html" target="_blank">Terms and Conditions</a> | <a href="files/disclaimer.html.html" target="_blank">Disclaimer</a> | <a href="files/policy.html.html" target="_blank">Policy</a></div><div align="center"><a href="http://www.cyberdesigns.co.za" target="blank">Website Designed By: Cyber Designs</a></div>quote in red color -- i dont think is the one I've been looking for but I used ifram instead -- it looks working but i want the appropriate code for thatthanx in advance

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...