|
Viewing Single Post From: [CODE] Advanced SOTW
|
|
HolySavior
|
Dec 10 2005, 01:11 AM
|
if( holy + alcohol){ happycoding()}
- Posts:
- 6,796
- Group:
- Members
- Member
- #23,699
- Joined:
- July 7, 2004
- I'm Browsing With
- Firefox 3
- My Board URL
- http://javascriptin.com
|
Here is a more advanced SOTW for you guys. instead of always retyping no winner and stuff like that. it does it for you 
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 = 0if (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'> </div> </div>") } </script>
Added - Code:
-
//AS [/color]
|
|
|