| | How Do You Do This:![]() 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. |
|
QUOTE(daman @ May 2 2005, 07:03 AM) How Do You Do This: ![]() 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. 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! 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.htmlHave fun! Edit: Tried to fix the code so the forum layout is preserved.
Wow huge code, that'll help a bunch of people, I may even try it out. Nice snlildude.
QUOTE(elevenmil @ May 3 2005, 02:46 AM) No problem.
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
Recent Queries:-
Keywords : make, thingy, marquee, whats, top, trap17, forums, pages
(3) Well for awhile my brother had been hosting me on his server, but for the past week it's been (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 are there any? (2) Are there any websites that give out different things other than free website hosting? if so please (3) sorry, how do i do to cancel my account from trap17 ? tanks.... 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 (12) Finally after many months of waiting, we have the winners of the trap17 awards, we had 652 votes, (21) Well the voting has begin for the 3rd annual Trap17 awards and I like to toss a pre-victory (10) I didn't know where to put this but here it goes with a couple of our (me and my friends) (36) Introduction Welcome to the 3rd Annual Trap17/Forum Awards, this year we will be adding in (3) Well I'd just like to say thank you to everyone. You make up... hmm... let me check... 44.00% Could someone help? (1) I have searched the forums and I cannot find a thread that posts which themes there are for the Happy Birthday Trap17 Admin OpaQue (30) Hello, Another year older yes boys and girls It is OpaQue's birthday today but wait it Your Trap17 name (76) On GaiaOnline.com, people in the forums say "le" before some things. For example: they say "le bump" (8) Goodbye everybody. It was nice knowing you all. You guys have a nice site going and i like how you 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 (36) since trap17 is a favourite site for all of us who are posting here, i was wondering what are the you current music player device (48) well,with the rapaid technology development,more and more good music player come out.but as a 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 ...PS (7) you know when you write a letter sometimes people add PS for example: Dear Mr.Example, I am What is it? (39) My favorite thing to do is Either,Play football,Watch Football,play football as a Video game,or play 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, 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 Good for people creating communities... (13) I'm using InvisionFree board... I wanna know what others think about other boards and their What's the worth? (6) I've had a 1935 Silver Certificate series 1935 F for while now, and I'm pondering its worth. 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 make your contribution... (95) Ok, this is the Trap17 community Project... /smile.gif" style="vertical-align:middle" emoid=":)" (92) I got hundreds of PM's asking what the hell is trap17, how did I get this name, what does it (16) my favorite animal would have to be a kamoto dragon lol i like em cuz they're so big.... (101) What's your current homepage? I currently have Google as my home page. It's very fast and Looking for make, thingy, marquee, whats, top, trap17, forums, pages
|
![]() 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 |
|