How to change spoiler name
4 posters
Graphic Design Forum | GraphicsCode.net :: Graphic Design and Web Design Forums :: Scripts and Coding :: Markup and Style-Sheet Languages
Page 1 of 1
How to change spoiler name
Let me explain instead of "Spoiler" (when i make a spoiler) can i give it a different name?
- Spoiler:
- ^^On top of here^^
Re: How to change spoiler name
Is this for ForuMotion, or generally speaking spoilers?
Admin- Webmaster
- Posts : 1156
Join date : 2009-07-12
Re: How to change spoiler name
In HTML, there is no such thing as a "spoiler" tag, so like for the Forum Affiliates, I have used a show/hide button.
- Code:
<html>
<head>
<script type="text/javascript">
function toggleDiv()
{
if (document.getElementById("myDivBox").style.display == "block")
{
document.getElementById("myDivBox").style.display = "none";
}
else
{
document.getElementById("myDivBox").style.display = "block";
}
}
</script>
</head>
<body>
<input type="button" value="Show/Hide Affiliates" onclick="toggleDiv()">
<div id="myDivBox" style="display:none;">
CONTENT HERE
</div>
</body>
</html>
Admin- Webmaster
- Posts : 1156
Join date : 2009-07-12
Re: How to change spoiler name
Oh hehe thx alot ill try it out later....
PS Whats that about javascript?
PS Whats that about javascript?
Re: How to change spoiler name
You need the JS so you can toggle it.
Admin- Webmaster
- Posts : 1156
Join date : 2009-07-12
Re: How to change spoiler name
dotDavid wrote:You need the JS so you can toggle it.
And how can i get that? how do i install it also....????
Re: How to change spoiler name
No. The JS is in that code I gave you. Just leave that bit alone and edit the CONTENT HERE part.
Admin- Webmaster
- Posts : 1156
Join date : 2009-07-12
Re: How to change spoiler name
dotDavid wrote:No. The JS is in that code I gave you. Just leave that bit alone and edit the CONTENT HERE part.
oK THX ALOT
Re: How to change spoiler name
ok, and how to put it like david has done on GC? i mean its in place of forum name maybe, so does the code above will be placed on the forum description? just guessing XD
Re: How to change spoiler name
You can also: put it in a forum widget.... it will always display.Kasperx wrote:in the forum description yup just under the name
Or: Put it in the welcome message... only on the home page.
kewlkreator- Global Moderator
- Posts : 927
Join date : 2009-07-13
Re: How to change spoiler name
ok thx but the bad thing about modules is that you have to put it to a side
Graphic Design Forum | GraphicsCode.net :: Graphic Design and Web Design Forums :: Scripts and Coding :: Markup and Style-Sheet Languages
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum