Rotating Image banner

  • WWD
  • Born
  • Born
  • No Avatar
  • Joined: May 01, 2004
  • Posts: 1
  • Loc: Doncaster, England
  • Status: Offline

Post May 1st, 2004, 3:21 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 1st, 2004, 3:21 pm

  • Neo_Matrix
  • Newbie
  • Newbie
  • User avatar
  • Joined: May 07, 2004
  • Posts: 9
  • Status: Offline

Post May 7th, 2004, 3:48 pm

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
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post May 7th, 2004, 4:19 pm

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
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 24, 2004
  • Posts: 1013
  • Loc: Living In Today
  • Status: Offline

Post May 7th, 2004, 8:42 pm

Im with ATNO :D. I only did it once and it worked for me.
Yesterday is history.Tomorrow is mystery.Today is a gift.
Car Audio Sytems
LED Emergency Lights
  • head stash
  • Novice
  • Novice
  • User avatar
  • Joined: Jun 02, 2004
  • Posts: 30
  • Loc: hiding under my desk
  • Status: Offline

Post July 22nd, 2004, 9:52 am

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
  • No Avatar
  • Joined: Jul 09, 2004
  • Posts: 122
  • Loc: England
  • Status: Offline

Post July 22nd, 2004, 12:04 pm

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
  • Joined: Jun 02, 2004
  • Posts: 30
  • Loc: hiding under my desk
  • Status: Offline

Post July 22nd, 2004, 12:38 pm

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

i appreciate it
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post July 22nd, 2004, 8:14 pm

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
Strong with this one, the sudo is.

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 137 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.