Autor | Zpráva | ||
---|---|---|---|
kozusnik.jan Profil * |
#1 · Zasláno: 24. 5. 2010, 19:40:03
Potřeboval bych poradit, když na web napíšu zdrojový kód číslo 1. , tak mi to jede , ale když tam přidám ještě další odkaz tak už mi to nefunguje(když tam je jenom 1 obrázek, tak to jede, ale když tam přidám i ten druhý, tak to nefunguje), nevím proč, prosím poraďte. Web: moh.herniweb.cz. Je to tam v pravé liště skoro dole.
ZDROJOVÝ KÓD 1: <script> function fcb1(){ document.obrazek.src="http://moh.herniweb.cz/images/facebook-icon1-300x300.png"; } function fcb2(){ document.obrazek.src="http://moh.herniweb.cz/images/facebook-icon1-300x300%20desature.png"; } function twitter1() { document.obrazek.src="http://moh.herniweb.cz/images/twitter.png"; } function twitter2() { document.obrazek.src="http://moh.herniweb.cz/images/twitter%20desaturate.png"; } </script> <a href="http://www.facebook.com/group.php?gid=125405717476492" onclick="window.open(this.href); return false"><img src="http://moh.herniweb.cz/images/facebook-icon1-300x300%20desature.png" onMouseOver="fcb1()" onMouseOut="fcb2()" width="30" height="30" name="obrazek" /></a> ZDROJOVÝ KÓD 2: <script> function fcb1(){ document.obrazek.src="http://moh.herniweb.cz/images/facebook-icon1-300x300.png"; } function fcb2(){ document.obrazek.src="http://moh.herniweb.cz/images/facebook-icon1-300x300%20desature.png"; } function twitter1() { document.obrazek.src="http://moh.herniweb.cz/images/twitter.png"; } function twitter2() { document.obrazek.src="http://moh.herniweb.cz/images/twitter%20desaturate.png"; } </script> <a href="http://twitter.com/mohherniwebcz" onclick="window.open(this.href); return false"><img src="http://moh.herniweb.cz/images/twitter%20desaturate.png" onMouseOver="twitter1()" onMouseOut="twitter2()" width="30" height="30" name="obrazek" /></a> MOC DÍK |
||
zvěřiňák Profil |
#2 · Zasláno: 24. 5. 2010, 21:19:06
Je potřeba ty dva obrázky nějak rozlišit v html kódu i v js.
<a onclick="window.open(this.href); return false" href="http://twitter.com/mohherniwebcz"><img height="30" width="30" src="http://moh.herniweb.cz/images/twitter%20desaturate.png" onmouseover="twitter1()" onmouseout="twitter2()" name="obrazek1"></a> <a onclick="window.open(this.href); return false" href="http://www.facebook.com/pages/mohherniwebcz/120791927953532"><img height="30" width="30" src="http://moh.herniweb.cz/images/facebook-icon1-300x300%20desature.png" onmouseover="fcb1()" onmouseout="fcb2()" name="obrazek2"></a> <script> function fcb1(){ document.obrazek2.src="http://moh.herniweb.cz/images/facebook-icon1-300x300.png"; } function fcb2(){ document.obrazek2.src="http://moh.herniweb.cz/images/facebook-icon1-300x300%20desature.png"; } function twitter1() { document.obrazek1.src="http://moh.herniweb.cz/images/twitter.png"; } function twitter2() { document.obrazek1.src="http://moh.herniweb.cz/images/twitter%20desaturate.png"; } </script> |
||
kozusnik.jan Profil * |
#3 · Zasláno: 25. 5. 2010, 13:38:45
funguje, super. Moc dík, že to bude tak juednoduché by mě nenapadlo :-D
|
||
Časová prodleva: 14 let
|
0