gaby Posted December 26, 2007 Report Posted December 26, 2007 [instructiuni:]Clickati pe un patratel, tineti apasat si miscati-l in pagina unde doriti. Click aici pentru un exemplu. Acum sa va explic cum puteti face asa ceva. I. Creati o pagina html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> </body> </html>[/code] [color=green][b]II.[/b][/color] Copiati scriptul de mai jos si codurile css intre etichetele [b]<head></head>[/b] [color=red][u][b]Script:[/b][/u][/color] [code]<script language="javascript"> // start dragging pctroubleshooting.ro function startDrag(e){ // determine event object if(!e){var e=window.event}; // determine target element var targ=e.target?e.target:e.srcElement; if(targ.className!='draggable'){return}; // calculate event X,Y coordinates ? Te-ai inregistrat? Ne-ar placea sa te prezinti. Cum pot sustine forumul? Cumpara de la eMag folosind acest link. --------------------
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now