User:Pokeresp/Sandbox: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
An attempt to create a hidden text block, which would lock after being open. If only <a>'s were interpreted as normal hyperlinks, but, sadly, embedding html is not allowed, so <html> won't work...
==Hidden text block==
===Attempt 1. Unsuccessful.===
An attempt to create a hidden text block, which would lock after being open.


{|table width="500px" border="1px"
{|table width="500px" border="1px"
Line 30: Line 32:
</html>
</html>
</code>
</code>
|}
If only <a>'s were interpreted as normal hyperlinks, but, sadly, embedding html is not allowed, so <html> won't work...
===Attempt 2. Semi-successful===
{| class="expandable"
|-
!align=left|Something is hidden here
|-
| Well, this table has no border and no fixed width, but its title won't move when "[show]" is clicked. At least in my browser.
|}
|}

Revision as of 16:18, 6 August 2008

Hidden text block

Attempt 1. Unsuccessful.

An attempt to create a hidden text block, which would lock after being open.

<html>
<a href="javascript:void()" onclick="this.style.display='none';document.getElementById('songfirstverse').style.display='block'">Sing a song, please!</a>

I wanna be the very best
Like no-one ever was.
To catch them is my real test,
To train them is my cause.
<a href="javascript:void()" id="showkanto" name="showkanto" onclick="this.style.display='none';document.getElementById('showjohto').style.display='none';document.getElementById('kantoverse').style.display='block'">Kanto, please!"</a>
<a href="javascript:void()" id="showjohto" name="showjohto" onclick="this.style.display='none';document.getElementById('showkanto').style.display='none';document.getElementById('johtoverse').style.display='block'">Johto, please!"</a>

I will travel across the land,
Search in far and wide.
Is Pokémon to understand
The power that's inside?

My whole life has led to this,
Time to test my skills
I know I just can't miss
Gonna show the world

</html>

If only <a>'s were interpreted as normal hyperlinks, but, sadly, embedding html is not allowed, so <html> won't work...

Attempt 2. Semi-successful