paul
Not New Member
Posts: 37
paul said 0 great things
|
Post by paul on Feb 21, 2012 9:51:59 GMT -8
Guys, I'm looking for a news fader code. I want the news fader to be divided in 3 columns. I want 1 left hand side to be a zulu (time) round clock, and the middle I want my news, and the right hand side I want a badge. How do I do that. It's actually a military forum. Please help as soon as possible please I really need this fast.
|
|
paul
Not New Member
Posts: 37
paul said 0 great things
|
Post by paul on Feb 21, 2012 9:59:49 GMT -8
|
|
paul
Not New Member
Posts: 37
paul said 0 great things
|
Post by paul on Feb 21, 2012 10:07:14 GMT -8
In fact I want same stuff that's on the link to my forum how do I do that?
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Feb 22, 2012 6:16:16 GMT -8
Visit this website to get the clock: www.worldtimeserver.com they'll give you a code. Do you want the newsfader to sroll up, down or sideways? Once we have that info the setup is as follows: <center><table align="center" border="0" width="92%" cellspacing="0" cellpadding="0" class="bordercolor"> <tr> <td width="20%" valign="top" class="windowbg"> <!--Clock Code goes here--> </td>
<td width="60%" class="windowbg2" valign="top"> <marquee behavior="scroll" direction="up" onmouseover="this.stop();" onmouseout="this.start();" width="100%" height="100%"> <!--Scrolling text goes here--> </marquee></td>
<td width="20%" valign="top" class="windowbg"> <!--Image goes here--> </td> </tr> </table> </center>
|
|
paul
Not New Member
Posts: 37
paul said 0 great things
|
Post by paul on Feb 22, 2012 7:45:22 GMT -8
Where should I put the code in, Header or footer?
|
|
paul
Not New Member
Posts: 37
paul said 0 great things
|
Post by paul on Feb 22, 2012 7:49:01 GMT -8
And the Image should I get it on photo bucket or Image shark?
|
|
paul
Not New Member
Posts: 37
paul said 0 great things
|
Post by paul on Feb 22, 2012 8:58:18 GMT -8
I did everything, but how should I make the text bigger, coz mine is small.
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Feb 22, 2012 10:15:13 GMT -8
The code should go in Global Header (if you want it visible on all pages) or Main Header (for visible only on home page)
The image hosting is just personal preference.
To increase the font size of the scrolling text wrap it in a font tag like so:
<marquee><font size="4">Scrolling text</font></marquee>
You can even go all out and create section headers and dividers:
<marquee><font size="5">Division Header</font><hr width="65%"><font size="3">This is pertinent paragraph text that relates to the above header.</font> <hr width="85%"><font size="5">2nd Division Header</font><hr width="65%"><font size="3">This is pertinent paragraph text that relates to the second header.</font></marquee>
|
|
paul
Not New Member
Posts: 37
paul said 0 great things
|
Post by paul on Feb 22, 2012 10:56:18 GMT -8
Check the problem I have. Check my testing forum. samuel-akanbi.proboards.comI have so many errors, check it out and help me fix them. Where is the font tag if I may ask, and how do I make that table only come on homepage. Coz It's in the Main header.
|
|
paul
Not New Member
Posts: 37
paul said 0 great things
|
Post by paul on Feb 22, 2012 11:01:05 GMT -8
Where's the font tag if I may ask?
|
|
paul
Not New Member
Posts: 37
paul said 0 great things
|
Post by paul on Feb 22, 2012 11:12:52 GMT -8
How do I make the newsfader thingy only comes on homepage, not everywhere, coz the code is in Main Header.
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Feb 22, 2012 12:20:41 GMT -8
You have to insert the <font> tag yourself. Are you familiar with HTML?
If not then I'll teach you some:
If you want to modify text on your page use the font tags <font> </font>
This is the opening tag: <font> This is the closing tag: </font>
Right now they don't really modify anything so lets add an attribute. <font size=""> </font> Attributes are only added to the opening tag. The one above will allow you to control the size of your font, but you have to assign it a value:
<font size="4"> </font> Any font within those tags will be large. (The default size is 2)
If your forget to add the closing tag: </font> then all the font that is behind the opening tag <font size="4"> will be large.
You can have multiple attributes per tag. <font size="3" color="yellow"> </font> This will make the font larger and yellow.
For the home page only find the opening table tag:
<table align="center" border="1" width="92%" cellspacing="0" cellpadding="0" class="000000">
now lets add this bit to it:
<table align="center" border="1" width="92%" cellspacing="0" cellpadding="0" class="000000" id="newsfade" style="display:none;">
Then paste this under the table code in the Main Header:
<script type="javascript/text"> <!-- var news = document.getElementById('newsfade'); if(pb_action=='home'){ news.style.display='block'; } --> </script>
|
|
paul
Not New Member
Posts: 37
paul said 0 great things
|
Post by paul on Feb 22, 2012 19:40:10 GMT -8
Where do I put the font tag in, Main header or footer?
|
|
paul
Not New Member
Posts: 37
paul said 0 great things
|
Post by paul on Feb 22, 2012 19:50:34 GMT -8
There are some errors, let me show you what is in my main header <center><table align="center" border="1" width="92%" cellspacing="0" cellpadding="0" class="000000"id="newsfade" style="display:none;"> <script type="javascript/text"> <!-- var news = document.getElementById('newsfade'); if(pb_action=='home'){ news.style.display='block'; } --> </script> <tr> <td width="20%" valign="top" class="windowbg"> <embed src="http://www.worldtimeserver.com/clocks/wtsclock024.swf?color=000000&wtsid=UTC" width="200" height="200" wmode="transparent" type="application/x-shockwave-flash" /> </td> <td width="60%" class="windowbg2" valign="top"> <marquee behavior="scroll" direction="up" onmouseover="this.stop();" onmouseout="this.start();" width="100%" height="100%"> Welcome to the United States Army Forum ! Headquarters, United States Army (HQDA) Chief of Staff (CSA) - Vice Chief of Staff (VCSA)- LTG Chocoholic... Deputy Chief of Staff for Personnel (DCSPER)- Commanding General, Training & Doctrine Command (CG TRADOC) Read more: www.armyhq-infiltary.proboards.com/#ixzz3Ho4Fg0oB </marquee></td> <td width="20%" valign="top" class="windowbg"></td> </tr> </table> </center> Help with the errors.
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Feb 22, 2012 20:37:59 GMT -8
Okay first up this part: <script type="javascript/text"> <!-- var news = document.getElementById('newsfade'); if(pb_action=='home'){ news.style.display='block'; } --> </script> goes after this part </table></center> <!--goes here--> Secondly you type the font tags in wherever you want them to go. so in this part of the code put font tags around the parts you want to change: (This is just an example, you can change it however you like:) Also if you want to create a new line of text use the <br /> tag <font size="4" color="red">Welcome to the United States Army Forum!</font><br/> <br/> <font size="3" color="green">Headquarters, United States Army (HQDA)</font><br/> <br/> Chief of Staff (CSA) -<br/> <br/> Vice Chief of Staff (VCSA)- LTG Chocoholic...<br/> <br/> Deputy Chief of Staff for Personnel (DCSPER)-<br/> <br/> Commanding General, Training & Doctrine Command (CG TRADOC)<br/> <br/> Read more: www.armyhq-infiltary.proboards.com/#ixzz3Ho4Fg0oB
Feel free to change it up make it whatever size or color you want. Use as many <font> </font> tags as you need. But again remember to have both the open <font> and the closing </font> tags.
|
|