Sohail: Navigations-Buttons

Beitrag lesen

Hallo nochmal,

dein Problem ist ganz klar und einfach zu beseitigen:
1. Bei Onclick brauchst du kein <a href=""> mehr(du kannst auch OnClick auslassen und die Werte über <a href=""> übergeben).

a : <td<img src="buttons/home_b.gif" border="0" name="home" onclick="ZweiFrames(URL1,F1,URL2,F2,name,bild)" onmouseout="wechsel('home','buttons/home_b.gif')"  onmouseover="wechsel('home','buttons/home_r.gif')"></a></td>

b : <a href="javascript:ZweiFrames('nav_home.htm',1,'start.htm',2,name,bild)">  
<img src="buttons/home_b.gif" border="0" name="home" onmouseout="wechsel('home','buttons/home_b.gif')"  onmouseover="wechsel('home','buttons/home_r.gif')"></a></td>

2. Die function sieht jetzt so aus:

function ZweiFrames(URL1,F1,URL2,F2,name,bild)
   {  
    parent.frames[F1].location.href=URL1;
    parent.frames[F2].location.href=URL2;
    document.images[name].src = bild;
   }

das sollte funktioniren.

MfG
Sohail