Page 1 of 1

Flash menu

Posted: Sat Oct 02, 2004 5:43 am
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

Posted: Sat Oct 02, 2004 10:18 am
by feyd
php cannot change anything on the page without reloading it without some help from, Javascript for example.

Posted: Sat Oct 02, 2004 10:45 am
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.