Jump to content


Photo

PHP + onmouseover (xhtml)


  • This topic is locked This topic is locked
15 replies to this topic

#1 DarkHavn

DarkHavn
  • Members
  • PipPipPip
  • Advanced Member
  • 69 posts

Posted 17 September 2006 - 10:25 PM

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.

#2 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 17 September 2006 - 11:17 PM

Not with PHP, that runs on the server so has no idea what the mouse is doing on the client PC.
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#3 DarkHavn

DarkHavn
  • Members
  • PipPipPip
  • Advanced Member
  • 69 posts

Posted 18 September 2006 - 12:03 AM

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?

#4 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 18 September 2006 - 12:36 AM

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.
follow me on twitter @PHPsycho

#5 corbin

corbin
  • Staff Alumni
  • Advanced Member
  • 8,129 posts

Posted 18 September 2006 - 12:52 AM

"as not many people leave javascript enabled these days."

From what I've heard about 90% of people have JS enabled...
Why doesn't anyone ever say hi, hey, or whad up world?

#6 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 18 September 2006 - 12:57 AM

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!
follow me on twitter @PHPsycho

#7 corbin

corbin
  • Staff Alumni
  • Advanced Member
  • 8,129 posts

Posted 18 September 2006 - 12:59 AM

If someone has everything you said disabled they have a very bland web experience.
Why doesn't anyone ever say hi, hey, or whad up world?

#8 DarkHavn

DarkHavn
  • Members
  • PipPipPip
  • Advanced Member
  • 69 posts

Posted 19 September 2006 - 04:22 AM

Hrmm so it's impossible to call a flash movie from an onmouseover effect?



#9 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 19 September 2006 - 04:29 AM

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.

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#10 DarkHavn

DarkHavn
  • Members
  • PipPipPip
  • Advanced Member
  • 69 posts

Posted 19 September 2006 - 04:35 AM

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

#11 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 19 September 2006 - 04:41 AM

onmouseover is javascript so is it?

also users to play flash files need the macromedia player installed in there browser.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#12 DarkHavn

DarkHavn
  • Members
  • PipPipPip
  • Advanced Member
  • 69 posts

Posted 19 September 2006 - 04:45 AM

umm onmouseover effect can either be, css, or plan html

<img src='' onmouseover=''>

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'

#13 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 19 September 2006 - 04:48 AM

well what about a layer
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#14 DarkHavn

DarkHavn
  • Members
  • PipPipPip
  • Advanced Member
  • 69 posts

Posted 19 September 2006 - 04:50 AM

Define what you mean by layer?

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

#15 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 19 September 2006 - 04:53 AM

your asking a quistion that has been ansawed from the second post ok.

can html triger a swf file with onmouseover?
no.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#16 DarkHavn

DarkHavn
  • Members
  • PipPipPip
  • Advanced Member
  • 69 posts

Posted 19 September 2006 - 04:57 AM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users