![]() |
|
| *SoulEyes Photography>>>Photo Gallery |
PHP And Using mouse HOW?!!? |
I creat a photo gallery and i want to make rearrange to the photo gallery such as in yahoo groups but i have no idea about using mouse with php i want a good resource to learn using mouse with php (finally i want to drag and drop the photo in any place in the page). You can't. Using a mouse is done with Javascript. The reason is that PHP works entirely on the server side while Javascript is client side. See the link for one of the best websites for Javascript information. The second link talks about Javascript and CSS positioning. So you need the mouse stuff to know where to move the photo to and the CSS+JS stuff to actually move it (do searches on style="position:absolute") Source(s): http://www.quirksmode.org/js/events_mous... http://lineoflight.com/w3a/cbe.html... Aikoto is right, you can't do that with PHP. However you could do that with Javascript AND with Flash too. Maybe Flash could offer an easier solution to this dev (but it depends which you know better) Look into using Ajax and other similar techniques. with Ajax you can let the client side (javascript) interact with the server side (php, asp, coldfusion, etc..) Here is more info and tutorials from from W3schools http://www.w3schools.com/ajax/default.as... I also found this article very helpful http://www-128.ibm.com/developerworks/we... 3 year web developer |
| Tags |
| Photography School Photography Magazine Photography Jobs Photography Equipment Photography Courses Photo Gallery Photo Essays Art Gallery Wedding Photography Stock Photography |
Photography Categories--Copyright/IP Policy--Contact Webmaster |