Add to Google

How Do You Make A Thingy Like Marquee - How To Do Whats On Top of TRAP17 Forums Pages

free web hosting
Open Discussion > Have your say > General Talk

How Do You Make A Thingy Like Marquee - How To Do Whats On Top of TRAP17 Forums Pages

scab_dog
How Do You Do This:
user posted image
Its Like a Marque, But Acts Like a GIF, The One On the Top of TRAP17 Forum Pages. I Really like to know how to do this.

Reply

Vacant
QUOTE(daman @ May 2 2005, 07:03 AM)
How Do You Do This:
user posted image
Its Like a Marque, But Acts Like a GIF, The One On the Top of TRAP17 Forum Pages. I Really like to know how to do this.
*



Ok, so what i think you mean is a banner that changes the message randomly to 1 of several presets. If i were you I'd use javascript, check out http://www.javascriptsource.com or http://www.dynamicdrive.com for some premade scripts!

Hope that helps!

Vacant.

Reply

snlildude87
1. Make a file called message.js
2. In message.js, enter the following code:
CODE
// CREDITS:
// Messagebox with fadeing Background
// By Peter Gehrig
// Copyright (c) 2004 Peter Gehrig. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com
// info@24fun.com
// 1/08/2004

// IMPORTANT:
// If you add this script to a script-library or script-archive
// you have to add a highly visible link to
// http://www.24fun.com on the webpage
// where this script will be featured

// set your messages. Add as many as you like (you may add additional HTML-tags)
var text=new Array()
text[0]="message 1"
text[1]="message 2"
text[2]="message 3"
text[3]="message 4"


// set the corresponding links
// If you don't want to link a message just add a "#" instead of an URL
var textlink=new Array()
textlink[0]="http://www.computinghost.com" //link for message 1
textlink[1]="#" //link for message 2
textlink[2]="http://www.trap17.com"  //link for message 3
textlink[3]="http://www.astahost.com"  //link for message 4


// set the corresponding targets
// Acceptable values are "_blank", "_self", "_top" or the name of any frame
var texttarget=new Array()
texttarget[0]="_blank"
texttarget[1]="_self"
texttarget[2]="_top"

// set the font of the messages
var textfont="Verdana"

// set the font-color of the messages
var textfontcolor="#000000"

// set the rollover-fontcolor of the messages
var textfontcolorrollover="#FF0000"

// set the font-size of the messages (CSS-values)
var textfontsize=8.5

// set the font-size for Netscape 4x (HTML-values)
var textfontsizeHTML=2

// set the font backgroundcolor of the textbox
var textbgcolor="#FFFFFF"

// set the textweight (normal or bold)
var textweight="nomal"

// set the fontstyle (normal or italic)
var textitalic="normal"

// set the width of the textbox (pixels)
var textwidth=700

// set the height of the textbox (pixels)
var textheight=50

// set the pause (seconds)
var textpause=7

// set the width of the border
var textborder=1

// set the color of the border
var textbordercolor="#FF0000"

// set the horizontal alignment of the messages (center, left, right)
var textalign="center"

// set the vertival alignment of the messages (middle, top, bottom)
var textvalign="middle"

// do not edit below this line
var textdecoration="none"
var textweightA="<b>"
var textweightB="</b>"
var textitalicA=""
var textitalicB=""
var transparency=100
var transparencystep=2

var x_pos=0
var y_pos=0
var i_text=0
var textsplit=""
var i_textsplit=0
var i_mark=0
var tickercontent
var pausefade=30
textpause*=1000

var oneloopfinished=false

var browserinfos=navigator.userAgent
var ie=document.all&&!browserinfos.match(/Opera/)
var ns4=document.layers
var ns6=document.getElementById&&!document.all&&!browserinfos.match(/Opera/)
var opera=browserinfos.match(/Opera/)  
var browserok=ie||ns4||ns6||opera

