July 24, 2024, 08:44:28 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  
  Show Posts
Pages: [1] 2
1  Coding Community / Coding Snippets / Fade Locked Topics In Forum View on: May 03, 2009, 11:10:25 am
What does it do: It will fade all locked topics in forum view.
Preview: None
Where does it go: Footers

<script type="text/javascript">
/*Vitality - ZBCode*/
var getTd=document.getElementsByTagName("td")
var gotTD=getTd.length;
if(getTd[gotTD].className=="windowbg"&&getTd[gotTD].innerHTML.indexOf("<span id=")!=-1&&getTd[gotTD].innerHTML.indexOf("<img")!=-1){
You can edit that last line to change the opacity. Just change the 0.7 to whatever you want. The lower the number, the more you won't be able to see.
2  Coding Community / Coding Snippets / Re: Alert on Logout on: April 22, 2009, 08:04:44 pm
Good to see you've been using classic JS. I have to break out of my jQuery phase right now  Grin
Nice work Moose
3  Official / Announcements / Re: Big Ol' Upgrade! on: April 17, 2009, 08:58:42 pm
This looks awesome guys! I really love the new look.  Afro
4  Coding Community / Coding Snippets / Quick Announcements on: March 28, 2009, 12:53:32 pm
A quick announcement system where a new tab is added next to the "Members" tab, and when you hover over it, news will appear below the "Welcome to SMF For Free" text right above the tabs. When your mouse leaves the news area (the added news), it will collapse.
<script src="/jquery.js"></script>

<script type="text/javascript">
/*Vitality - TCZ|SMFforfree Support|Revolution X*/
var thenewnews="THIS IS THE NEWS!";

$("td.maintab_back:contains('Members')").after("<td id='thetab' class='maintab_back' style='cursor:pointer'>News</td>");$("td.titlebg2:contains('Welcome to SMF For Free')").append("<div id='thenews' style='display: none;'><br />"+thenewnews+"</div>");$("#thetab").mouseover(function(){$("#thenews").show();});$("#thenews").mouseout(function (){$("#thenews").hide();});
Quickly edit the line
var thenewnews="THIS IS THE NEWS!";
with the news you would like to have shown. Edit the part between the " ".
5  Coding Community / Coding Snippets / Re: Scroll Up In Topics on: November 28, 2008, 10:02:55 pm
Thanks for that Moose!
6  Coding Community / Coding Snippets / Scroll Up In Topics on: November 27, 2008, 10:53:32 pm
A simple script that will place a link next to your report to a moderator link, and when it is clicked, it will scroll to the top of the page. I found scrolling back up to read previous posts on certain pages to be a bit tedious, so I wrote this up really quickly.
/*Vitality of TCZ || smfsupport || Revolution X*/
$("a:contains('Report to moderator')").after(" <a href='javascript:window.scrollTo(0,0);'>Go Up</a>");
7  Coding Community / Coding Snippets / Re: Add Navigation to Bottom of Topics on: November 15, 2008, 06:25:30 pm
Simple, but effective. I was actually thinking about making this yesterday Tongue
Ahhh, you use classic js. Nice  Wink
8  Coding Community / Coding Snippets / Re: UserBlog on: November 15, 2008, 11:16:53 am
Great mod Moose! Really cool, and I'm sure it will be quite popular.
9  Coding Community / Coding Snippets / Re: Change Username Colors Across Board on: November 13, 2008, 04:58:52 pm
EDIT: A newer version is updated in the first post. It's a bit faster, smaller and more efficient!
10  Coding Community / Coding Snippets / Toggle Category Headers on: November 12, 2008, 09:25:00 pm
It does what the title says. If you click on the header of a category, it will collapse, and if you click it again, it will expand. I don't know how many browsers it will work in, I know it works in FF though. It's just something I whipped up very, very quickly.
/*Toggle Category Headers By Vitality of TCZ || Revolution X*/
$(".catbg").click(function (){$(this).next().toggle();});
11  Coding Community / Coding Snippets / Change Username Colors Across Board on: November 11, 2008, 10:47:20 pm
If you're an admin, and your group color is red, this will find every link to your profile, and change the color of it to the color the group; in this case, it would be red. You can have multiple names colored, and in different colors.
/*Change username colors across board by Vitality of TCZ || Revolution X*/
var a = document.getElementsByTagName('a')
function changer (xid,xuser,xcolor){
if(a[i].href.match(xid) && a[i].innerHTML.match(xuser)){
All you need to edit is that line at the bottom, right before the final script tag.
Here is the outline if you're unsure of what goes where/if you'd like to add more (for reference):

12  Coding Community / Coding Snippets / Re: Add Text To Copyright on: November 10, 2008, 06:25:50 pm
Tested it in IE 7 on my test for, (Server 3) didn't work for me either. Trying to make it work though.
But try this one, idk if it will work or not.
var CopyRight = "Testing, testing. 1, 2, 3.";

//Created by Agent Moose (smcodes.smfforfree3.com)
$("#footerarea").append("<center><span class='smalltext'>" + CopyRight + "</span></center>");
If you're going to add text or something of the like in jQuery, you should use append(). I altered the snippet in the quote.
13  Coding Community / Coding Snippets / Re: Add Text To Copyright on: November 10, 2008, 04:32:14 pm
It should. I don't see why it wouldn't. The script isn't simply adding something to the footerarea.
14  Coding Community / Coding Snippets / Re: Resize Post Area on: November 04, 2008, 07:28:40 pm
Nice original code, pretty cool. Nice conversion Moose Wink
15  Coding Community / Other Forum Coding / Re: [IF] Quick PM on: November 04, 2008, 07:16:13 pm
celebrus is right. Just save the script on notepad as a .gif Wink It prevents basic ripping of the code.
New screen shots added!
Pages: [1] 2
Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy