SMF For Free Support Forum
Signup For Free Forum
September 02, 2010, 11:47:13 pm
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Welcome to SMF For Free. The best free SMF Host
Home
Help
Search
Arcade
Gallery
Login
Register
SMF For Free Support Forum
>
SMF For Free Support
>
SMF For Free Codes and Support
(Moderator:
Agent Moose
) >
[Code] News Box Clickables
Pages: [
1
]
« previous
next »
Print
Author
Topic: [Code] News Box Clickables (Read 4183 times)
0 Members and 1 Guest are viewing this topic.
slayer766
SMF For Free Full Member
Offline
Posts: 203
[Code] News Box Clickables
«
on:
February 01, 2008, 09:26:43 am »
Code name: An announcement box with clickable sections
Preview:
http://divinityrpg.smfforfree4.com/index.php
Where it goes: Go to your Admin tab and click on Manage Styles > Edit Headers/Footers > Footers or Headers:
Quote
<script type='text/javascript'>
//Code here by slayer766
//from thecodingzone.com
News="
Welcome!<br />Click on one of the clickables to reveal more information.<br />Enjoy the board!
"
document.write('
<div class="catbg"><img src="
http://209.85.62.23/style_images/1/nav_m.gif
"> <i>Clickables</i></div><div class="titlebg"><a href="javascript:Click0();"><span style="color:red">+</span></a> News Title Here1 | <a href="javascript:Click1();"><span style="color:red">+</span></a> News Title Here2 | <a href="javascript:Click2();"><span style="color:red">+</span></a> News Title Here3 </div><div class="tborder" align="center"><span id="section">'+News+'</span><br /></div><br />
');
function Click0(){
document.getElementById("section").innerHTML="
Text Here1<br /><div align='right'><a href='javascript:Close0();'><b>Close</b></div>
"
}
function Close0(){
document.getElementById("section").innerHTML=News
}
function Click1(){
document.getElementById("section").innerHTML="
Text Here2<br /><div align='right'><a href='javascript:Close1();'><b>Close</b></div>
"
}
function Close1(){
document.getElementById("section").innerHTML=News
}
function Click2(){
document.getElementById("section").innerHTML="
Text Here3<br /><div align='right'><a href='javascript:Close2();'><b>Close</b></div>
"
}
function Close2(){
document.getElementById("section").innerHTML=News
}
</script>
You can change what's in
RED
.
«
Last Edit: February 05, 2008, 10:52:32 am by slayer766
»
Logged
LaundryLady
Helpers
Offline
Posts: 3230
Internet Challenged
Re: [Code] News Box Clickables
«
Reply #1 on:
February 01, 2008, 09:34:33 am »
You may want to give more directions for using this code. Some members are very new to using codes and some of us(like me) are slow learners.
Previews if possible are great, instructions on where to change the data are really helpful.
Good work by the way.
Logged
The Laundry Room
Celebrus
SMF For Free Hero
Offline
Posts: 941
Re: [Code] News Box Clickables
«
Reply #2 on:
February 02, 2008, 03:45:24 am »
LL, Have you seen the News Box on SMC? This works similarly, you can click add links add have expandable content in them and stuff. The way SMC has a member legend there.
I think I should improve my news box(which means making it customizable) and release it lol.
Logged
LaundryLady
Helpers
Offline
Posts: 3230
Internet Challenged
Re: [Code] News Box Clickables
«
Reply #3 on:
February 02, 2008, 05:59:05 am »
Choices are always good, that way people can pick what works for them the best.
Logged
The Laundry Room
slayer766
SMF For Free Full Member
Offline
Posts: 203
Re: [Code] News Box Clickables
«
Reply #4 on:
February 05, 2008, 10:53:18 am »
Added a preview and what you can change. ^_^
Logged
Molly
SMF For Free Full Member
Offline
Posts: 154
Re: [Code] News Box Clickables
«
Reply #5 on:
February 05, 2008, 08:24:49 pm »
Awesome way to do the news box! way to go!
Logged
Pinceta
SMF For Free Newbie
Offline
Posts: 8
Give to me all good codes ....
Re: [Code] News Box Clickables
«
Reply #6 on:
May 13, 2008, 09:59:21 am »
pls pls pls some to help me ,,,
I wanna text in this to be in margue pls !!!
and if u can to make to be under ads
pls guys i really need this ...
TNX
«
Last Edit: May 13, 2008, 10:02:54 am by Pinceta
»
Logged
josh555
SMF For Free Full Member
Offline
Posts: 119
Re: [Code] News Box Clickables
«
Reply #7 on:
May 13, 2008, 08:58:28 pm »
well smfforfree4 is down so if you want to preview it on my site its there.
Joshstestforum.smfforfree2.com
and for marquee you use the html tags.<marquee> I think these are the correct tags.</marquee>
Logged
Life goes by so fast, you only do what you think is right.
Pinceta
SMF For Free Newbie
Offline
Posts: 8
Give to me all good codes ....
Re: [Code] News Box Clickables
«
Reply #8 on:
May 14, 2008, 05:54:04 am »
No man it's not working i check that before but it' s not working ... i think that moose need to fix this ...
Logged
LaundryLady
Helpers
Offline
Posts: 3230
Internet Challenged
Re: [Code] News Box Clickables
«
Reply #9 on:
May 14, 2008, 06:36:13 am »
Post the code exactly as you put it on your forum so that Moose can see what you did. Also post your forum URL so we can take a look at the code as it is on your forum.
Logged
The Laundry Room
WeirdoScape
SMF For Free Newbie
Offline
Posts: 4
http://report.smfforfree2.com/index.php
Re: [Code] News Box Clickables
«
Reply #10 on:
May 14, 2008, 03:45:36 pm »
Thanks! i really like it
Logged
http://report.smfforfree2.com/index.php
Go! Or a least be happy =D
nickrulz1
SMF For Free Hero
Offline
Posts: 546
The Off Topics Owner
Re: [Code] News Box Clickables
«
Reply #11 on:
September 10, 2009, 01:09:27 pm »
how do you make it so its under the nex section instead of it being right at the top or right at the bottom
Logged
http://theofftopics.smfforfree.com/
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
SMF For Free Site
-----------------------------
=> Announcements
=> General Discussion
=> Suggestions
-----------------------------
SMF For Free Support
-----------------------------
=> General Support
=> Guides and Tutorials
=> Stylesheet Codes
=> Stylesheet Requests and Support
=> SMF For Free Codes and Support
===> Code Requests
=> Bugs
=> Report Terms of Service Violations
-----------------------------
General Stuff
-----------------------------
=> General Chat
=> Advertise Your Board/Blog
=> Programming
===> HTML
===> JavaScript
===> C,C++
===> Java
===> .Net
===> PHP
===> Visual Basic
=> Gaming
===> PC Games
===> Nintendo
===> Playstation
===> Xbox / Xbox 360
=> Graphics
===> Living Avatars
Loading...