Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Including a banner in my flash header?

Posted on 2003-12-05
6
183 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…

792 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