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.
- 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:



38 reponses to "mBanner Version 2.1"
1. I followed your instructions
I followed your instructions regarding the banner and want to learn implementing it.
-white label seo
2. This is a wonderful banner
This is a wonderful banner and I like this coding very much.
3. Thankyou for donation
Hi Adrian Nadjiwon,
Thank you for the donation towards the running cost of the site.
Thanks and Regards,
Manish Kumar Namdeo
4. 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?
5. same problem with IE...
I'm having the same problem with Internet Explorer. The flash banners are not rotating on screen refresh. It is only displaying the first in the list. Firefox and Chrome work fine..... Any ideas?
This problem is only happening 'online' - my offline version is working fine, which is even more perplexing....
6. _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...
7. 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
8. Expiable Banner
Hi oadrian,
Sorry, Currently mBanner does not have feature to specify the banner expiration.
Thanks and Regards,
Manish Kumar Namdeo
9. "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
10. mobile phone blog
The iPhone is one of the best phone devices available. With that top of the range status comes a high price. You know it - thieves know it....
mobile phone blog
11. Thankyou
Hi veve,
Thanks for using my script.
Regards,
Manish Kumar Namdeo
12. 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?
13. 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
14. 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
15. 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.
16. Test toptouch.swf
17. I decompiled the toptouch.swf
I decompiled the toptouch.swf using an online swf decompiler. The SWF has got following code:
The code does not check for ClickTAG hence it is not working with the mBanner.
See the documentation for ClickTAG at http://www.adobe.com/resources/richmedia/tracking/designers_guide/
All the swf for which mBanner is not able to open the correct URL might have not implemented the ClickTAG code accordingly.
18. Same problem
Sadly it appears that there are lots of questions yet no answers to anything.
I also cannot get the URL function to work. I've do everything right and the banner rotates media between images and flash but this 'link' feature that's supposed to open on click doesn't work at all.
Is there anymore here who actually writes replies or are we wasting our time even writing?
19. 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
20. 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.
21. 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
22. Thanks for Donation
Hi Djemaa Evelyne,
Thank you for your donation towards the running cost of the site.
Thanks and Regards,
Manish Kumar Namdeo
23. clickTAG and clickTARGET implementation
Please make the redirection function included for flash.
ty.
24. 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
25. 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
26. 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
27. Thanks for Donation
Hi Lori Washbon,
Thanks for making a donation towards the Running Cost of the site.
Thanks and Regards,
Manish Kumar Namdeo
28. 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
29. 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
30. 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?
31. 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
32. = _blank
can you please post the code to open links in a new window?
33. mbanner
Great script - how about an automatic random selection?
34. 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
35. Try
I wish I could try it before I could comment
36. download?
how do i download the banner
37. 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..
38. thank u
got through...thanks