Announcement

Collapse
No announcement yet.

Banner Rotation script with URL Links

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Banner Rotation script with URL Links

    Anyone using a good Banner rotation script pref with an external java file that you can change the images and urls without having to reload your store each week?

    Tried a couple but some give strange output

    Thanks
    Thanks

    JoBananas Body Jewellery - Body piercing jewellery, belly bars and ear stretching plugs

    #2
    Hi David,

    Never used any scripts, but saw the following site which use javascripts for banner rotation: http://www.scripts.com/javascript-sc...ation-scripts/

    Maybe one of these script would help you. If you do download any, please read the readme file that comes with it, it should tell you how to install it.

    Kind Regards
    Nadeem Rasool
    SellerDeck Development

    Comment


      #3
      This script rotates the images and corresponding links randomly, I used it for a while on the home page:

      <script language="JavaScript">
      <!--
      /*
      Random Image Link Script
      By Website Abstraction (http://www.wsabstract.com)
      and Java-scripts.net (http://www.java-scripts.net)
      */

      function random_imglink(){
      var myimages=new Array()
      //specify random images below. You can have as many as you wish
      myimages[1]="Image1.jpg"
      myimages[2]="Image2.jpg"
      myimages[3]="Image3.jpg"
      myimages[4]="Image4.jpg"
      myimages[5]="Image5.jpg"
      myimages[6]="Image6.jpg"

      //specify corresponding links below
      var imagelinks=new Array()
      imagelinks[1]="http://www.yoursite.co.uk/whatever1.html"
      imagelinks[2]="http://www.yoursite.co.uk/whatever2.html"
      imagelinks[3]="http://www.yoursite.co.uk/whatever3.html"
      imagelinks[4]="http://www.yoursite.co.uk/whatever4.html"
      imagelinks[5]="http://www.yoursite.co.uk/whatever5.html"
      imagelinks[6]="http://www.yoursite.co.uk/whatever6.html"


      var ry=Math.floor(Math.random()*myimages.length)

      if (ry==0)
      ry=1
      document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>')
      }

      random_imglink()
      //-->
      </script>
      Many Thanks
      Lee
      Landscape Garden Machinery, Power Tools and Safety Equipment

      Comment

      Working...
      X