Jump to content

Recommended Posts

Now i thought i would start a new topic, because someone along the lines on my previous topic, people got lost to what my question was actually about and starting pointing out web standards to me.

Now, my question is, xhtml has the ability to have 'onmouseover' without using javascript or anything.

[code]
<a href='' onmouseover=''>
[/code]
Now what im trying to do is, when someone mouseovers the image then a flash file will appear showing some information about the image (the information is retreived from the database)

Now i don't need help with that part, (the database or php), my question is, is it possible to call apon a flash movie to be played as soon as someone mouseovers this image.

Ie onmouseover='callflashmovie()';

Or something along the lines of that

NOTE: I'M steering AWAY from javascript, so that means, i dont want to use java script!
Link to comment
https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/
Share on other sites

Well i big to differ, as i just came up with a way.

Using php, i was able to access the flash movie, mixed with a touch of rss, i turned the flash movie into a feed, the php gets all the values, throws them into values, then executes the flash movie and turns it into a feed.

That allows it to play apon ever mouse over.

So much for your theory?

[b]EDITED BY akitchin:  WATCH YOUR COMMENTS.  INSULT REMOVED.[/b]
Link to comment
https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-94455
Share on other sites

Redarrow is correct. You cannot trigger any PHP code when you mouseover an object. PHP is parsed on the server and sends back the output. PHP and HTML cannot be ran together like you can with javascript. However I am little intreged how you managed to run PHP code onmouseover without using javascript.

Could you post an example of your code.
Link to comment
https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-94721
Share on other sites

I just wrote a function, and placed it inside the onmouseover=''


name the function whatever you want i named it

onmouseover='<?movie()?>'

This calls the php function that was made on the same page, it takes all the values that want to be passed into flash, then i locate the file using php (dir)

Then i execute the file and turn it into a feed (the flash movie has to be on a different website and always running, i loaded it into a free server to host it, just the flash file)

Then i use it as a feed to the website, it works.

Just going to give an idea of this as i've been looking around and apparently i maybe the first to accomplish this, and it wasn't that hard.

When i patent the idea it's self, i will release the source code.

Sorry lol if it's possible to make money with this i will.

Already had some offers for the source.

Get in touch with me in a few days when i get it patented.



Link to comment
https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-94998
Share on other sites

php runs on the server while javascript runs on the client. You are mistaken in your belief of how your code works. Maybe you are using some ajax type trickery or are reloading the page, but you sure ARE NOT executing php from within an onmouseover.

Good luck getting a patent.
Link to comment
https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-95004
Share on other sites

[quote author=thorpe link=topic=108587.msg437613#msg437613 date=1158714131]
php runs on the server while javascript runs on the client. You are mistaken in your belief of how your code works. Maybe you are using some ajax type trickery or are reloading the page, but you sure ARE NOT executing php from within an onmouseover.

Good luck getting a patent.
[/quote]

probably they are calling na actual page so the on mouseover is actually opening a new page cause the server to parse that new info....
Link to comment
https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-95008
Share on other sites

[quote]you sure ARE NOT executing php from within an onmouseover.[/quote]

I agree...and it if you are it's defintely AJAX
if it's not AJAX what you're doing could be done by at least
PHPing, so to speak, the SWF filename as a parameter to your javascript function, that takes an SWF file as an argument.

so like
[code]onmouseover='showMovie(<? echo $swfFile; ?>)'[/code]
Link to comment
https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-95010
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.