Jump to content

Banner Rotation script


Recommended Posts

Guest tblanning

has an one else installed this mod i installed exactly as stated and it does not change nothing on store not even the top box shows up any ideals what i might need to do

thanks

tom

My Webpage

Link to comment
Share on other sites

  • 2 months later...

:) Hey All

I just downloaded the mod and did a install and the author forgot to add somethings. :wacko:

open up your footer.inc.php page and find this:

include_once("ver.php");




Replace With This:


include("banner.php");

include_once("ver.php");

Remeber to upload the banner.php file to the same folders as your index.php file is in.

Also to add the java script to your header.inc.php file in your <head></head> tags

and change the variables in the java code to fir your banners and urls

save and upload :w00t:

I also created a little nicer looking banner script that is easy to install and just looks better

The top banner is the one you guys have and the bottom banner is the one i created.

You can add as many banners as you wish

the banner script that i created can be used for multiple things like product showing everythime the image chages it also changes the link

You can checkout the banner scripts live here:

The Mod Store

Its on the bottom of the page

B);):P

Ley me Know

Wildbill

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

the banner script that i created can be used for multiple things like product showing everythime the image chages it also changes the link

Its on the bottom of the page

Wildbill

Hey wildbill,

Can i choose te position of the banner?

I'm a newbie to php and when i installed your mod, the banner shows above the store logo. Can it be moved?

Tkx!

Link to comment
Share on other sites

Hi wildbill

please check at Goosfraba.net

I guess i figured it out. I put the code you included on step2.txt on some other place and not on footer_inc.php. On my case, in header_in.php, right beside the store logo.

Is this the correct way?

Tkx anyway

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
Guest PorkChop

Wildbill:

I am trying your Fading Banner Mod and the banner is at the top above the store logo.

I would like it at the bottom.

I read the other posts and I just don't get it.

Any assistance would be appreciated.

Thanks :)

P.C

Link to comment
Share on other sites

  • 1 month later...

I think I may have missed something somewhere. When my page loads it has a delay of the same amout as each banner display. For instance, I have each banner set to display for 20 seconds. The result is an empty display for 20 seconds then each banner displaying for 20 second. Any ideas? See what I am talking about at http://www.ez-win.com (banner will show in "Affiliates" box), sample code below:

<!-- Begin

var mfBanners = [

['http://www.vtronx.com','http://www.vtronx.com/images/ads/ad01.gif'],

['http://www.vtronx.com','http://www.vtronx.com/images/ads/ad01.gif']

];

var mfIe = false;

if( document.all) {

mfIe = true;

}

var mfBannerIndex = 0;

function mfBannerChange() {

var htmlString = '<a target="_blank" href="'+mfBanners[mfBannerIndex][0]+'"> <img border="0" src="'+mfBanners[mfBannerIndex][1]+'"></a>';

if( mfIe) {

document.all.banner.innerHTML = htmlString;

}

else {

document.layers["banner"].document.open();

document.layers["banner"].document.write( htmlString);

document.layers["banner"].document.close();

}

if(mfBannerIndex < mfBanners.length - 1)

mfBannerIndex++;

else

mfBannerIndex = 0;

}

setInterval("mfBannerChange()", 20000);

// End -->

Link to comment
Share on other sites

  • 1 month later...
Guest twisted

I have a banner rotator....it is so simple it is only 4 lines of code....yet very effective.

You can display/rotate images, text, banners, hyperlinked banners/images...anything you want. And you can place it ANYWHERE on the page wiith a single, simple include statement.

Link to comment
Share on other sites

  • 4 months later...
Guest lilithfiend

hi, i have this mod installed on my site and it works fine. it's currently at the footer area.

now, i want to add another rotation banner section at the top of my site, just between the "Welcome Guest" message and the date.

I've tried simply duplicating the script and the box appears there all right but the banners do not appear! i think this is because the banners are defined in the header.php for the original set at the footer area.

can anyone tell me how do i insert another section at the top please?

Link to comment
Share on other sites

×
×
  • Create New...