Manish Kumar Namdeo

mBanner Version 2.1

This is a simple javascript program to create a banner out of collection of swf and Image files. Using this script you can create a banner in which you can

  • Arrange sequence of images and/or swf files.
  • Attach hyperlinks with them.
  • Specify display duration of individual image/swf.
  • Change height and width of individual image/swf.
  • The new version 2.1 allows you to define the target for the hyperlink. That means you can now open the links in a new window.
  • You can choose between two modes
    • Rotate banner according to the time specified for individual image and swf(Classic Mode)
    • New Feature (Version 2 and above) : Change banner on Page Refresh - On each page refresh the image/swf is changed in sequence. The banner is tracked using cookie. That means if user closes the browser and revisit the page then also he/she will see the changed banner.
    Example:
    • There are 3 images in first banner and 3 swf in second banners.
    • Duration for the image display are 2,1 and 3 seconds respectively.
    • Each image have hyperlink to different sections on this site.
    • First banner runs in Mode 1 - Auto Refresh on Timeout (Without Page Refresh)
    • Second Banner runs in Mode 2 - Banner Change on Page Refresh



This Banner Will change automatically (Without Page Refresh)

This Banner Will change on Page Refresh (Cookie Dependant).
Refresh this page to view next banner.


Login or Register to download the script

Support the effort:

Thankyou for donation

Hi Adrian Nadjiwon,

Thank you for the donation towards the running cost of the site.

Thanks and Regards,
Manish Kumar Namdeo

banners not refreshing on IE...

when i use the mbanner with an iframe. its not changing banners on the browser refresh. in IE, is there something i can do to fix this?

_blank windows

Hi I've a problem...
I use the mBanner for flash banner rotation..
But.. Flash banner are opened in the new windows with no adreses. Is opened in my window like www.vmeste.sk/undefined...
why?
Im use this:
banner2 = new Banner('banner2');
banner2.changeOnRefresh = true;
banner2.add("FLASH", "http://www.vmeste.sk/add/home/square/banner_komunikuj_300x300_xml_d.swf", 15, 300, 300,"http://www.mysticalm.com","_blank");
banner2.add("FLASH", "http://www.vmeste.sk/add/home/square/banner_komunikuj_300x300.swf", 15, 300, 300,"http://www.mysticalm.com","_blank");
banner2.add("FLASH", "http://www.vmeste.sk/add/home/square/banner_komunikuj_300x300_a.swf", 15, 300, 300,"http://www.mysticalm.com","_blank");
banner2.add("FLASH", "http://www.vmeste.sk/add/home/square/banner_komunikuj_300x300_self_d.swf", 15, 300, 300,"http://www.mysticalm.com","_blank");
document.write(banner2);
banner2.start();

But it doesn't work properly...
why?

It still opened my adresess www.vmeste.sk/undefinded...

Question

Thank you for your script. I like it very much !!

Just one question:
Is it possible to define a date until the banner would be shown?

I wil be waiting for yor reply

Thanks again

Adrián

Expiable Banner

Hi oadrian,

Sorry, Currently mBanner does not have feature to specify the banner expiration.

Thanks and Regards,
Manish Kumar Namdeo

"THANKS"

thank you for this fantastic script After downloaded the 100 script I finally found what meets my needs, so a big thansk to you
sorry on mi bad english
and one more time
THANKS

Thankyou

Hi veve,

Thanks for using my script.

Regards,
Manish Kumar Namdeo

Adding Banners with Different Sizes

I want to place 4 banners on the page, each with a different size and location. The banner size (468 x 68) is working fine. I have added the banners naming them and changing them accordingly, ie: banner1 is now banner2, then banner3, and finally banner4. Each new banner has the new dimensions but is not showing correctly in the browser.

Also, what if I don't want to set a duration or an ad doesn't have a link? do I leave the fields empty?

Clear Directions

Manish,

I can't wait to get your mbanner uploaded on my site. I am just running into some difficulties that I hope you can help me out with...

In your readme txt file step 1 says to "Copy files mBanner.js, mBanner.css". Where do I copy them to? Directly into my website through ftp?

WHERE do I include the style sheet code referenced below?
STEP 1:
Include STYLE SHEET file for Banner

Where do I include the directions in step 2 listed below?

STEP 2:
Include JAVASCRIPT file for Banner

RE: Clear Directions

Hi Nick,

