# Can I specify random logos?

**URL:** <https://meta.discourse.org/t/can-i-specify-random-logos/39339>\
**Category:** Product Support\
**Created:** [10 בפברואר,‏ 2016,‏ 2:39pm UTC](https://meta.discourse.org/t/can-i-specify-random-logos/39339 "2016-02-10T14:39:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Alankrit\_Choudh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alankrit_choudh/32/119698_2.png) [@Alankrit\_Choudh](https://meta.discourse.org/u/Alankrit_Choudh)\
**Post date:** [10 בפברואר,‏ 2016,‏ 5:06pm UTC](https://meta.discourse.org/t/can-i-specify-random-logos/39339/2 "2016-02-10T17:06:11Z")

</div>

You could do it with JS i suppose, here is code i hope it works

```plaintext
<script>
if (document.getElementById) { window.onload = swap };
function swap() {
var numimages=4;
rndimg = new Array("IMAGE URL 1", "IMAGE URL 2", "IMAGE URL 3", "IMAGE URL 4");
x=(Math.floor(Math.random()*numimages));
randomimage=(rndimg[x]);
document.getElementById("banner").style.logo-big = "url("+ randomimage +")";
}
</script>

```

PS this only works on **hard refresh**. also the css to big logo would be

```plaintext
.logo-big { 
background-image: url('DEFAULT LOGO IMAGE URL HERE');
}

```

The JS would work because i am using that to rotate my banner image randomly on every hard refresh not sure the exact code for logo CSS.

---

_[View the full topic](https://meta.discourse.org/t/can-i-specify-random-logos/39339)._
