Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.52 KB | None | 0 0
  1. /*This css bit can go anywhere where it says <style type="text/css">*/
  2.  
  3. #wrapper #colourbuttons {
  4. width:60px;
  5. height:665px ;
  6. background-color: rgba(10,10,10,0.6);/*This is the dark bg for the sidebar, change first 3 for colour and last for opacity*/
  7. position:fixed;
  8. top:0px;
  9. left:0px;
  10. }
  11. /*red*/
  12. #button1 {
  13. background-image: url(http://i.imgur.com/zcor5R3.png); /*this is what the button looks like*/
  14. width: 50px;
  15. height: 50px;
  16. margin: 5px;
  17. }
  18. /*bronze*/
  19. #button2 {
  20. background-image: url(http://i.imgur.com/Lflm8KF.png);
  21. width: 50px;
  22. height: 50px;
  23. margin: 5px;
  24. }
  25. /*yellow*/
  26. #button3 {
  27. background-image: url(http://i.imgur.com/xJp83xx.png);
  28. width: 50px;
  29. height: 50px;
  30. margin: 5px;
  31.  
  32. }
  33.  
  34. /*lime-green*/
  35. #button4 {
  36. background-image: url(http://i.imgur.com/xVZKDnH.png);
  37. width: 50px;
  38. height: 50px;
  39. margin: 5px;
  40. }
  41.  
  42. /*green*/
  43. #button5 {
  44. background-image: url(http://i.imgur.com/BSaSQRc.png);
  45. width: 50px;
  46. height: 50px;
  47. margin: 5px;
  48. }
  49.  
  50.  
  51.  
  52. /*teal*/
  53. #button6 {
  54. background-image: url(http://i.imgur.com/Iz9ZllK.png);
  55. width: 50px;
  56. height: 50px;
  57. margin: 5px;
  58. }
  59.  
  60. /*blue*/
  61. #button7 {
  62. background-image: url(http://i.imgur.com/hqB5qtR.png);
  63. width: 50px;
  64. height: 50px;
  65. margin: 5px;
  66. }
  67.  
  68. /*lavender*/
  69. #button8 {
  70. background-image: url(http://i.imgur.com/R5t0XKk.png);
  71. width: 50px;
  72. height: 50px;
  73. margin: 5px;
  74. }
  75.  
  76. /*purple*/
  77. #button9 {
  78. background-image: url(http://i.imgur.com/bO2g5cV.png);
  79. width: 50px;
  80. height: 50px;
  81. margin: 5px;
  82. }
  83.  
  84. /*peach-y pink*/
  85. #button10 {
  86. background-image: url(http://i.imgur.com/qMu6mUP.png);
  87. width: 50px;
  88. height: 50px;
  89. margin: 5px;
  90. }
  91.  
  92. /*greyish pink*/
  93. #button11 {
  94. background-image: url(http://i.imgur.com/VFTeyLL.png);
  95. width: 50px;
  96. height: 50px;
  97. margin: 5px;
  98. }
  99.  
  100. /*grey*/
  101. #button12 {
  102. background-image: url(http://i.imgur.com/JCiRb5u.png);
  103. width: 50px;
  104. height: 50px;
  105. margin: 5px;
  106. }
  107.  
  108.  
  109.  
  110. <!--This whole thing needs to go in the body. If you place it just in the body the background for the buttons will completely vanish. If you want it with that try to find a wrapper within the body in which most things are placed and put it there
  111. If the buttons seem to take the whole space of the screen, pushing all your posts down, make sure you pasted this below the title not above it-->
  112.  
  113. <div id="colourbuttons">
  114. <div id="button1" onclick="changebg1()"></div>
  115. <div id="button2" onclick="changebg2()"></div>
  116. <div id="button3" onclick="changebg3()"></div>
  117. <div id="button4" onclick="changebg4()"></div>
  118. <div id="button5" onclick="changebg5()"></div>
  119. <div id="button6" onclick="changebg6()"></div>
  120. <div id="button7" onclick="changebg7()"></div>
  121. <div id="button8" onclick="changebg8()"></div>
  122. <div id="button9" onclick="changebg9()"></div>
  123. <div id="button10" onclick="changebg10()"></div>
  124. <div id="button11" onclick="changebg11()"></div>
  125. <div id="button12" onclick="changebg12()"></div>
  126.  
  127.  
  128. <script>
  129. function changebg1()
  130. { document.body.style.background = "#E62929 url(http://i.imgur.com/XHechNJ.jpg) top right fixed" ;
  131. document.body.style.backgroundSize="100%";
  132.  
  133. }
  134.  
  135.  
  136. function changebg2()
  137. { document.body.style.background = "#de913e url(http://i.imgur.com/4O6cAcV.jpg) top right fixed" ;
  138. document.body.style.backgroundSize="100%";
  139.  
  140. }
  141.  
  142.  
  143.  
  144. function changebg3()
  145. { document.body.style.background = "#FFFF45 url(http://i.imgur.com/ccXM2tt.jpg) top right fixed" ;
  146. document.body.style.backgroundSize="100%";
  147. }
  148.  
  149.  
  150.  
  151. function changebg4()
  152. { document.body.style.background = "#99FF33 url(http://i.imgur.com/ZaaJFPO.jpg) top right fixed" ;
  153. document.body.style.backgroundSize="100%";
  154. }
  155.  
  156.  
  157. function changebg5()
  158. { document.body.style.background = "#8cc25f url(http://i.imgur.com/auJvxsP.jpg) top right fixed" ;
  159. document.body.style.backgroundSize="100%";
  160. }
  161.  
  162.  
  163. function changebg6()
  164. { document.body.style.background = "#75c9a3 url(http://i.imgur.com/nsYJozI.jpg) top right fixed" ;
  165. document.body.style.backgroundSize="100%";
  166. }
  167.  
  168. function changebg7()
  169. { document.body.style.background = "#74a7b8 url(http://i.imgur.com/Ntz1uDi.jpg) top right fixed" ;
  170. document.body.style.backgroundSize="100%";
  171. }
  172.  
  173. function changebg8()
  174. { document.body.style.background = "#af8aff url(http://i.imgur.com/Pl7mbxp.jpg) top right fixed" ;
  175. document.body.style.backgroundSize="100%";
  176. }
  177.  
  178. function changebg9()
  179. { document.body.style.background = "#B66EE0 url(http://i.imgur.com/OLPAZXe.jpg) top right fixed" ;
  180. document.body.style.backgroundSize="100%";
  181. }
  182.  
  183. function changebg10()
  184. { document.body.style.background = "#FFAC9F url(http://i.imgur.com/rgSM5hu.jpg) top right fixed" ;
  185. document.body.style.backgroundSize="100%";
  186. }
  187.  
  188. function changebg11()
  189. { document.body.style.background = "#caaaa7 url(http://i.imgur.com/BhLl5cf.jpg) top right fixed" ;
  190. document.body.style.backgroundSize="100%";
  191. }
  192.  
  193. function changebg12()
  194. { document.body.style.background = "#969696 url(http://i.imgur.com/GGABLGW.jpg) top right fixed" ;
  195. document.body.style.backgroundSize="100%";
  196. }
  197. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement