Flash menu

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jimbo_dk
Forum Newbie
Posts: 1
Joined: Sat Oct 02, 2004 5:32 am

Flash menu

Post by jimbo_dk »

Hey,

I am working on a site with a flash menu header. What I need is for PHP to dynamically change the text in my page corresponding to the menu item clicked on in the flash menu.

For e.g. when the "About" button is clicked in the SWF file, I need the HTML text in the same page to be changed to show the relevant text without reloading the page.

Many thanks,
jimbo
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

php cannot change anything on the page without reloading it without some help from, Javascript for example.
choppsta
Forum Contributor
Posts: 114
Joined: Thu Jul 03, 2003 11:11 am

Post by choppsta »

You could use javascript...

Get the link in the flash movie to trigger a javascript function that does something such as:

Code: Select all

document.getElementById('contentElement').innerHTML = 'the new HTML';
Then all you need is a div tag on the page with an id="contentElement", or whatever.
Post Reply