Current location: Hot Scripts Forums » General Web Coding » JavaScript » mBanner


mBanner

Reply
  #11 (permalink)  
Old 01-23-07, 09:07 PM
raven80 raven80 is offline
Newbie Coder
 
Join Date: Jan 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah, because of below function we multiply by 3 so only three first banners are showed as initial ones. You can change it to 2 for two first or number of banners for each of them can be showed as initial ones.

Code:
// BANNER OBJECT
function Banner(objName)
{
	this.obj = objName;
	this.aNodes = [];
	this.currentBanner =Math.floor(Math.random()*3);
};
Reply With Quote
  #12 (permalink)  
Old 01-31-07, 12:39 PM
arturex arturex is offline
Newbie Coder
 
Join Date: Jan 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
mbanner again

Thanks again Raven.

I still face an apparent malfunction of the banner rotator. Currently using two flash animated banners and the issues are:
the time set for bannerA is affecting the other banner and vice versa i.e. banner A set to 5 seconds and banner B for 15 seconds are showed in reverse A-->15s and B -->5s ??? also in banner transition the banners are not starting from each beginning. Pls see example at http://www.carnaxidedigital.com/mbanner.html.
Have you face sames issues ?
Reply With Quote
  #13 (permalink)  
Old 02-07-07, 10:03 PM
raven80 raven80 is offline
Newbie Coder
 
Join Date: Jan 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Not yet but I will try
I think we must use some server language ( I'll use PHP )
Reply With Quote
  #14 (permalink)  
Old 02-10-07, 11:52 AM
mpimentel mpimentel is offline
New Member
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
hi all, i just found this thread via google and had to register cause i'm having exactly the same problem as the original poster, raven80. But i tried his fix and it didn't work for me. The "Click to activate and use this control" kept appearing.

I finally decided to use this approach http://www.amarasoftware.com/flash-problem.htm, and it worked.

But, i have another issue, in Firefox the links to the banners work perfectly (even on flash banners) but not on IE. I know that one approach is to add the link directly to the .fla before publishing to .swf but what if i'm receiveng a banner previously created by the announcer, i won't be able to modify it and i won't be able to count the clicks, so is there any way to alter the javascript so that the link is not hardcoded inside the swf?

Thanks in advance.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mBanner Blues JavaScript 13 06-02-09 08:59 AM


All times are GMT -5. The time now is 11:22 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.