Ways to get flash buttons to work on a PHP page

Accipiter22

Banned
Feb 11, 2005
7,942
2
0
I have a sidebar menu for a page I made that's in php.....unfortunately it's apparently next to impossible to get flash to work with php.....the buttons i made for the menu just don't show up. Does anyone have experience dealing with this?

I could take a screen shot of the before & after mouseover of each button then save them as pictures, put them into a rollover image, and then link them to the page I want to go to, that just seems excessive though.

update: I just tried the screen shot and rollover image idea...nope that doesn't work with PHP either...UGH there's 2 hours I'll never have back

AAAAAAAAAAAAAAAAAAAAAAAUGH


update 2: MOUSEOVER GIFS DON'T WORK EITHER?!?!?!? WTF GOOD IS THIS FSCKING PHP THING???? YOU CAN'T DO ANYTHING WITH IT
 

LeetestUnleet

Senior member
Aug 16, 2002
680
0
0
Why are you using Flash for buttons? That sounds like it's got too much overhead given the task. Are you just creating a rollover effect? Use an animated GIF button if that's what you're going after - save the first frame as the static button, then save the animated button as the MouseOver button.
 

Accipiter22

Banned
Feb 11, 2005
7,942
2
0
Originally posted by: LeetestUnleet
Why are you using Flash for buttons? That sounds like it's got too much overhead given the task. Are you just creating a rollover effect? Use an animated GIF button if that's what you're going after - save the first frame as the static button, then save the animated button as the MouseOver button.

edit; I guess I'l have to try that
 

Accipiter22

Banned
Feb 11, 2005
7,942
2
0
I can't even post the code I'm using because it contains a 'banned' word. Thanks a lot new forums. jesus christ.
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
PHP emits whatever HTML and javascript for a browser that you tell it to, so there is nothing in PHP itself keeping you from using Flash, java applets, ActiveX, GIFs, AJAX, whatever.

If the HTML response from the PHP page isn't working, you need to view source, look at the HTML, compare it to a working HTML page and see where you went wrong. It could be something as simple as broken HTML tags, unclosed quotes, or something subtler.

Sorry I can't help debug your code though, I'm still a PHP n00b myself.
 
Aug 25, 2004
11,151
1
81
Originally posted by: Accipiter22
WTF GOOD IS THIS FSCKING PHP THING???? YOU CAN'T DO ANYTHING WITH IT

You fail at the internet. :thumbsdown:

If you can't post your code, can you upload it somewhere and link to it?
 

joshg

Golden Member
Jul 3, 2001
1,359
0
0
Originally posted by: DaveSimmons
PHP emits whatever HTML and javascript for a browser that you tell it to, so there is nothing in PHP itself keeping you from using Flash, java applets, ActiveX, GIFs, AJAX, whatever.

If the HTML response from the PHP page isn't working, you need to view source, look at the HTML, compare it to a working HTML page and see where you went wrong. It could be something as simple as broken HTML tags, unclosed quotes, or something subtler.

Sorry I can't help debug your code though, I'm still a PHP n00b myself.

QFT, using PHP vs. any other server side language will have nothing to do with how client-side things behave! (other then of course how your PHP is building the code for your client to render... but as quoted here as long as your PHP is doing what it is "supposed" to do, the problem will lie solely in your HTML / JavaScript / whatever.

Besides, wouldn't a "mouseover" in Flash actually be set up in the Flash movie anyway? And for using the on mouse over event of an img tag that's done by JavaScript (again nothing to do with PHP.. !)
 

joshg

Golden Member
Jul 3, 2001
1,359
0
0
I prefer to use getElementById instead as I've always had much better results (especially with cross-browser compat.)

<div id="testdiv">hello</div>
<a href="#" onmouse over="document.getElementById('testdiv').innerHTML='hi there'" onmouseout="document.getElementById('testdiv').innerHTML='hello'">txt</a>


edit: for some reason AnandTech is saying that on mouse over (all one word) is a censored word, so you'll have to take the space out above...
 

Accipiter22

Banned
Feb 11, 2005
7,942
2
0

wtf I don't know what's different now but the rollover images all started working. I didn't even edit the files...
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Originally posted by: Accipiter22

wtf I don't know what's different now but the rollover images all started working. I didn't even edit the files...
It could be your browser caching an old version of the page if the PHP isn't including expiration time in the HTML header it writes.
 

Unheard

Diamond Member
Jan 5, 2003
3,774
9
81
I sent you a PM. Looking @ the site, everything looks like it is working fine.