DarkHavn Posted September 19, 2006 Share Posted September 19, 2006 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 thatNOTE: I'M steering AWAY from javascript, so that means, i dont want to use java script! Quote Link to comment https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/ Share on other sites More sharing options...
redarrow Posted September 19, 2006 Share Posted September 19, 2006 as ansaw in last post no. Quote Link to comment https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-94448 Share on other sites More sharing options...
DarkHavn Posted September 19, 2006 Author Share Posted September 19, 2006 Ok, redarrow you are saying that php can't call a .swf file i know.But that wasn't my question, my question was is there anyway in hell to access a flash movie and play it when 'onmouseover' of an image, without relying on javascript. Quote Link to comment https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-94450 Share on other sites More sharing options...
redarrow Posted September 19, 2006 Share Posted September 19, 2006 [color=red]no[/color] Quote Link to comment https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-94452 Share on other sites More sharing options...
DarkHavn Posted September 19, 2006 Author Share Posted September 19, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-94455 Share on other sites More sharing options...
wildteen88 Posted September 19, 2006 Share Posted September 19, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-94721 Share on other sites More sharing options...
DarkHavn Posted September 20, 2006 Author Share Posted September 20, 2006 I just wrote a function, and placed it inside the onmouseover=''name the function whatever you want i named itonmouseover='<?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. Quote Link to comment https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-94998 Share on other sites More sharing options...
trq Posted September 20, 2006 Share Posted September 20, 2006 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 Link to comment https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-95004 Share on other sites More sharing options...
markbett Posted September 20, 2006 Share Posted September 20, 2006 you cant patent code... Quote Link to comment https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-95006 Share on other sites More sharing options...
markbett Posted September 20, 2006 Share Posted September 20, 2006 [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.... Quote Link to comment https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-95008 Share on other sites More sharing options...
Zane Posted September 20, 2006 Share Posted September 20, 2006 [quote]you sure ARE NOT executing php from within an onmouseover.[/quote]I agree...and it if you are it's defintely AJAXif it's not AJAX what you're doing could be done by at leastPHPing, 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] Quote Link to comment https://forums.phpfreaks.com/topic/21235-onmouse-over-effect/#findComment-95010 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.