TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   can you check if a link has been pressed? or a picture? (http://www.talkphp.com/absolute-beginners/3139-can-you-check-if-link-has-been-pressed-picture.html)

codefreek 07-18-2008 07:32 PM

can you check if a link has been pressed? or a picture?
 
hey, i am trying to figure out if i press a link or a picture
to be able to take that moment some one press it it will not send me to the link destination it will send me to a embedded player with that URL or something like that

so my question is can you take over like that or impossible?


Thank you in advance.
^^

Aaron 07-18-2008 07:35 PM

umm... What kind of embedded player? Like, youtube style? Windows player style?

Unless if you stream it youtube style, they will download the video to their temp directory before playing it (using more bandwidth).

codefreek 07-18-2008 07:46 PM

well anyways thats not the case i want to just know a example on how to like take over a link or picture they pressed and see if he also did click it.

Aaron 07-18-2008 07:48 PM

The css selector a:active can do it, or the onclick event handler.

codefreek 07-18-2008 07:57 PM

yeah but i asked for it in php ? :S

Ross 07-18-2008 08:04 PM

It's a frontend thing - PHP only handles server side requests, you're looking for some sort of JavaScript to use the onclick="" attribute. You could always use AJAX with onclick to call a PHP file.

codefreek 07-18-2008 08:06 PM

Thank you, redSHIFT


All times are GMT. The time now is 06:51 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0