Post by Peter on Oct 29, 2004 12:13:14 GMT
Code created by Hechizero[/color]
Script Name: "Add" button next to Colors Dropdown List
Description: Create a button next to the colors dropdown list that can add the same color multiple times.
Hack Type: Post-Enable
Version: 1.3
I get mad when sometimes I need to use the same color multiple times. The problem is that the dropdown list only adds a color when changed. So I decided to add a button so that a same option can be selected more than once. Here comes the code:
How to Customize it?
1. Editing the Appereance of the Button (And Position)
Searc for this part in the script:
tds[h+1].innerHTML+='<button type="button" style="font:9px; position:relative; top:-25px; left:90px;" onClick="colors()">Add Color</button>';
And edit the red part to suit your needs; like font-family, font-size, background-color, position, etc. If you leave the underlined part the button will appear next to the dropdown list (look at the preview with position), on the other hand, if you remove it the button will appear below it (look at the preview without position).
2. Editing the text of the Button
Search for this part:
tds[h+1].innerHTML+='<button type="button" style="font:9px; position:relative; top:-25px; left:90px;" onClick="colors()">Add Color</button>';
And edit the red text with the text that you want.
Location: All Footers (including the Main Page Footer if you want it to be displayed when sending PMs).#nosmileys
Script Name: "Add" button next to Colors Dropdown List
Description: Create a button next to the colors dropdown list that can add the same color multiple times.
Hack Type: Post-Enable
Version: 1.3
I get mad when sometimes I need to use the same color multiple times. The problem is that the dropdown list only adds a color when changed. So I decided to add a button so that a same option can be selected more than once. Here comes the code:
<script language="javascript" type="text/javascript">
/* Created by Hechizero - http://www.hechizero.com
"Add" button next to Colors Dropdown List v1.3
This code may not redistributed without the express permission from its creator.
This header must stay intact at all times. */
if(location.href.indexOf("=post")!=-1 || location.href.indexOf("=createpoll")!=-1 || location.href.indexOf("=modify")!=-1 || location.href.indexOf("=imsend")!=-1){
var tds=document.getElementsByTagName("td");
for (h=0;h<tds.length;h++) {
if (tds[h].className=="windowbg2" && tds[h].innerHTML.match("Add tags:")) {
tds[h+1].innerHTML+='<button type="button" style="font:9px; position:relative; top:-25px; left:90px;" onClick="colors();">Add Color</button>';
break;}}}
</script>
How to Customize it?
1. Editing the Appereance of the Button (And Position)
Searc for this part in the script:
tds[h+1].innerHTML+='<button type="button" style="font:9px; position:relative; top:-25px; left:90px;" onClick="colors()">Add Color</button>';
And edit the red part to suit your needs; like font-family, font-size, background-color, position, etc. If you leave the underlined part the button will appear next to the dropdown list (look at the preview with position), on the other hand, if you remove it the button will appear below it (look at the preview without position).
2. Editing the text of the Button
Search for this part:
tds[h+1].innerHTML+='<button type="button" style="font:9px; position:relative; top:-25px; left:90px;" onClick="colors()">Add Color</button>';
And edit the red text with the text that you want.
Location: All Footers (including the Main Page Footer if you want it to be displayed when sending PMs).#nosmileys