function changecontent() {
getcontent()
i_text++
if (i_text>=text.length) {i_text=0}
if (ie) {
 ticker.innerHTML=content
 fadeout()
}
if (opera || ns6) {
 document.getElementById('ticker').innerHTML=content
 var texttimer=setTimeout("changecontent()",2*textpause)
}
if (ns4) {
 document.roof.document.ticker.document.write(content)
 document.roof.document.ticker.document.close()
 var texttimer=setTimeout("changecontent()",textpause)
}
}

function fadein() {
if (transparency<100){
 transparency+=transparencystep
 if (ie) {
  document.all.tickerbg.filters.alpha.opacity=transparency
 }
 var fadetimer=setTimeout("fadein()",pausefade)
}
else {
 clearTimeout(fadetimer)
 setTimeout("changecontent()",1000)
}
}

function fadeout() {
if (transparency>0){
 transparency-=transparencystep
 if (ie) {
  document.all.tickerbg.filters.alpha.opacity=transparency
 }
 if (ns6) {
  document.getElementById('tickerbg').style.MozOpacity=transparency/100
 }
 var fadetimer=setTimeout("fadeout()",pausefade)
}
else {
 clearTimeout(fadetimer)
 setTimeout("fadein()",textpause)
}
}

getcontent()
function getcontent() {
if (ie || opera) {
 var tablewidth=textwidth-2*textborder
 var tableheight=textheight-2*textborder
}
else {
 var tablewidth=textwidth
 var tableheight=textheight
}
if (ie || ns6) {
 var padding = parseInt(textborder)+3
 content = "<table width=" + tablewidth + " height=" + tableheight + " cellpadding=" + padding + " cellspacing=0 border=0><tr valign=" + textvalign + "><td align=" + textalign + ">"
 content += "<a href=\"" + textlink[i_text] + "\" target=\"" + texttarget[i_text] + "\" style=\"position:relative;font-family:\'" + textfont + "\';font-size:" + textfontsize + "pt;font-weight:" + textweight + ";text-decoration:" + textdecoration + ";color:" + textfontcolor + ";font-style:" + textitalic + ";\" onMouseOver=\"this.style.color=\'"+textfontcolorrollover+"\'\" onMouseOut=\"this.style.color=\'" + textfontcolor + "\'\">"
 content += text[i_text]
 content += "</a></td></tr></table>"
}
else {
 content = "<table width=" + tablewidth + " height=" + tableheight + " cellpadding = " + textborder + " cellspacing=0><tr valign=" + textvalign + "><td align=" + textalign + ">"
 content+="<a href=\"" + textlink[i_text] + "\" target=\"" + texttarget[i_text] + "\" style=\"position:relative;font-family:\'" + textfont + "\';font-size:" + textfontsize + "pt;font-weight:" + textweight + ";text-decoration:"+textdecoration + ";color:" + textfontcolor + ";font-style:" + textitalic+";\">"
 content+=text[i_text]
 content+="</a></td></tr></table>"

 framecontent = "<table width=" + tablewidth + " height=" + tableheight + " cellpadding = 0 cellspacing=0 border=" + textborder + "><tr><td>"
 framecontent += "<font color=\"" + textbgcolor + "\">"
 framecontent += "."
 framecontent+="</font>"
 framecontent+="</td></tr></table>"
}
}

