Pages: 123

  2008-02-01 23:44:38

blurrycloud
» FTalkAgent
FTalk Level: zero
2177
0
1969-12-31

Credits to my epic friend shirow for his code shaking JS Banner :wow: and my work rotating linkages :retard: Img Preview: [img]http://img405.imageshack.us/img405/7981/58342247bb3.gif[/img] [q

Credits to my epic friend shirow for his code shaking JS Banner :wow: and my work rotating linkages :retard: Img Preview: [img]http://img405.imageshack.us/img405/7981/58342247bb3.gif[/img] [quote]:arrow: This is for the people who loves to create banner... but they can't show all their banners in their profile subsequently and for others who loves to use banner to their profile... So I made it possible for you guys here's the trick...[/quote] Browser Compatibility : Cross Browser [quote]:arrow: If you have banner on your css... Remove it... :arrow: Do not hide your nav lang... :|[/quote] Let's Start... Put this inside your onload handler [quote]var NavLang = document.getElementById("navLang"); var masamune = "<div align='center'><img src='[b]BANNER_URL1[/b]' id='adBanner12' border='0' WIDTH='[b]???[/b]'HEIGHT='[b]???[/b]'></div>"; navLang.innerHTML = masamune; navLang.style.height="auto"; navLang.style.overflow="hidden"; window.setInterval("cycle12()",3000);[/quote] Note: :arrow: BANNER_URL1 should be equal to the BANNER_URL1 inside the final code .. [quote]Shirow said: its up to you how will be large the banner but i suggest you should set the height at [b]300[/b] and the width is [b]820[/b] ^__^ well it depends on you =D =D **instead of flogo(friendster logo) you can use navlang... because of (TOA) of Friendster[/quote] Final Step Place this under your JS codes.... ( I tried to input 3 banners ) In this code [quote]//Always-on-top message //For full source code, and Terms Of use, visit friendstertalk.com //Banner Rotator by blurrycloud var imgs12 = new Array("[b]BANNER_URL1[/b]","[b]BANNER_URL2[/b]","[b]BANNER_URL3[/b]"); var currentAd12 = 0; var imgCt12 = [color=red]3[/color]; function cycle12() { if (currentAd12 == imgCt12) { currentAd12 = 0; } var banner12 = document.getElementById('adBanner12'); banner12.src=imgs12[currentAd12] currentAd12++; }[/quote] Ex .. BANNER_URL1 :arrow: [url]http://i204.photobucket.com/albums/bb202/tyler_anime1/Banner.jpg[/url] Note Again: :D var imgCt12 = [color=red]#[/color] should be equal to the banners you have inside imgs12 = Array for ex you have 8 banners the code below shoud be var imgCt12 = [color=red]8[/color] you want to add more banner?... just look for this code above [quote]new Array("[b]BANNER_URL1[/b]","[b]BANNER_URL2[/b]","[b]BANNER_URL3[/b]","[b]BANNER_URL4[/b]", "[b]BANNER_URL5[/b]","[b]BANNER_URL6[/b]");[/quote] Just remember to change the imgCt12 = [b]value[/b] depeding on the number of your images.. [quote]if you want to change the time interval look for this code above window.setInterval("cycle12()",[b]3000[/b]); 1000 - 1 sec (FASTER ROTATION) :lol: 2000 - 2 seconds 3000 - 3 seconds 4000 - 4 seconds 5000 - 5 seconds and so on.... you can also use GIF, JPG, PNG extension images...[/quote] That's It.. Easy ei ?? Goodluck =D [quote]PS: Party again to my testing profile ... Currently playing: Gangstah-Bop LOLS[/quote]

Last edited by blurrycloud (2008-09-13 07:14:48)

Pages: 123

Board footer

© 2024 F Talk

Current time is 12:37

[ 12 queries - 0.021 second ]
Privacy Policy