Solved

Including a banner in my flash header?

Posted on 2003-12-05
6
180 Views
Last Modified: 2010-04-03
I am using the following to insert my random banner ad onto my html header:

<iframe marginwidth="0" marginheight="0" width="468" height="60" scrolling="no" frameborder=0 src="ads/ads1/randomad.php"> </iframe>

I am now making a flash header but don't know how to insert the banner from my randomad.php.

Thanks
0
Comment
Question by:CarBoffin
  • 2
  • 2
6 Comments
 
LVL 23

Expert Comment

by:adilkhan
ID: 9883788
Name your flash Files Like this

Banner1.Swf
Banner2.Swf
Banner3.Swf

and then in your PHP Page, Create the Random Script and Replace the index value with the Random Variable


"Banner" + i & ".Swf"

where i is a Random Number.
0
 

Author Comment

by:CarBoffin
ID: 9883949
Is there another way?, i have 30+ ads.

Thanks
0
 

Author Comment

by:CarBoffin
ID: 9888947
Please, its ergent.

Thanks
0
 
LVL 23

Accepted Solution

by:
adilkhan earned 250 total points
ID: 9889809
Can you store your banners Path into Database?

if yes then you can generate a Random Sql Script and return a Random Number that will point to that Row in your Database (Banner Path).

To Generate Random Record.

http://www.codefixer.com/tutorials/random_record.asp
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now