if (ie || ns6 || opera) {
if (ns6) {
 textwidth-=2*textborder
 textheight-=2*textborder
}
document.write("<div id=\"roof\" style=\"position:relative;width:"+textwidth+"px;height:"+textheight+"px;font-family:\'"+textfont+"\';border-style:solid;border-color:"+textbordercolor+";border-width:"+textborder+"px;background-color:"+textbgcolor+";\">")

if (!opera && !ns6 ) {
 document.write("<div id=\"tickerbg\" style=\"position:absolute;top:"+-textborder + "px;left:"+-textborder + "px;width:" + textwidth + "px;height:" + textheight + "px;font-family:\'" + textfont + "\';font-size:" + textfontsize + "pt;font-weight:" + textweight + ";font-style:" + textitalic + ";border-style:solid;border-color:" + textbordercolor + ";border-width:" + textborder + "px;background-color:" + textfontcolor + ";overflow:hidden\;filter:alpha(opacity=100)\">")
 document.write("</div>")
}

document.write("<div id=\"ticker\" style=\"position:absolute;top:"+-textborder+"px;left:"+-textborder + "px;width:" + textwidth + "px;height:" + textheight + "px;font-family:\'" + textfont + "\';font-size:" + textfontsize + "pt;font-weight:" + textweight + ";font-style:" + textitalic + ";border-style:solid;border-color:" + textbordercolor+";border-width:" + textborder+"px;overflow:hidden\;\">")
document.write("</div></div>")

window.onload=changecontent
}

else if (ns4) {
document.write("<ilayer name=\"roof\" width="+textwidth+" height="+textheight+">")
 document.write("<layer name=\"tickerframe\" width="+textwidth+" height="+textheight+" top=0 left=0 bgcolor="+textbgcolor+">")
 document.write(framecontent)
 document.write("</layer>")
 document.write("<layer name=\"ticker\" width="+textwidth+" height="+textheight+" top=0 left=0>")
 document.write()
 document.write("</layer>")
document.write("</ilayer>")
window.onload=changecontent
}

3. Save message.js
4. Upload message.js to your public_html folder.
5. Make a file called testmessage.html and put the following code in testmessage.html:
CODE
<html>
 <head>
   <title>Fading Message</title>
 </head>
 <body>
   <script language="javascript" src="message.js"></script>
 </body>
</html>

6. Save testmessage.html
7. Upload testmessage.html to the same folder as message.js

You're all set! smile.gif

Basically, the code
CODE
<script language="javascript" src="message.js"></script>
can be placed anywhere inside the <body> tags as long as message.js is in the same folder as testmessage.html

Have fun! smile.gif

Edit: Tried to fix the code so the forum layout is preserved. sad.gif

 

 

 


Reply

elevenmil
Wow huge code, that'll help a bunch of people, I may even try it out. Nice snlildude.

Reply

snlildude87
QUOTE(elevenmil @ May 3 2005, 02:46 AM)
Wow huge code, that'll help a bunch of people, I may even try it out.  Nice snlildude.
*


No problem. smile.gif Tell me if it works, or just post here. Please! We need to get this thing to page 2, so the forum layout won't be messed up anymore. laugh.gif

Reply

scab_dog
Thankx a Bunch Snildude You DAMAN, Well My Name is daman, but you are the real daman, you helped me in lots of situations, I think you deserv a Rep Point tongue.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. ns4 marquee - 28.33 hr back. (1)
  2. how to make a marquee on invisionfree - 419.28 hr back. (1)
  3. itunes like marquee ticker marquee - 1073.20 hr back. (1)
Similar Topics

