Autor | Zpráva | ||
---|---|---|---|
Dunemaster Profil |
#1 · Zasláno: 10. 6. 2009, 11:20:08 · Upravil/a: Dunemaster
Ahoj,
mám následující kód: <table id='advertising' align='center' width='800'> <tr> <td class='content' style='padding: 0px'> <table class='layout'> <tr> <th width='*'>Advertising</th> <th width='468'><iframe marginheight='0' marginwidth='0' scrolling='no' frameborder='0' width='482' height='62' src='http://www.game-advertising-online.com/index.php?section=serve&id=100&affid=278&output=html' target='_blank'></iframe></th> <th width='*'>Remove advertising<br />Get extra game features<br /><br /><a href='upgrade.aspx'>Upgrade your account now</a></th> </tr> </table> </td> </tr> </table> Potřeboval bych celou tu tabulku skrýt. Zkoušel jsem různé věci, ale nic. Můžete mi prosím napsat kompletní řešení? Ať už v CSS nebo JS. Děkuji |
||
Taps Profil |
#2 · Zasláno: 10. 6. 2009, 11:26:38
Dunemaster
Toto by mělo fungovat <table id='advertising' align='center' width='800' style='display:none'> <tr> <td class='content' style='padding: 0px'> <table class='layout'> <tr> <th width='*'>Advertising</th> <th width='468'><iframe marginheight='0' marginwidth='0' scrolling='no' frameborder='0' width='482' height='62' src='http://www.game-advertising-online.com/index.php?section=serve&id=100&affid=278&output=html' target='_blank'></iframe></th> <th width='*'>Remove advertising<br />Get extra game features<br /><br /><a href='upgrade.aspx'>Upgrade your account now</a></th> </tr> </table> </td> </tr> </table> |
||
Dunemaster Profil |
#3 · Zasláno: 10. 6. 2009, 16:51:38
Díky!
|
||
Dunemaster Profil |
#4 · Zasláno: 10. 6. 2009, 18:11:10
A neměl by to někdo ještě v JavaScriptu?
|
||
panther Profil |
#5 · Zasláno: 10. 6. 2009, 18:15:38 · Upravil/a: panther
Dunemaster
Máš nějaký speciální důvod pro JS řešení? Jde JavaScriptem měnit hodnota vlastnosti „display“, ale stále je to skrytí pomocí CSSka, které k tomu slouží. |
||
Dunemaster Profil |
#6 · Zasláno: 10. 6. 2009, 18:35:21
Potřebuju to přes JavaScript. Prosím.
|
||
Chamurappi Profil |
#7 · Zasláno: 10. 6. 2009, 18:40:52
Reaguji na Dunemastera:
document.getElementById("advertising").style.display = "none"; |
||
Dunemaster Profil |
#8 · Zasláno: 10. 6. 2009, 18:43:42
Díky, tak rychlou odpověď jsem nečekal.
Jinak to není můj kód, nevím proč tam tu hvězdičku dávali. |
||
Dunemaster Profil |
#9 · Zasláno: 12. 6. 2009, 19:04:15
Skrývání funguje, ale všiml jsem si, že zůstává kus místa, kde není nic a ostatní prvky jsou posunuty víc, než kdyby tam skrývaná tabulka nebyla. Jde to nějak vyřešit?
|
||
Časová prodleva: 15 let
|
0