Welcome Graphics Artists With Coders To Graphics N Codes & Stuff!
Graphics N Codes & Stuff Daily With Monthly Events!
Florida
Summer
Monthly With Weekly Awards Winners Here
Please when you make a new post and with every post, you have to reply to other members posts before posting to every new post you make!
Welcome To Graphics N Codes & Stuff :: Advertising, And Coders Heaven Forums :: Members Advertising, And Codes Heaven Forums :: Proboards Codes Forum :: [CB] Additional colour picker. Jim Author Topic: [CB] Additional colour picker. Jim (Read 8 times)
graphicswoman Graphics N Codes Administrator [The Administrator or the website is not your entertaintment, Administrator does not do graphics or codes, but Advertisers, Graphics Artists and Coders are not posting graphics or codes or writings, if not posting graphics or codes or writing you will be banned!] member is offline My cat, poetry writings, traveling, animal with envirmental groups%%VERY SEXY summer style%% Joined: Feb 2008 Gender: Female Posts: 535 Location: Marion County, FL Karma: 0[CB] Additional colour picker. Jim « Thread Started on Oct 27, 2009, 10:29pm »
Description: This adds a box to the right of your UBBC tags, replacing the drop-down colour selector in favor of a box with 6x6 previews of all the colours you choose to have. Preview: http://i35.tinypic.com/a0cah.jpg Code: Global Footers: <style type="text/css"> <!-- font div { float: right; } font table tr td div { float: none; } --> </style> <script type = "text/javascript"> <!-- //Colour picker //Create by James [a_leon] var boxWidth = 88; var boxBorderColor = "#000000"; var HexArr = [ "FF4545","F0387A","FB6C3A","FEBC5E", "BEFD51","54EC40","47FEB7","4BBBFA", "6282FA","C763F5","F958EF","F85858", "EF6395","FB835A","FBC374","CDFA7F", "8FF082","75FDC8","78C9F7","7C96FA", "D485F8","FA8BF3","F57474","EF8AAE", "FB9A78","FDCD89","D8FB9B","ACEEA3", "A3F5D5","92D2F6","93A9FA","DAA3F3", "F6A1F1","FC9B9B","EFADC5","FCAB8E", "FFDAA5","E1F9B7","BCF0B6","C0FCE4", "A1D2EE","ACBBF2","D3AEE5","EDB9EA" ]; if (document.all && !navigator.userAgent.match(/Opera/i)) { boxWidth += 4; } function createElem(elem, isNew, AttObj) { if (isNew) { elem = document.createElement(elem); } if (AttObj) { for(key in AttObj) { if (key == "style") { for(a in AttObj[key]) { elem.style[a] = AttObj[key][a]; } } else { for(a in AttObj[key]) { elem.setAttribute(a, AttObj[key][a]); } } } } if (isNew) { return elem; } } function addEvent(obj, type, fn) { if (obj.addEventListener) { obj.addEventListener(type, fn, false); } else if(obj.attachEvent) { obj["e" + type + fn] = fn; obj[type + fn] = function() { obj["e" + type + fn](window.event); } obj.attachEvent("on" + type, obj[type + fn]); } } var colSel = document.getElementsByTagName("select"); for (var s = 0; s < colSel.length; s ++) { if (colSel.item(s).name == "color") { var BBCell = colSel.item(s).parentNode; var cDiv = createElem("div", 1, { style: { styleFloat: "right", width: boxWidth + "px", padding: "1px", border: "1px solid " + boxBorderColor } }); for (var h = 0; h < HexArr.length; h ++) { var boxDiv = createElem("div", 1, { style: { styleFloat: "left", width: "6px", height: "6px", margin: "1px", backgroundColor: "#" + HexArr[h] }, set: { id: HexArr[h] } }); boxDiv.appendChild(document.createTextNode(" ")); addEvent(boxDiv, "mouseover", function() { this.style.cursor = "pointer"; }); addEvent(boxDiv, "mouseout", function() { this.style.cursor = "auto"; }); addEvent(boxDiv, "click", function() { add("[color=", "[/color]", this.id); }); cDiv.appendChild(boxDiv); } BBCell.removeChild(colSel.item(s)); BBCell.insertBefore(cDiv, BBCell.firstChild); } } //--> </script> -------------------------------------------------------------------------------- Created this for SSDv6, but they decided not to use it in v7. Works in IE, Fx, Opera, Chrome and Safari. I realize that some of the functions are a bit overkill for this code, but they were originally designed to be with an entire forum of coding, I just decided to leave them in instead.
Forum Jump -------------------- » Home -------------------- » Welcome All To Everyone To Graphics N Codes & Stuff -------------------- -------------------- » Welcome All To Members Only Forum, Members Please Sign In! -------------------- -------------------- » Welcome All To Guests, Please Register Otherwise You Can Only Read Outside Of The Boards Of The F... -------------------- -------------------- » No Gawking Or Reading Or Be Banned, Only Advertising Or Graphics Designs To Be Written Or Display... -------------------- -------------------- » Must Read Rules Forum -------------------- - Must Read Rules With Guidelines Forum --- Must Read Rules With Guidelines Forum -------------------- » Welcome Forum -------------------- - Members Welcome Forum --- Members Introductions Info Forum -------------------- » Forum Information Forums -------------------- - Members Information Forums --- Updates With Announcements Forum --- Members Announcements Forum --- Affiliate With Us Forum --- Weblink With Us Forum --- Staff Wanted Apply Within Forum --- Help With Answers Forum -------------------- » Fun Stuff Even Games With Chat Forums -------------------- - Members Fun Even Games With Chat Forums --- Entertainment Forum --- Sports Forum --- Fun With Games Forum --- The Dead Sea Forum --- Jokes Are On Us Forum --- Daily Cartoon Forum --- Horoscope Of The Day Forum --- History On This Day Forum --- Greeting Cards Are Us Forum -------------------- » Hobbies With Lifestyles Even Chat Forums -------------------- - Members Hobbies With Lifestyles Even Chat Forums --- Chat Anything Forum --- Indoor Recreation Chat Forum --- Outdoor Recreation Chat Forum --- Environmental Chat Forum --- Automotive Chat Forum --- Music Chat Forum --- Physical Fit Chat Forum --- Health Chat Forum --- Parenting Chat Forum --- Pets Chat Forum --- Politics Chat Forum --- Technology Chat Forum --- Collections Chat Forum --- Artwork Chat Forum --- Photo Gallery Chat Forum -------------------- » AD, Code, Graphics Contests Forums -------------------- - Members AD, Code, Graphics Contests Forums --- AD Contest Forum --- Code Contest Forum --- Graphics Contest Forum -------------------- » Odds & Ends Forums -------------------- - Members Odds & Ends Forums --- Rate My Poem Forum --- Poetry With Literature Forum --- Photography Help Desk Forum --- Photography Gallery Forum --- Photograph Show Off Forum --- Photography Battle Forum --- Photograph Contests Submissions Forum --- Photograph Of The Week Forum --- Photograph Of The Month Forum -------------------- » Advertising, And Coders Heaven Forums -------------------- - Members Advertising, And Codes Heaven Forums --- Add An AD Forum --- The Forums Directory Forum --- Rate Your Website Forum --- Code Support Forum --- Code Requests Forum --- Code Submissions Forum --- Proboards Codes Forum --- VForums Codes Forum --- Non Proboards Codes Forum --- Myspace Codes Forum --- Code Show Off Forum -------------------- » Coders Contests, & Information Forums -------------------- - Members Coders Contests & Information Forums --- Code Battle Forum --- Code Tutorials Forum --- Code Design Discussion Forum --- Code Contests Submissions Forum --- Code Of The Week Forum --- Code Of The Month Forum -------------------- » Home Of Design With Graphics Forums -------------------- - Members Home Of Design With Graphics Forums --- Graphics Support Forum --- The Graphics Requests Forum --- Graphic Designers With Web Design Installers Forum --- Graphics Designers Premade Images Forum --- Graphic Designers Avatars Forum --- Graphic Designers Backgrounds --- Graphic Designers Banners Forum --- Graphic Designers Mini Banners Forum --- Graphic Designers Buttons Forum --- Graphic Designers Folders Forum --- Graphic Designers Gradients Forum --- Graphic Designers Heads With Bases Gradients --- Graphic Designers Menu Icons Forum --- Graphic Designers Message Icons Forum --- Graphic Designers On & Off Icons Forum --- Graphic Designers Renders Forum --- Graphic Designers Signatures/Userbars Forum --- Graphic Designers Smileys Forum --- Graphic Designers Stars Forum --- Graphic Designers Templates Forum --- Graphic Designers Ubbc Forum --- Graphics Show Off Forum -------------------- » Graphics Contests & Information Forums -------------------- - Members Graphics Contests & Information Forums --- Graphics Battle Forum --- Graphics Designers Tutorials Forum --- Graphic Design Discussion Forum --- Graphics Contests Submissions Forum --- Graphics Of The Week Forum --- Graphics Of The Month Forum
Please when you make a new post and with every post, you have to reply to other members posts before posting to every new post you make!
Click Here To Make This Board Ad-Free
This Board Hosted For FREE By ProBoards Get Your Own Free Message Boards & Free Forums !