1) If you are going to place your HTML file in directory "/var/www/html/" then other two files mBanner.js, mBanner.css would also go in the same directory. You can use FTP to do that, or you can first test it on your local machine itself.
2) style sheet code should be placed in the HEAD part of the HTML file in which you are going to use the mbanner. Same is the case for Javascript code inclusion.

For more detail, you can study the "mBanner.htm" included in the zip archive that you have downloaded. Its a running example.

Thanks and Regards,
Manish Kumar Namdeo

Flash file won't link

Other Flash (swf) files and image files will link and open in new windows. One Flash file won't link at all -- you can't click on it. Has anyone had this problem?

The swf file that won't link is http://www.wherela.com/banner_ads/toptotch.swf

Thanks.

Open in New Window - Feature Addition

Hi Everyone,

I have just uploaded a newer version of mBanner - The Version 2.1. (The older version is also available)

Now you would be able to open the banner links in a new window.
Also, clickTAG and clickTARGET implementation is also in place.

Thanks and Regards,
Manish Kumar Namdeo

Step by step

Hi, can you guild me step by step how to install it in my IPB 2.3.6 forum?
Thanks for your help.

IPB forum

Hi biboloxo,

I don't have an idea about IPB forum. But, if you look into the "mBannerReadme.txt", steps to use mBanner are mentioned there.

Thanks and Regards,
Manish Kumar Namdeo

Thanks for Donation

Hi Djemaa Evelyne,

Thank you for your donation towards the running cost of the site.

Thanks and Regards,
Manish Kumar Namdeo

clickTAG and clickTARGET implementation

Please make the redirection function included for flash.

ty.

clickTAG and clickTARGET

Hi Prozone,

That was great! i was not aware of these tags i.e clickTag and clickTarget. I have quickly gone through the documentation available on the Net and i think this would be a good addition to mBanner (to overcome the limitation of linking the flash banners).

I have taken it in TODO list for next minor version of mBanner.

Thanks and Regards,
Manish Kumar Namdeo

just a question

hello, is possible to use your code with swf in change automatically (Without Page Refresh) or swf just works with on Page Refresh (Cookie Dependant)

thanks for your invention and help

Rafael

SWF and Images

Hi Rafael,

The SWF and Images can be used in any combination, with both the modes available. The mode only controls how the banner would get refreshed and nothing more.

Thanks and Regrds,
Manish Kumar Namdeo

Thanks for Donation

Hi Lori Washbon,

Thanks for making a donation towards the Running Cost of the site.

Thanks and Regards,
Manish Kumar Namdeo

I am getting error

Hi,

Your script is great. I have implemented as by your instruction. I got a very good output. But, when I implement this in my project, I found the error in the firebug as
document.getElementById(this.aNodes[prevBanner].name).className = "m_banner_hide";

I didn't do any changes in css and javascript and I didn't get any banner.

- Vishnu

Need more Details about how to generate the error

Hi Vishnu,

Thanks for using the script.

I have implemented the mBanner on this page, as you can see above.

I am not getting any error on FireFox Firebug.

Can you please post more detail about how to regenerate the error.

Thanks and Regards,
Manish Kumar Namdeo

could you add a line to the code?

This script works great :D thank you!
Is it possible to add a line to open the links in a new page? target="_blank" I don't know nothing about javascript, how can i do it?

Good Suggestion

Hi Guillermina,

I am taking a note of this suggestion.

The new window option will work for images but for Flash files one has to specify this option in flash file itself. As i noticed, IE6 and above does not allow putting a link on flash file using a href tag.

Thanks and Regards,
Manish Kumar Namdeo

= _blank

can you please post the code to open links in a new window?

mbanner

Great script - how about an automatic random selection?

Randomizer Algo

Hi John,

I will need an algorithm to show the images randomly so that each and every banner gets a fair chance of display.

One option would be to randomize the banner list at loading and then follow this random list in sequence.

Please suggest any other option!!

I'll make this change in next version of mBanner.

Thanks and Regards,
Manish Kumar Namdeo

Try

I wish I could try it before I could comment

download?

how do i download the banner

oops..

Oops.... i forgot to the make the download available to the registered users....
You can now download the script...
Make sure that you are logged in before downloading it..

Thanks for letting me know about this mistake..

thank u

got through...thanks

User login

MysticalM Search

Counter

  • Site Counter: 16,441
  • Unique Visitor: 5,742
  • Registered Users: 829
  • Your IP: 189.26.19.39
  • Since: 2009-06-01