Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Forum De Bell Tolls > [Javascript] posizione degli elementi
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.84 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[Javascript] posizione degli elementi

code:
<table> <tr> <td id="uno"> UNO UNO UNO </td> </tr> <tr> <td id="due"> DUE DUE DUE </td> </tr> </table>


esiste un modo per conoscere la posizione delle celle con id 'uno' e 'due' usando javascript?
Io vorrei fare un menu che cliccando su una cella della tabella fa comparire un sottomenu, in praticca un enu a tendina...mi autate?

Io ho cercato qualche esempio su internet ma sono troppo complicati...

__________________
http://www.twitter.com/0m4r

03-08-2003 11:45
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Mino
In pensione :)

User info:
Registered: Mar 2002
Posts: 2997 (0.34 al dì)
Location: Dublin!
Corso: Informatica 3ennale
Anno: Laureato :)
Time Online: 12 Days, 2:11:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Off-Topic:
bookmark consigliato: http://webfx.eae.net/ hanno anche un po' di roba su tabelle/spreadsheet

__________________
icq: 57553717 - mail: mino@ngi.it - web: www.minux.it - Fattori Arcani

03-08-2003 13:07
Click Here to See the Profile for Mino Click Here to See the Blog of Mino Visit Mino's homepage! Find more posts by Mino Add Mino to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
webwarrior
Very Cool Guy

User info:
Registered: Oct 2002
Posts: 197 (0.02 al dì)
Location: Steppa Brianzola
Corso: Informatica
Anno: Settimo?
Time Online: 1 Day, 1:02:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Per "posizione" intendi dire le coordinate? O la posizione all'interno della tabella?

Nel primo caso non è possibile, devi prima impostare la posizione tu (style="position: relative" oppure style="position: absolute")

Cmq una maniera veloce è quella di creare i menù a comparsa con DreamWeaver. Ti ritrovi con migliaia di righe di codice JS, però funziona che è una meraviglia :D

__________________
__________________

a p bertolini

03-08-2003 13:46
Click Here to See the Profile for webwarrior Click Here to See the Blog of webwarrior Click here to Send webwarrior a Private Message Visit webwarrior's homepage! Find more posts by webwarrior Add webwarrior to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.84 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

intendo le coordinate, io vorrei fare apparire il menu proprio sotto la cella su cui andrò a liccare a partire dal suo angolo in basso a sx...

__________________
http://www.twitter.com/0m4r

03-08-2003 16:14
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.84 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged


[spam mode on]
scusate ma...up!
[spam mode off]

__________________
http://www.twitter.com/0m4r

04-08-2003 19:47
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lorenzo
...ma anche no.

User info:
Registered: Jun 2002
Posts: 3149 (0.36 al dì)
Location: Milano
Corso: F49
Anno: 00000011
Time Online: 49 Days, 1:47:46 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

No, non credo sia possibile sapere la posizione esatta di una cella se non l'hai impostata tu prima.

Puoi sapere le coordinate del mouse quando clicchi e far apparire il menu in quel punto.
In IE le becchi così:

code:
function aprimenu() { var xPoint; var yPoint; xPoint = document.body.scrollLeft + event.x; yPoint = document.body.scrollTop + event.y; ... } ... <td onMouseUp='java script:aprimenu()'> ...

__________________
Non ti laureare, continua a cazzeggiare!

"È tutta merda..." - clod81

05-08-2003 07:52
Click Here to See the Profile for lorenzo Click Here to See the Blog of lorenzo Click here to Send lorenzo a Private Message Visit lorenzo's homepage! Find more posts by lorenzo Add lorenzo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.84 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

questo lo sapevo grazie lo stesso...

__________________
http://www.twitter.com/0m4r

05-08-2003 08:14
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 15:02.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.092 seconds (37.88% PHP - 62.12% MySQL) con 25 query.