Jump to content

Welcome to Pure Warfare - The #1 Community for Pures

Welcome to Pure Warfare - The #1 Community for Pures, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of Pure Warfare - The #1 Community for Pures by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.

Spoiler Script Error Can Som1 Help Please


Kingrang3194

Recommended Posts

My friend made a epic Site, and im trying to add " Spoilers " so i can add images and more info on the RULES. But my buddy doesn't get on irc anymore >.< so was wondering if anyone here can help me with this HTML Code i found this script here:

 

 

<a id="show_id" onclick="document.getElementById('spoiler_id').style.display=''; document.getElementById('show_id').style.display='none';" class="link">[show]</a><span id="spoiler_id" style="display: none"><a onclick="document.getElementById('spoiler_id').style.display='none'; document.getElementById('show_id').style.display='';" class="link">[Hide]</a><br>spoiler_content</span>

 

 

When i try use this code one more time on the same phase it won't work for some reason >.< do i have to change something on the " Spoiler " script line? So it can work for the second time i use it on the same page script?

 

 

 

<tr>

<td colspan="6" valign="top" bgcolor="#000000"><!-- InstanceBeginEditable name="EditRegion3" -->

<script type="text/javascript">

function displaytext(text,type) {

document.getElementById(type).innerHTML=text

}

</script>

<table width="90%" border="0" align="center">

<tr>

<th height="25" scope="col"><h1><strong>Rules</strong></h1></th>

</tr>

<tr>

<td>1.) Alchers can't be attacked or attack someone else <a id="show_id" onclick="document.getElementById('spoiler_id').style.display=''; document.getElementById('show_id').style.display='none';" class="link">[show]</a><span id="spoiler_id" style="display: none"><a onclick="document.getElementById('spoiler_id').style.display='none'; document.getElementById('show_id').style.display='';" class="link">[Hide]</a><br>Can't not hold any weps in your bag or runes while ur alching</span>

</td>

</tr>

<tr>

<td height="35"> 2.) No spec stealing.

</td>

</tr>

</table>

<p> </p>

<!-- InstanceEndEditable --></td>

</tr>

</table>

 

I get a ERROR when i do:

 

 

<tr>

<td colspan="6" valign="top" bgcolor="#000000"><!-- InstanceBeginEditable name="EditRegion3" -->

<script type="text/javascript">

function displaytext(text,type) {

document.getElementById(type).innerHTML=text

}

</script>

<table width="90%" border="0" align="center">

<tr>

<th height="25" scope="col"><h1><strong>Rules</strong></h1></th>

</tr>

<tr>

<td>1.) Alchers can't be attacked or attack someone else <a id="show_id" onclick="document.getElementById('spoiler_id').style.display=''; document.getElementById('show_id').style.display='none';" class="link">[show]</a><span id="spoiler_id" style="display: none"><a onclick="document.getElementById('spoiler_id').style.display='none'; document.getElementById('show_id').style.display='';" class="link">[Hide]</a><br>Can't not hold any weps in your bag or runes while ur alching</span>

</td>

</tr>

<tr>

<td height="35"> 2.) No spec stealing.<a id="show_id" onclick="document.getElementById('spoiler_id').style.display=''; document.getElementById('show_id').style.display='none';" class="link">[show]</a><span id="spoiler_id" style="display: none"><a onclick="document.getElementById('spoiler_id').style.display='none'; document.getElementById('show_id').style.display='';" class="link">[Hide]</a><br>Can't steal no spec from no1 event alchers</span>

</td>

</tr>

</table>

<p> </p>

<!-- InstanceEndEditable --></td>

</tr>

</table>

 

 

Sorry for my english im not american

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
  • Create New...