Solved

Including a banner in my flash header?

Posted on 2003-12-05
6
182 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:Saqib Khan
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:
Saqib Khan 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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 select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

785 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