link

chrigu99
moin leuzz


wie mach ich dass wenn ich aufn link klicke 2 seiten ausgeführt wird??

habe frames also wenn ich nen klick auf "blabla" mache dann solls im frame head blabla1.php laden und im frame main blabla2.php

wie ist das zu bewerkstelligen??

greez

chris

Zunge raus

:!:
Chris Hunter
dazu diese kleine funktion:

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
function ZweiFrames(URL1,F1,URL2,F2)
   {  
    parent.frames[F1].location.href=URL1;
    parent.frames[F2].location.href=URL2;
   }


<a href="javascript:ZweiFrames('jack1.htm',1,'jack2.htm',2)">Klick hier</A>
chrigu99
thx

hab eben von js keinen plan...

so long

chris

;P
chrigu99
funzt net...

hier mein html-code:
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
function ZweiFrames(URL1,F1,URL2,F2)
   {
    parent.frames[F1].location.href=URL1;
    parent.frames[F2].location.href=URL2;
   }



<map name="nav">
  <area shape="rect" coords="42, 51, 166, 78" href="head.php?ind=4" target="head">
  <area shape="rect" coords="41, 1, 166, 31" href="head.php?ind=3" target="head">
</map> <map name="nav2">
  <area shape="rect" coords="39, 57, 170, 85" href="head.php?ind=6" target="head">
  <area shape="rect" coords="41, 5, 166, 36" href="head.php?ind=5" target="head">
</map> <map name="nav3">
  <area shape="rect" coords="41, 8, 167, 40" href="head.php?ind=7" target="head">
</map> <map name="nav0">
  <area coords="108, 109, 42" shape="circle" href="head.php?ind=2" target="head">
  <area coords="0, 0, 72, 62" shape="rect" href="javascript:ZweiFrames('main.php',main,'head.php?ind=1',head)">
</map>


thx für help

greez

chris

Zunge raus
Chris Hunter
ja neee, als href in der map musst du die funktion aufrufen. wie ich oben aufgeschrieben hab. erst die url für das frame und dann die nummer des zielframes
dei funktion muss in <script> tags
chrigu99
ach soo... ist ja js... Mauer Mauer

bin halt php-orientiert... Zunge raus Augenzwinkern

jo jetzt funzzts tippetoppe

thx nochmal

gruzz

chris

Zunge raus