HTML Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherHTML Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old August 16th, 2005, 10:48 AM
rb85cj7 rb85cj7 is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 19 rb85cj7 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 23 m 10 sec
Reputation Power: 0
Random loading banners

I have just currently added banner links to my site. But my customers are wanting them to rotate, right now it isn't a problem because there is only two. I am about to add a couple of more so it will be obvious if they are not rotating.

I just changed my hosting to windows 2000 server so my program designer could use asp for a zipcode look up and a catalog look up, and it doesn't use PHP. i don't want him to mess with this because he is expensive and i should be able to handle this. The delema is that i need them to be links as well as show the banner. I have tried it with some stuff i found on google but it would show the same image in both spots,(leaving one of my banners off the page).

Any ideas on what i can do to make this work?

Reply With Quote
  #2  
Old August 16th, 2005, 12:43 PM
gchaney's Avatar
gchaney gchaney is offline
Mr. Goober Guy ;)
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Aug 2004
Location: Tampa, Florida
Posts: 1,321 gchaney User rank is Sergeant (500 - 2000 Reputation Level)gchaney User rank is Sergeant (500 - 2000 Reputation Level)gchaney User rank is Sergeant (500 - 2000 Reputation Level)gchaney User rank is Sergeant (500 - 2000 Reputation Level)gchaney User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Weeks 15 h 57 m 28 sec
Reputation Power: 14
This is what I use for my banners:

PHP Code:
<?
$link_code
[] = "<a href='http://www.yourdomain.com/your-page.html'><img src='http://www.yourdomain.com/images/banners/rebate_program.gif' width='147' height='65' border='0' alt='Your Text Here'></a>";
$link_code[] = "<a href='http://www.yourdomain.com/your-page.html'><img src='http://www.yourdomain.com/images/home_loan.gif' width='147' height='65' border='0' alt='Your Text Here></a>";
$link_code[] = "<a href='http://www.yourdomain.com/your-page.html'><img src='http://www.yourdomain.com/images/banners/consultation.gif' width='147' height='65' border='0' alt='Your Text Here'></a>";
$link_code[] = "<a href='http://www.yourdomain.com/your-page.html'><img src='http://www.yourdomain.com/images/banners/home_loan2.gif' width='147' height='69' border='0' alt='Your Text Here'></a>";
$link_code[] = "<a href='http://www.yourdomain.com/your-page.html'><img src='http://www.yourdomain.com/images/banners/loan_dr.gif' width='147' height='65' border='0' alt='Your Text Here'></a>";
$link_code[] = "<a href='http://www.yourdomain.com/your-page.html'><img src='http://www.yourdomain.com/images/banners/shop_your_mortgage_deal.gif' width='147' height='65' border='0' alt='Your Text Here'></a>";
$link_code[] = "<a href='http://www.yourdomain.com/your-page.html'><img src='http://www.yourdomain.com/images/banners/agents_pay_you.gif' width='147' height='65' border='0' alt='Your Text Here'></a>";
$link_code[] = "<a href='http://www.yourdomain.com/your-page.html'><img src='http://www.yourdomain.com/images/banners/closing_cost_help.gif' width='147' height='65' border='0' alt='Your Text Here'></a>";
$link_code[] = "<a href='http://www.yourdomain.com/your-page.html'><img src='http://www.yourdomain.com/images/banners/get_money_at_closing.gif' width='147' height='65' border='0' alt='Your Text Here'></a>";

srand ((double) microtime() * 1000000);
$randomlink_code rand(0,count($link_code)-1);

echo 
"" $link_code[$randomlink_code] . "";
?>
__________________
Cheerios!

New to SEO? See the FAQ!

My Disclaimer:
Don't Listen To Me - I know nothing!

Reply With Quote
  #3  
Old August 16th, 2005, 12:53 PM
Jammer's Avatar
Jammer Jammer is offline
Protecting wit's mice
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Location: Jammerland
Posts: 464 Jammer User rank is Corporal (100 - 500 Reputation Level)Jammer User rank is Corporal (100 - 500 Reputation Level)Jammer User rank is Corporal (100 - 500 Reputation Level)Jammer User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Week 2 h 33 m 27 sec
Reputation Power: 6
Send a message via MSN to Jammer
Yeah, but that's php ;)

This is very easy and works ok --> http://www.kamath.com/tutorials/tut006_adrotator.asp
__________________
pvmultimedia seo contest

Reply With Quote
  #4  
