Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Pimp My Site! > Multiple Banner Images
Kelric (Guild Admin) 8/20/2005 8:52 PM EST : Multiple Banner Images
Kelric
Posts: 1095
Zomgawsh Poster

I've seen some guild sites where they use multiple banner images (likeis just randomly pics some). Was wondering what code would be involvedin that. thanks.

-----------------------
Kelric@iglide.net
Kelric 50th Sorcerer--GM of Albions Crusaders of Morgan
Kelric 50 Necromancer--GM of Albions Crusaders of Lamorak
Dalveni 50th Necromancer
Saogan 50th Cleric
Zohon 40st Scout
Admin--Albions Roundtable Raids on Lamorak
bah
TopBottom

Cosmic Titan (New Admin) 8/30/2005 9:25 AM EST : RE: Multiple Banner Images

Cosmic Titan
Posts: 5580
Zomgawsh Poster

Can you please post links to some of the sites in question?
TopBottom

Sadia (Guild Admin) 9/13/2005 4:11 PM EST : RE: Multiple Banner Images

Sadia
Posts: 1484
Zomgawsh Poster

Try this:

    <DIV class="BannerArea">
     <!-- Custom Banner --><center>
var r=Math.random()
if (r<0.1)
{
("<img src='url'")
}
if (r>=0.1 && r<0.2)
{
("<img src='url'")
}
if (r>=0.2 && r<0.3)
{
("<img src='url'")
}
if (r>=0.3 && r<0.4)
{
("<img src='url'")
}
if (r>=0.4 && r<0.5)
{
("<img src='url'")
}
if (r>=0.5 && r<0.6)
{
("<img src='url'")
}
if (r>=0.6 && r<0.7)
{
("<img src='url'")
}
if (r>=0.7 && r<0.8)
{
("<img src='url'")
}
if (r>=0.8 && r<0.9)
{
("<img src='url'")
}
if (r>0.9)
{
("<img src='url'")
}
</script>
</center>
<!-- Custom Banner Ends --></DIV>
TopBottom

Kelric (Guild Admin) 9/14/2005 2:17 AM EST : RE: Multiple Banner Images
Kelric
Posts: 1095
Zomgawsh Poster

name="7391402">

Now what if i had a JPEG i wanted to display instead of banner images (in a content box, what do i change? THANKS!

-----------------------
Kelric@iglide.net
Kelric 50th Sorcerer--GM of Albions Crusaders of Morgan
Kelric 50 Necromancer--GM of Albions Crusaders of Lamorak
Dalveni 50th Necromancer
Saogan 50th Cleric
Zohon 40st Scout
Admin--Albions Roundtable Raids on Lamorak
bah
TopBottom

Sadia (Guild Admin) 9/14/2005 9:38 AM EST : RE: Multiple Banner Images

Sadia
Posts: 1484
Zomgawsh Poster

I'm not sure I understand the question.
TopBottom

537156240_Inactive (New Admin) 4/24/2006 9:33 AM EST : RE: Multiple Banner Images
537156240_Inactive
Posts: 1093
Zomgawsh Poster

You would enter the full address of the image, like so:

http://www.wherevermypicturesare.com/banner1.jpg

where it says:  img src='url'"

by replacing just the letters:   url

so it would become:

img src='http://www.wherevermypicturesare.com/banner1.jpg'"


URL = the address of something on the Internet, so what you're doing is telling the code where to go to find your pictures you want to use.  You just use the same address but change the name of the picture file (i.e., banner2.jpg, banner3.jpg, someotherpicilikeformybanner.jpg, etc.).  I dunno any code, me but I'm guessin' you just remove the extra lines of it after you get in as many images as you want rotated.

Hope that helps, and I'm all about trial and error with lack of knowledge, so someone can fix whatever mistakes I made in explaining, ha.

Also, THANKS for the topic and, Sadia, for the code.  I've been wondering myself how to do this so I'll try it.
TopBottom

Pwyll-Uther (New Admin) 4/25/2006 9:00 AM EST : RE: Multiple Banner Images
Pwyll-Uther
Posts: 241
Fingers of Fury!

have a look at the banner for my guildportal site
if you need help after that, email me
TopBottom

537150765_Inactive (New Admin) 4/29/2006 9:57 AM EST : RE: Multiple Banner Images
537150765_Inactive
Posts: 576
Zomgawsh Poster

Wow, that's pretty cool. I think I'll use that!
TopBottom

537125913_Inactive (New Admin) 5/28/2006 2:10 AM EST : RE: Multiple Banner Images
537125913_Inactive
Posts: 1556
Zomgawsh Poster

Sadia said:
Try this:

    <DIV class="BannerArea">
     <!-- Custom Banner --><center>
var r=Math.random()
if (r<0.1)
{
("<img src='url'")
}
if (r>=0.1 && r<0.2)
{
("<img src='url'")
}
if (r>=0.2 && r<0.3)
{
("<img src='url'")
}
if (r>=0.3 && r<0.4)
{
("<img src='url'")
}
if (r>=0.4 && r<0.5)
{
("<img src='url'")
}
if (r>=0.5 && r<0.6)
{
("<img src='url'")
}
if (r>=0.6 && r<0.7)
{
("<img src='url'")
}
if (r>=0.7 && r<0.8)
{
("<img src='url'")
}
if (r>=0.8 && r<0.9)
{
("<img src='url'")
}
if (r>0.9)
{
("<img src='url'")
}
</script>
</center>
<!-- Custom Banner Ends --></DIV>


Ok, i used this code on my site, http://www.guildportal.com/Guild.aspx?GuildID=27022&TabID=243068

it changes pics whenever you click a new tab, any way to make it like fade/change from one pic to another while staying on same page?

Heres an example
http://www.guildportal.com/Guild.aspx?GuildID=10073&TabID=84100

i would like the images to scroll, that would be very nice

OR, instead of banner scrolling, i post a pic of our latest boss mob kill on homepage, maybe have that box scroll pics instead, any ideas?
TopBottom

Ancandune (New Admin) 5/28/2006 4:51 AM EST : RE: Multiple Banner Images
Ancandune
Posts: 739
Zomgawsh Poster

The Brewmasters banner uses a Shockwave/Flash movie. Here's an introduction on how to create Shockwave/Flash movies:http://computer.howstuffworks.com/web-animation7.htmHope that helps.
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%