Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[CODE] Advanced SOTW
Topic Started: Dec 10 2005, 01:11 AM (5,654 Views)
HolySavior
Member Avatar
if( holy + alcohol){ happycoding()}
 *   *   *   *   *   *   *  
Here is a more advanced SOTW for you guys. instead of always retyping no winner and stuff like that. it does it for you :D

red=title
blue=image of winner
green=name of winner
purple = if you put a 1 (one) it will show the winner, but if you put a 0 (zero) it will show no winner this week.

Quote:
 

<script language="javascript">
/*Created by HolySavior of ifsupport.net */
var title = "Signature of the Week"
var pic = "http://img157.exs.cx/img157/559/ppfnew4fn.gif"
var name = "Holy"
var yes = 0

if (yes >= 1){
document.write("<div class='tableborder' align='center'>")
document.write("<div class='maintitle' align='center'>"+title+"</div>")
document.write("<div class='row4' align='center'><img src='"+pic+"'></div>")
document.write("<div class='darkrow2' align='center'>This Weeks Winner is " +name+"</div></div>")
}
else if (yes < 1){
document.write("<div class='tableborder' align='center'>")
document.write("<div class='maintitle' align='center'>"+title+"</div>")
document.write("<div class='row4' align='center'>NO WINNER THIS WEEK</div>")
document.write("<div class='darkrow2' align='center'> &nbsp; </div> </div>")
}
</script>

Added
Code:
 
//AS [/color]
Online Profile Quote Post Goto Top
 
.Scott
Member Avatar
aka slayer766
 *   *   *   *   *   *   *  
HA! That's pretty cool Savior. Good job. ;)
Offline Profile Quote Post Goto Top
 
dx169
Quit
 *   *   *   *   *   *  
cool
Offline Profile Quote Post Goto Top
 
nehe32
Member
 *  
Where do you put it, in under <% Board %> in the board wrappers?
Offline Profile Quote Post Goto Top
 
RubyNut
Member Avatar
You've Been Spotted, RUN!!
 *   *   *   *  
I Think it Should Be Put into The Footer, I'm Not Sure

Nice Code Though
Offline Profile Quote Post Goto Top
 
squallzell
Member
 *  
Nice code
Offline Profile Quote Post Goto Top
 
Viral.
Member Avatar
Member
 *   *   *   *   *   *  
thats nice, but preview?
Offline Profile Quote Post Goto Top
 
DADestiny
Member Avatar
New SM is made
 *   *  
dont ask were never going to see it just make the board yourself and then i bet youll see what it can do
Offline Profile Quote Post Goto Top
 
t baum
Member Avatar
Got Productions Admin
 *  
uh how do you get it to show the url... cuz i've been doing this :@
Offline Profile Quote Post Goto Top
 
~EnIgMa~
Member
 *  
nice code......i've been lookin for sumthin like his
Offline Profile Quote Post Goto Top
 
Grandam99
Member Avatar
Member
 *   *   *   *  
This is an awesome code. I'm using it right now. Thanx for making it and sharing with us. You are a god!!!!!. :lol: 10/10 (You don't see me rate 10/10 normally, but this one deserves it.) :)
Offline Profile Quote Post Goto Top
 
t baum
Member Avatar
Got Productions Admin
 *  
nvm figured it out.
i forgot to change the o to 1.
Offline Profile Quote Post Goto Top
 
Fernicia
Member Avatar
I aint teh veep
 *   *   *   *   *  
Works brilliantly thanks!
Offline Profile Quote Post Goto Top
 
NojTB
-
 *   *   *   *  
nice yearly bump.
saying thanks on a old topic isint needed <_<
Offline Profile Quote Post Goto Top
 
.Shaun
Member Avatar
Member
 *   *  
That is a really nice code :) May use it sometime :P
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Code Snippets · Next Topic »
Add Reply