Rivela/Cela?
Rivela/Cela?
Playstation 4Pro, Nintendo Switch, Playstation 3, Playstation Vita, Playstation TV, Playstation Portable, Sega Dreamcast, Sega Saturn, Sony PSX, Sega Mega Drive, Mini SNES - PC: CPU Intel i5 2500K ,MoBo Asus , 4x2GB Corsair Vengeance DDR3 1600 Mhz , GeForce GTX 570 1280MB DDR5, SSD OCZ 60 GB, HD Maxtor SATA 320 GB 7200 rpm, Sound Blaster Extreme Gamer Fatal1ty 64 MB, sistema audio Creative 5.1 -
Ha un nonsoché di antico quel "svela-cela", mi fa tornare giovane ricordando le inutili lezioni di divina commedia, frasi tipo "vieni meco" e altre medievalerie del genere
Vuolsi così colà dove si puote ciò che si vuole. E più non dimandare
ed elli avea del cul fatto trombetta
- in una società in cui ogni più piccolo diritto è perseguito, nessuno ha più diritti - Kungfucio
- sempre sano e ricco, mai povero e malato - kungfucio Vol.2
- meglio un osso oggi che due domani - Alì Baubau e i quaranta cagnoni
Se non ricordo male su VB si potevano impostare i tag andandoa definire dell'html/JS...
Kikko se posti il codice per il "svela/cela" vedo se riesco a darvi una mano
CASE: Cooler Master 690 II Advanced version USB 3.0 CPU: Intel i5 4670K + Arctic Freezer i30 RAM: Corsair 16GB /1600Mhz Vengeance LP Blue VGA: nVidia Gigabyte GTX 770 2GB MOBO: Gigabyte GA-Z87X-UD3H HDD: Samsung 840PRO 256GB ALI: Antec HCG-M620W HC-GAMER MONITOR: Eizo FS2333-BK
Codice:<div style="margin: 5px;"> <div class="smallfont" style="margin-bottom: 2px;"> <input value="Svela" style="margin: 0px; padding: 0px; width: 125px; font-size: 10px;color:black" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.value = 'Cela'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.value='Svela'; }" type="button"> </div> <div class="alt2" style="border: 1px inset; padding: 6px;"> <div class="spoiler" style="display: none;">{param}</div> </div> </div>
Ho dato uno sguardo veloce e sicuramente e' un problema della skin mobile, in quanto quando si fa click sul pulsante di spoiler fa
mentre nella skin mobileCodice:this.parentNode.parentNode.getElementsByTagName('div')[1]
ritorna una lista di un solo elemento e [1] ritorna undefined...Codice:this.parentNode.parentNode.getElementsByTagName('div')
dovreste provare a cambiare da:
a:Codice:getElementsByTagName('div')[1].getElementsByTagName('div')[0]
Non sono sicurissimo funzioni direttamente, non ho avuto modo di testare a fondoCodice:getElementsByClassName('spoiler')
CASE: Cooler Master 690 II Advanced version USB 3.0 CPU: Intel i5 4670K + Arctic Freezer i30 RAM: Corsair 16GB /1600Mhz Vengeance LP Blue VGA: nVidia Gigabyte GTX 770 2GB MOBO: Gigabyte GA-Z87X-UD3H HDD: Samsung 840PRO 256GB ALI: Antec HCG-M620W HC-GAMER MONITOR: Eizo FS2333-BK