codes

Reply

Join Date: Jan 2009
Posts: 2
Reputation: dongodwins is an unknown quantity at this point 
Solved Threads: 0
dongodwins dongodwins is offline Offline
Newbie Poster

codes

 
0
  #1
Jan 5th, 2009
am currnetly writing a scripts that can rorate banner ad.the scripts is working but still having problem its working perfectly,need something,Each advert change shall be logged in a file. Make a script that prints the
log in a readable format when accessed through the web server.this is my codes

can anybody help me here.i can pst my code if u want.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 525
Reputation: Will Gresham is on a distinguished road 
Solved Threads: 86
Sponsor
Will Gresham's Avatar
Will Gresham Will Gresham is offline Offline
Posting Pro

Re: codes

 
0
  #2
Jan 6th, 2009
Well, without your code we don't know what you already have. Post it up and someone will be able to help.
AJAX is not a programming language, scripting language or any other sort of language.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,857
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 120
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso
Join Date: Jan 2009
Posts: 2
Reputation: dongodwins is an unknown quantity at this point 
Solved Threads: 0
dongodwins dongodwins is offline Offline
Newbie Poster

Re: codes

 
0
  #4
Jan 6th, 2009
Originally Posted by xan View Post
Well, without your code we don't know what you already have. Post it up and someone will be able to help.
this is my codes

  1. <a href="#">
  2. <center>
  3. <img src="images/banner1.jpg" width="800" height="200" id="adBanner" border="0" alt="ad banner" />
  4. </center>
  5. </a>
  6. <script language="javascript" type="text/javascript">
  7.  
  8. window.onload = initBannerLink;
  9.  
  10. var adImages = new Array("images/banner1.jpg","images/banner2.jpg", "images/banner3.jpg");
  11.  
  12. //var adURL = new Array("danfergusdesign.com","boatnerd.com", "arloandjanis.com");
  13.  
  14. var thisAd = 0;
  15.  
  16.  
  17. function rotate() {
  18. thisAd++;
  19. if (thisAd == adImages.length) {
  20. thisAd = 0;
  21. }
  22. document.getElementById("adBanner").src = adImages[thisAd];
  23. setTimeout("rotate()", 3 * 1000);
  24. }
  25.  
  26.  
  27. function newLocation() {
  28. document.location.href = "http://www." + adURL[thisAd];
  29. return false;
  30. }
  31.  
  32.  
  33. function initBannerLink() {//
  34. if (document.getElementById("adBanner").parentNode.tagName == "A") {//
  35. document.getElementById("adBanner").parentNode.onclick = newLocation;//
  36. }//
  37. rotate();//
  38. }
  39.  
  40.  
  41.  
  42. </script>
Last edited by peter_budo; Jan 6th, 2009 at 2:13 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC