Jump to content

Archived

This topic is now archived and is closed to further replies.

DarkHavn

PHP + onmouseover (xhtml)

Recommended Posts

Hey i was wondering, is it possible to open a flash movie when 'onmouseover' of an image?

I don't want to rely in javascript for this one, as not many people leave javascript enabled these days.

What im trying to do is, i have a search engine, the results are displayed as images, when the user mouse overs an image, a small flash movie will display with a small description of that item, if they want a more detailed description they can click on the image.

Is this possible at all?

Cheers, just trying to see how i can go about doing it, been searching all night and have found nothing.

Share this post


Link to post
Share on other sites
Not with PHP, that runs on the server so has no idea what the mouse is doing on the client PC.

Share this post


Link to post
Share on other sites
How about a function that is called when onmouseover occurs?

the function gets all the information stores them into variables, executes the flash movie

the flash movie positions it's self according to the x and y axis of the pointer (of the mouse)

is that possible?

or am i doomed to stick with javascript for this one?

Share this post


Link to post
Share on other sites
you need javascript for teh mouseover but you can use ajax to send a request to a php script that will collect all teh data you need and echo it back - then use javascript again to delimit the string sent back and use that to formulate your new html.

Share this post


Link to post
Share on other sites
"as not many people leave javascript enabled these days."

From what I've heard about 90% of people have JS enabled...

Share this post


Link to post
Share on other sites
When designing a site, pick the kind of functionality you want. Then think what if....?

That is what if client is text only browser, what if client has css or javascript or both off, what if client has flash files blocked what if client has image downloads turned off.

If you can design a site that needs minimal adjustments to enable a user to still find it useful when any of these issues are faced - then you are a true web developer....

I aint there yet btw!

Share this post


Link to post
Share on other sites
If someone has everything you said disabled they have a very bland web experience.

Share this post


Link to post
Share on other sites
ToonMariner post is where the money is there no need for all that javascript and macromedia stuff.

but if you want to no your ansaw use the javascript forum on here i am sure that theres meny that like javascript and can help.

Share this post


Link to post
Share on other sites
Umm ok?

Considering that wasn't really my questions. I'm steering away from javascript as study from microsoft and linux shows that only 12.3% of users have javascript enabled, due to so many malcious scripts out there.

My question was, is it possible to call a flash .swf on 'onmouseover' without relying on javascript.

Also take into the fact that only 3% of people have txt only browsers, and people wouldn't come to my site as my site is for advertising, kind of useless if you have a txt only browser

Share this post


Link to post
Share on other sites
onmouseover is javascript so is it?

also users to play flash files need the macromedia player installed in there browser.

Share this post


Link to post
Share on other sites
umm onmouseover effect can either be, css, or plan html

[code]
<img src='' onmouseover=''>
[/code]

So dunno where you guys got the idea of javascript from,

Also i've taken into account of people who don't have flash, and honestly that's not what im worrying about at this point, and that wasn't my question at all.

My question being, is it possible to call apon a flash file to execute when someone mouses over an image.

not using javascript!!! Emphasise on the 'Not using Javascript'

Share this post


Link to post
Share on other sites
Define what you mean by layer?

As there is thousands of kinds of layers, script layers, image layers, manipulation layers

Share this post


Link to post
Share on other sites
your asking a quistion that has been ansawed from the second post ok.

can html triger a swf file with onmouseover?
no.

Share this post


Link to post
Share on other sites
wtf?

The second post had nothing to do with xhtml/html he was talking about that php can not call the flash movie apon mouse over.

Dude, i don't think you and me are on the same page here, because honestly what you are talking about has nothing to do with what im asking.

Honestly...i'm locking this topic and going to refer to the other one i just started, because i think alot of people just got confused along the way

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.