Keywords : make, thingy, marquee, whats, top, trap17, forums, pages

  1. Welcome All New Registered Users Of Trap17
    Please read as soon as you join. (0)
  2. Back At Trap17
    (3)
    Well for awhile my brother had been hosting me on his server, but for the past week it's been
    awful, always down, so I've been looking for an alternative. So of course, who else is better
    than trap17? So I am back to posting, and trying to get hosting once again.....
  3. What's Your Outlook On The U.s. Economy?
    (as of September 2008) (0)
    I would like to ask the opinions of Trap17 to see where we think the market is going. The reason
    why I ask is because I'm sick of how the market is STILL on a downturn. Stocks are dropping and
    so are my mutual funds. I've been optimistic in having invested a bit more a couple of months
    ago, but recently I had to snag back those funds at a loss for emergency cash. The rest I've
    left invested, and as of today, I'm looking at over $1000 in losses. I'm wondering if
    anyone can advise me as to why I should keep my funds invested now or pull out and wa....
  4. Websites Like Trap17?
    are there any? (2)
    Are there any websites that give out different things other than free website hosting? if so please
    post.....
  5. My Trap17 Accaunt
    (3)
    sorry, how do i do to cancel my account from trap17 ? tanks....
  6. The Texas "cult?"
    What's everybodys thoughts on this one? (1)
    I have been listening to the media's take on the removal of the over 400 children from the
    Mormon farm in Texas. A lot of it is rather disturbing to me. Just today they mentioned that they
    had found signs of broken bones on I believe the number was about 40 of the children. But I think
    they are really grasping at straws, trying to make these people look bad. These are farm kids, they
    feed livestock, and do other farm work, is their percentage of broken bones higher than the national
    average or is it just more media hype? I think what bothers me most is that th....
  7. Trap17 2008 Award Winners
    (12)
    Finally after many months of waiting, we have the winners of the trap17 awards, we had 652 votes,
    and although some of them were voted multiple times. I did my best to clean those multiple votes
    up, even though someone earlier decided to go multi voting. So here are the winners of this years
    Trap17 awards Winners QUOTE Trapper of the Year Saint Michael 19 OpaQue
    16 jlhaslip 16 Most Valuable Poster Saint Michael 18 jlhaslip 16 OpaQue 4
    Moderator of the Year Velma 17 jlhaslip 16 rvalkass 9 Most Helpful Memb....
  8. Trap17 2008 Awards Voting
    (21)
    Well the voting has begin for the 3rd annual Trap17 awards and I like to toss a pre-victory
    congratulations for those made it to the finals, and a better luck next year for those who did not
    make the cut. Also I ask you all to vote only once, because I should have check this poll script
    before setting it up, and it seems you can vote more then once and I have check out other ways to
    set this up as well. I have faith that people will be honorable in their selections regardless of
    the stupidity I put in for not checking this script earlier. Also some categories had to....
  9. Conspiracy Theories, You Decide Whats Real!
    (10)
    I didn't know where to put this but here it goes with a couple of our (me and my friends)
    conspiracy theories, QUOTE Man has not yet landed on the moon. Here is some proof. #1 The
    astronauts could not have survived the trip because of exposure to radiation #2 The photos were
    altered: the Crosshairs on some photos appear to be behind objects, rather than in front of them
    where they should be #3 The quality of the photographs is implausibly high. #4 There are no stars in
    any of the photos, and astronauts never report seeing any stars from the capsule windows. #5 ....
  10. 2008 Trap17 Awards
    (36)
    Introduction Welcome to the 3rd Annual Trap17/Forum Awards, this year we will be adding in
    some new categories to the ever growing forums and with the number of active members the competition
    to recieve these awards should be better then ever. As usual we will start with nominations this
    will last till the end of the month and that way it will give everyone plenty of time to send in
    theri nominations. Also You can nominate your but please be reasonable if you don't actively
    post in some forums don't nominate yourself in every. Besides there are catego....
  11. Thank You Trap17 Community!
    (3)
    Well I'd just like to say thank you to everyone. You make up... hmm... let me check... 44.00%
    of my hits. Thank you greatly. I also want to thank the trap17 owners(whatever they're called)
    for the awesome hosting.....
  12. Trap17 Themes
    Could someone help? (1)
    I have searched the forums and I cannot find a thread that posts which themes there are for the
    site. I dont mind this theme, but if there are any others could someone let me know? I would love to
    apply for free hosting now, and all i have to do is pick my theme. thankz **EDIT** im going to
    assume that it meant "theme" as in "what my site is going to be about" lol i thought it meant like a
    skin... Could someone delete?....
  13. Birthday Boy Opaque
    Happy Birthday Trap17 Admin OpaQue (30)
    Hello, Another year older yes boys and girls It is OpaQue's birthday today but wait it
    isn't his birthday yet.. It is in another 4 hours /tongue.gif" style="vertical-align:middle"
    emoid=":P" border="0" alt="tongue.gif" /> i.e 1st of December is OpaQue's birthday. I am happy
    to wish him a very happy birthday for he has worked his *bottom* off for this forum and has never
    taken a time out.. I mean whenever I come online, he is online and the weird bit is that we have
    different time zones so that is a bit freaky to see him in the middle of the night working o....
  14. What Does Your Username Mean?
    Your Trap17 name (76)
    On GaiaOnline.com, people in the forums say "le" before some things. For example: they say "le bump"
    or "le sigh" just to be random and silly. That's how I came up with "le" in my name. Krissy is
    short for my name, Kristen. So, that's how I came up with lekrissy. /tongue.gif"
    style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> What does your name mean?....
  15. Goodbye Trap17
    (8)
    Goodbye everybody. It was nice knowing you all. You guys have a nice site going and i like how you
    guys have free hosting. But since i do not need the free hosting anymore, and i am registered at
    like 10 other forums i will not be using trap17 anymore. Thanks buffalohelp for all of your help
    when i needed it for my sites, and forums. Thanks to everybody else that helped out too. Goodbye. if
    you guys would like to see me still visit www.gfxgamers.co.nr ~savagemonkeyz14~....
  16. Get Paid To Post On Forums?
    Links, Resources for Pay for Writing, Earn from Forums (17)
    Get Paid to Post on Forums I have seen these all over, could people maybe give me a
    short list on where I could post on forums and get paid? I am a freelance writer, and I know this
    is one option. I tried searching it, but word of mouth always works best. Thanks in advance!
    Note: Please move if needed, I wasn't sure if I should do it in the Make Money forum, or not.
    At Trap17.com - This very site, You get paid in terms of CREDITS. These credits are used to keep up
    your Web Hosting account (which we give for FREE). The Web Hosting is of top ....
  17. Why Do You Post In Trap17 ?
    (36)
    since trap17 is a favourite site for all of us who are posting here, i was wondering what are the
    main reasons behind that keeps us motivated and go on posting at trap17.so lets find out by casting
    a poll here ! Modified the poll. ....
  18. What's Your Music Player
    you current music player device (48)
    well,with the rapaid technology development,more and more good music player come out.but as a
    classical player could not be replaced by new product IMO... whats kind of music player do you guys
    use now: ? ).old style tape recorder with cassette /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> a).walkman /cool.gif' border='0'
    style='vertical-align:middle' alt='cool.gif' /> .mp3(including flash and hdisk mode) c).MD d).CD
    player e).handset ?? f).mp4 g).game controlor with music player(like psp) ? ).others you used
    usually /rolleyes.gif' bord....
  19. Where Do You Spend Your Time While Online?
    That is, other than on Trap17... (45)
    Well? I've been looking for some decent forums as of late. These are nice, but the activity is a
    bit low at times. The only other place I really visit often is TalkBass.com. Anyways, if you visit
    any other forums, post the name/location of them, and give a short description of what the main
    theme of the community is (ex. - Talkbass.com deals with topics for bass players).....
  20. Whats The Meaning Of...
    ...PS (7)
    you know when you write a letter sometimes people add PS for example: Dear Mr.Example, I am
    writing this letter as an example of what i am trying to say at trap17 forums. after i finish
    stating what i was saying i stop writing to you ok laters. Your Friend, -Microsoft P.S. What
    does P.S. Stand for? /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' />
    so you get what im trying to ask what does P.S. stand for it just happens that i dont know and if
    someone told me what if meant i guess i forgot /blink.gif' border='0' style='vertical-ali....
  21. Whats Your Favorite Thing To Do?
    What is it? (39)
    My favorite thing to do is Either,Play football,Watch Football,play football as a Video game,or play
    on the computer......I love football I wish to stick with it as long as I can.Which I hope will be
    forever,Well I like the computer alot,but not as much as football.The computer is a hobby though it
    is something to learn about since,I dont know much about Computers I would like to learn.........
  22. Whats Your Name And Meaning Of It
    tell the meaning of ya name (35)
    My first name is kenneth and it means handsome,born of fire, and royal oath.My name is Gaelic,
    Scottish, and Old English. When I was little I wanted to change my name badly because I wanted a
    name starting with the letter 'D' And my mom would never change it for me and she told me I
    can change it when I get grown if I wanted to (I am not grown yet /dry.gif' border='0'
    style='vertical-align:middle' alt='dry.gif' /> ) But see my mom best friend named me and all of a
    sudden she died of a blood clog about a year ago.So I decided not to change it. I wanted my ....
  23. How Many Hours A Day You Spend In Trap17
    just let me know that your status (59)
    i'm just not sure of it for everyone. i just paid half hour per day evenly.. i just wanna to
    buy a host but their always many many choice on interenet /sad.gif' border='0'
    style='vertical-align:middle' alt='sad.gif' /> my friend has bought the host through
    computinghost.com,but bad luck,we test it,the result is the speed of it not so good i think..
    Merging double posts. ....
  24. Which Forums Would You Prefer?
    Good for people creating communities... (13)
    I'm using InvisionFree board... I wanna know what others think about other boards and their
    reasons for it.......
  25. Worth Of A 1935 Silver Certificate
    What's the worth? (6)
    I've had a 1935 Silver Certificate series 1935 F for while now, and I'm pondering its worth.
    It has no creases but it's well-worn. The number on the back lower right corner is 6407. Does
    that pertain to the value at all? Do any of you perhaps know the value of this?....
  26. What's Your Favourite Quote/es?
    Said what is it and it'll say who are you. (32)
    I ask simply what's your favourite quote/es. It can be of everyone but it's will better if
    it has been said by: - politics/kings/popes/presidents/generals - writers/philisophers - scientists
    So please don't write quotes of your grandmather (if it isn't Marie Curie /biggrin.gif'
    border='0' style='vertical-align:middle' alt='biggrin.gif' /> ) or drawn by a film (a book is OK).
    My favourite is the same that you can find in my signature but I like very much also these: - "Dieu
    est mon droit" ("God is my right") - "Dividi et impera" (about, "Split and rul....
  27. Trap17 Community Building Project!
    make your contribution... (95)
    Ok, this is the Trap17 community Project... /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" /> How this works is, you design a 2D shop front that can be no larger
    that 200px wide and 400px high. After you make your shop front, just post it here and we will add
    it to the street... To view the street as it progresses, you can see it HERE ! So what are
    you waiting for? Get making! Oh, and have fun!....
  28. The Trap17 Story
    (92)
    I got hundreds of PM's asking what the hell is trap17, how did I get this name, what does it
    mean.. there is also a thread open regarding this. While most of the people are still wondering,
    what does trap17 mean ?? Ok! Time to open up the secret! I used to play CS in a gaming
    zone at my place called Trap17. I used to waste 8 hours out of my life,everyday in that place and
    I kept doing it for about 2-3 years! After which that gaming zone was converted into a Gaming
    Shop where now Game CD's are sold. Its name was changed from Trap17 to Cobra! ....
  29. Whats Ur Favorite Animal?
    (16)
    my favorite animal would have to be a kamoto dragon lol i like em cuz they're so big....
  30. What's Your Current Homepage?
    (101)
    What's your current homepage? I currently have Google as my home page. It's very fast and
    very good when you want to search something.....

    1. Looking for make, thingy, marquee, whats, top, trap17, forums, pages

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for make, thingy, marquee, whats, top, trap17, forums, pages

*MORE FROM TRAP17.COM*
advertisement



How Do You Make A Thingy Like Marquee - How To Do Whats On Top of TRAP17 Forums Pages



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE