Rotating Image banner

  • WWD
  • Born
  • Born
  • WWD
  • Posts: 1
  • Loc: Doncaster, England

Post 3+ Months Ago

Hi,

I'm new on here, so if I'm in the wrong section I apologise :oops:

I'm wondering if anyone on here knows where I can get a rotating image banner script, with hyperlinking function that can be managed externally, so it can be on every page in my site, yet I only have to change one set of script?

Thanks in advance!

Tom
http://www.doncasterdragons.net
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Neo_Matrix
  • Newbie
  • Newbie
  • User avatar
  • Posts: 9

Post 3+ Months Ago

In what language you need script ?
CGI, PHP, ASP, .. ???

If you need php i can help...

Poz.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Use an externally linked javascript ad rotation banner file. Link to it in your meta tags on each page. Then to update just update the one javascript file.

Google search: "ad rotation" + javascript
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Posts: 1013
  • Loc: Living In Today

Post 3+ Months Ago

Im with ATNO :D. I only did it once and it worked for me.
  • head stash
  • Novice
  • Novice
  • User avatar
  • Posts: 30
  • Loc: hiding under my desk

Post 3+ Months Ago

i would like to have 3 or 4 banners that my site can randomly pull from when people hit the page....

any thoughts?? i use dreamweaver if that helps anyone

thanks
  • Archaic Sage
  • Graduate
  • Graduate
  • Archaic Sage
  • Posts: 122
  • Loc: England

Post 3+ Months Ago

I'm guessing that you'd need a javascript for this, or pehaps a php script.

Code: [ Select ]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Random Image</title>
    <script language="Javascript" type="text/javascript">
    <!-- Hide script from old browsers

    myPix = new Array("images/lion.jpg","images/tiger.jpg","images/bear.jpg")
    imgCt = myPix.length

    function choosePic() {
        if (document.images) {
            randomNum = Math.floor((Math.random() * imgCt))
            document.myPicture.src = myPix[randomNum]
        }
    }

    // End hiding script from old browsers -->
    </script>    
</head>
<body bgcolor="#FFFFFF" onload="choosePic()">
<img src="images/spacer.gif" width="305" height="312" name="myPicture" alt="some image" />
</body>
</html>
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.     <title>Random Image</title>
  5.     <script language="Javascript" type="text/javascript">
  6.     <!-- Hide script from old browsers
  7.     myPix = new Array("images/lion.jpg","images/tiger.jpg","images/bear.jpg")
  8.     imgCt = myPix.length
  9.     function choosePic() {
  10.         if (document.images) {
  11.             randomNum = Math.floor((Math.random() * imgCt))
  12.             document.myPicture.src = myPix[randomNum]
  13.         }
  14.     }
  15.     // End hiding script from old browsers -->
  16.     </script>    
  17. </head>
  18. <body bgcolor="#FFFFFF" onload="choosePic()">
  19. <img src="images/spacer.gif" width="305" height="312" name="myPicture" alt="some image" />
  20. </body>
  21. </html>


Is a quick script that I found (I'm crap at javascript). It may help.
  • head stash
  • Novice
  • Novice
  • User avatar
  • Posts: 30
  • Loc: hiding under my desk

Post 3+ Months Ago

thanks man, ill give that a try tonite...

i appreciate it
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Headstash, I was just going to move this topic to Programing/Scripting but after a quick Ozzu search.... I found this topic which yours complements :) , That is why it has been merged.

Archaic Sage, Please remember to use either
Code: [ Select ]

Or
PHP Code: [ Select ]
 
tags when posting code. I've fixed your original post.

//Merged

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 59 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.