[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]

/prog/ - Programming

Programming board

Catalog

8chan Bitcoin address: 1NpQaXqmCBji6gfX8UgaQEmEstvVY7U32C
The next generation of Infinity is here (discussion) (contribute)
A message from @CodeMonkeyZ, 2ch lead developer: "How Hiroyuki Nishimura will sell 4chan data"
Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, pdf
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 1 per post.


File: 1429487287910.jpg (661.72 KB, 1236x917, 1236:917, -The-Magic-of-the-Bad-Era-….jpg)

dc776b No.2149

I'm trying to do more than one spoiler on a html document.

Yet when I click the 2nd spoiler button to show content, it displays the first spoiler content.

Help please.

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<meta name="generator" content="CoffeeCup HTML Editor (www.coffeecup.com)">

<meta name="dcterms.created" content="Sun, 19 Apr 2015 20:52:42 GMT">

<meta name="description" content="">

<meta name="keywords" content="">

<title></title>

<!–[if IE]>

<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>

<![endif]–>

</head>

<body>

<a id="show_id" onclick="document.getElementById('spoiler_id').style.display=''; document.getElementById('show_id').style.display='none';"

class="link"><b><center> – click on me – Police Match DNA, Charge Man In Brutal Rape & Assault Of 81-Year-Old Woman – click on me – </center></b></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"><b>[Hide]</B></a>

<br>

<center><img src="perp/ME42F.png" width="387" height="248" alt="" title="" /></center>

<center>

<p>An 81-year-old woman was beaten, raped and terrorized for hours.Now, Columbus police have charged a suspect.</p>

The elderly victim spoke with 10TV New's Laura Borchers.Police say they now have DNA evidence that links Shawn Malone Jr to the crimes.

They did not have to go far for an arrest.</p>

<p>

Malone was in the Franklin County jail on a burglary charge.

Detectives say he's the suspect in a string of burglaries in addition to the abuse of the elderly woman.

</p>

<p>

"He picked me up by my heels and was beating me on the floor to wake me up again, because I was unconscious at least two times that I know," she said.

The woman said the suspect broken into a basement window, then crept upstairs to the room where he attacked her with a knife.

She says he left her with serious injuries including deep cuts, broken ribs, a broken tailbone and multiple deep bruises.

</p>

<p>

Columbus police confirmed she was abused and raped for hours January of 2014. The case remained open until they were able to match physical evidence with Malone. Monday afternoon they presented her with a photo line-up that included Malone's mug shot.

</p><p>The victim says after revisiting her memories of that night, she's given thought to what she wishes was Malone's punishment.

</p>

</center>

<center><a href="https://archive.today/ME42F">https://archive.today/ME42F</a></center>

<center><a href="https://web.archive.org/web/20150409055355/http://www.10tv.com/content/stories/2015/04/06/columbus-ohio-police-match-dna-charge-man-in-brutal-rape--assault-of-81-year-old-woman.html">https://web.archive.org/web/20150409055355/http://www.10tv.com/content/stories/2015/04/06/columbus-ohio-police-match-dna-charge-man-in-brutal-rape--assault-of-81-year-old-woman.html</a>

</center>

</span>

</body>

<body>

<center>

<a id="show_id" onclick="document.getElementById('spoiler_id').style.display=''; document.getElementById('show_id').style.display='none';"

class="link"><b>[Show]</b></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"><b>[Hide]</B></a>

<br>dog</span>

</center>

</body>

</html>

fc4e0a No.2162

You can't have multiple elements with the same id in a webpage. Also please don't post all of your retarded HTML.


93afea No.2164

>>2149

>Google

>CoffeeCup

>Generated code

>Both styles and code are embedded

>Image tag without image

You could have at least hosted this yourself.

HTML is for structure

CSS is for presentation

JS is for behavior

It's bad practice to put these things into one place.

Anyways…

.spoiler {
background-color: #000;
color: #000;
}
.spoiler:hover {
color: #FFF;
}

You can fill in the rest with JS. But I should warn you that what you are doing is bad practice in both concept and implementation. Keep is simple.




[Return][Go to top][Catalog][Post a Reply]
Delete Post [ ]
[]
[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]