Old August 16th, 2005, 01:21 PM
Bruno's Avatar
Bruno Bruno is offline
Croatia - Hrvatska
SEO Chat Intermediate (1500 - 1999 posts)
 
Join Date: May 2005
Location: Croatia - Hrvatska
Posts: 1,892 Bruno User rank is Corporal (100 - 500 Reputation Level)Bruno User rank is Corporal (100 - 500 Reputation Level)Bruno User rank is Corporal (100 - 500 Reputation Level)Bruno User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Weeks 1 Day 1 h 6 m 15 sec
Reputation Power: 9
hotscript is first page to check:

http://www.hotscripts.com/search/5612806.html

Reply With Quote
  #5  
Old August 16th, 2005, 02:24 PM
gchaney's Avatar
gchaney gchaney is offline
Mr. Goober Guy ;)
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Aug 2004
Location: Tampa, Florida
Posts: 1,321 gchaney User rank is Sergeant (500 - 2000 Reputation Level)gchaney User rank is Sergeant (500 - 2000 Reputation Level)gchaney User rank is Sergeant (500 - 2000 Reputation Level)gchaney User rank is Sergeant (500 - 2000 Reputation Level)gchaney User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Weeks 15 h 57 m 28 sec
Reputation Power: 14
Quote:
Originally Posted by Jammer
Yeah, but that's php ;)

This is very easy and works ok --> http://www.kamath.com/tutorials/tut006_adrotator.asp


lol...not designed for what he wants...but its one file and takes:

<!--#include virtual="file_name.php" -->

to include it on any page. The script has many, many, many very beneficial uses if you use your imagination.

Ahh well. You can always check your c-panel. Sometimes the hosts will include a banner rotating script.

Reply With Quote
  #6  
Old August 18th, 2005, 10:56 AM
Trafficpusher Trafficpusher is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 25 Trafficpusher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 31 m 58 sec
Reputation Power: 0
Quote:
Originally Posted by rb85cj7
I have just currently added banner links to my site. But my customers are wanting them to rotate, right now it isn't a problem because there is only two. I am about to add a couple of more so it will be obvious if they are not rotating.

I just changed my hosting to windows 2000 server so my program designer could use asp for a zipcode look up and a catalog look up, and it doesn't use PHP. i don't want him to mess with this because he is expensive and i should be able to handle this. The delema is that i need them to be links as well as show the banner. I have tried it with some stuff i found on google but it would show the same image in both spots,(leaving one of my banners off the page).

Any ideas on what i can do to make this work?


Here you go this worked great. Make sure after every last url there it ends with only a " quote. but you can add as many banners and it will rotate them randomly.

Code:
<!-- BANNER ROTATOR #1

var currentdate = 0;

var core = 0;

function initArray() {

this.length = initArray.arguments.length;

for (var i = 0; i < this.length; i++) {

this[i] = initArray.arguments[i];

}

}

link = new initArray(
"http://www.whatever.com",
"http://www.whoever.com",
"http://www.dontknowwhereitgoes.com",
"http://www.makesurenocommaattheend.com"

);

image = new initArray(
"http://www.whatever.com/banners/whatever.gif",
"http://whoever.com/banners.whoever.gif",
"http://www.dontknowwhereitgoes.com/banners/468x60.gif",
"http://www.makesurenocommaattheend.com/banners/samething.gif"

);

text = new initArray(
"alt tags",
"alt tags",
"alt tags",
"alt tags"

"Some title you want to put here"
);

var currentdate = new Date();

var core = currentdate.getSeconds() % image.length;

var ranlink = link[core];

var ranimage = image[core];

var rantext = text[core];

document.write('<a href=\"' +ranlink+ '\"><img src=\"'+ranimage+'\" border="0" alt=\"'+rantext+'\"></a>');

// BANNER ROTATOR #1 -->


Ok its easy, add the code above to a notepad file and name it rotator.js. Ok add your link to the site the banner is going to in order, then next is the image (where the banner is), then next is the alt tags. Everything is in order from top to bottom. Make sure the last link of all 3 orders just ends in a " you will notice that all above the last one ends like this ", if you leave the comma on the last link it will not work.

when you are dont formatting your .js file with your links, banners, and alt tags. All you have to do it add this code to your html page that you want to display your banners.

Code:
<script type="text/javascript" src="http://www.yourdomain.com/rotator.js"></script>


That code goes right into the table or wherever it is that the banner is going to be displayed on the page. upload your banners and js file and your in business. I think its pretty self explanitory but hit me up if you have any questions

TP

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherHTML Coding > Random loading banners


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT