|
Post by tunescool on Feb 11, 2012 9:38:07 GMT -8
since im having this new problem with my main table and IC not working i decided to to use a spoiler for all the links i have to my archives. the table that they are in with divs that put two different tables next to each other is causing my IC to not work since i moved stuff around. so i can just go back to regular table with a spoiler and trim down the size of the table. i looked on google but none of the ones i found either worked or didnt work how i wanted. it looks really simple if you know html. could you make a spoiler thats just text and opens with just links shown. i want it to look just like i have it now, with two columns of links so its not a long list. it would have to be as wide as it is now
|
|
|
Post by Wormopolis on Feb 11, 2012 17:30:43 GMT -8
so a text link that reveals a hidden div?
|
|
|
Post by tunescool on Feb 11, 2012 19:43:37 GMT -8
a text link that reveals other links, divs have just been giving me a problem
|
|
|
Post by Wormopolis on Feb 12, 2012 14:17:29 GMT -8
well it would still involve javascript in order to change what is already on the page. if you gave every link you wanted to hide the same name attribute, you can hit all of them at once.
<a href="URL" name="speciallink">link 1</a><a href="URL" name="speciallink">link 2</a>
then the text you want to hide/show would become
<a href="javascript: for (sl=document.getElementsByName('speciallink'), ss=0; ss<sl.length; ss++) { sl[ss].style.display= (sl[ss].style.display=='none' ? '' : 'none'); }">Text to hide/show</a>
|
|
|
Post by tunescool on Feb 12, 2012 17:09:54 GMT -8
so thats not a code is it
|
|
|
Post by Wormopolis on Feb 12, 2012 22:40:27 GMT -8
its not a script element, but its still javascript.
|
|
|
Post by tunescool on Feb 13, 2012 0:48:20 GMT -8
all i get it this, nothing opens, theyre all just links
|
|
|
Post by Wormopolis on Feb 13, 2012 0:53:54 GMT -8
make it style.display not just display
|
|
|
Post by tunescool on Feb 13, 2012 7:13:56 GMT -8
|
|
|
Post by Wormopolis on Feb 13, 2012 19:17:33 GMT -8
ah ok make it
<a href="javascript: for (sl=document.getElementsByName('speciallink'), ss=0; ss<sl.length; ss++) { sl[ss].style.display= (sl[ss].style.display=='none' ? '' : 'none'); void(null); }">Text to hide/show</a>
|
|
|
Post by tunescool on Feb 13, 2012 20:41:11 GMT -8
alrite i got it working when you go to the site its already open, it has to be changed to it closed first when you open the site the table is always in the postion of it open, im sure ive seen it where the table opens with the spoiler when its opened. id like that and i need the link 1s to align left and the link 2s to align the same
|
|
|
Post by Wormopolis on Feb 13, 2012 20:42:45 GMT -8
put a <br> after the hide/show link and it will force the other links below it.
if you want the links to be hidden by default, you will need to put in each link:
style="display:none"
but dont put that in the hide/show link
|
|
|
Post by tunescool on Feb 13, 2012 23:49:49 GMT -8
i got everything hidden, i tried align="left" in the links and that didnt do what i wanted
|
|
|
Post by Wormopolis on Feb 15, 2012 2:07:44 GMT -8
you have everything inside of a center tag. you are going to need to move it out of that tag or it will always center
|
|
|
Post by tunescool on Feb 15, 2012 4:19:54 GMT -8
i didnt realize that, how can i align the second link like in the pic i posted
|
|