for some reason instead of the drop down box showing up it says null.![]()
Code:
- <script type="text/javascript">
- <!--
- if(location.href.match(//post//)){
- var getRow = document.getElementsByTagName("tr");
- for(x=0; x<getRow.length; x++){
- if(getRow[x].cells[0].innerHTML.match(/Smilies/i) && getRow[x].cells[0].width == '15%'){
- var drop = document.getElementById("dropDown");
- getRow[x].cells[1].innerHTML = drop;
- }
- }
- }
- //-->
- </script>
- <div id="dropDown">
- <form action="#">
- <select name="ubbc">
- <option value="none">Select a Smiley </option>
- <option onclick="add_ubbc(' :)');" value="smile">Smile</option>
- <option onclick="add_ubbc(' ;)');" value="wink">Wink</option>
- <option onclick="add_ubbc(' ;D');" value="grin">Grin</option>
- <option onclick="add_ubbc(' 8-)');" value="Cool">Cool</option>
- </select>
- </form>
- </div>
Try this:
Code:
- <div id="dropDown">
- <form action="#">
- <select name="ubbc">
- <option value="none">Select a Smiley </option>
- <option onclick="add_ubbc(' :)');" value="smile">Smile</option>
- <option onclick="add_ubbc(' ;)');" value="wink">Wink</option>
- <option onclick="add_ubbc(' ;D');" value="grin">Grin</option>
- <option onclick="add_ubbc(' 8-)');" value="Cool">Cool</option>
- </select>
- </form>
- </div>
- <script type="text/javascript">
- <!--
- if(location.href.match(/\/post\//)){
- var getRow = document.getElementsByTagName("tr");
- for(x=0; x<getRow.length; x++){
- if(getRow[x].cells[0].innerHTML.match(/Smilies/i) && getRow[x].cells[0].width == '15%'){
- var drop = document.getElementById("dropDown").innerHTML;
- getRow[x].cells[1].innerHTML = drop;
- }
- }
- }
- //-->
- </script>
now its showing [object HTMLDivElement]
link to your forum?
I have tested it and it works... I'm using FF
ahh its working now thanks man, I hadnt copied it properly before. hanks alot man![]()
No worries!![]()
now when I make a post it says "Invalid Post Form Submitted"
you have any idea why this is man ?
are you clicking submit?
Now i know why Wrighty is a coding mod....![]()
Now i know why Wrighty is a coding mod....![]()
LMAO !
and yeah I am![]()
lolz and why might that be?
I have had a look and I doesn't get why... ;/
ah well il just try figure it out
![]()
Can we get a link to your forum?
Well, you can fix codes and arecode well while me i am most likely the opposite. I can do a few codes that most people know.
ah well il just try figure it out
![]()
gimme 2 mins!![]()
Code:
- <div id="dropDown">
- <select name="ubbc">
- <option value="none">Select a Smiley </option>
- <option onclick="add_ubbc(' :)');" value="smile">Smile</option>
- <option onclick="add_ubbc(' ;)');" value="wink">Wink</option>
- <option onclick="add_ubbc(' ;D');" value="grin">Grin</option>
- <option onclick="add_ubbc(' 8-)');" value="Cool">Cool</option>
- </select>
- </div>
- <script type="text/javascript">
- <!--
- if(location.href.match(/\/post\//)){
- var getRow = document.getElementsByTagName("tr");
- for(x=0; x<getRow.length; x++){
- if(getRow[x].cells[0].innerHTML.match(/Smilies/i) && getRow[x].cells[0].width == '15%'){
- var drop = document.getElementById("ubbc")
- getRow[x].cells[1].replaceChild(drop, getRow[x].cells[1].firstChild);
- }
- }
- }
- //-->
- </script>
![]()
3 mins. to make that? It would take me at least a couple of hours for me!![]()
he made most of it if you didn't notice!![]()
I changed 2 maybe 3 lines of it.
3 mins. to make that? It would take me at least a couple of hours for me!![]()
He didn't remake it from scratch in three minutes; he just modified the already-finished one.![]()
![]()
THANKS DUDE ! WRIGHTY![]()
![]()
![]()
Glad it's finally finished!
![]()
now the drop down isnt showing up just a little input box
click
change:
<select name="ubbc">
to
<select id="ubbc">
Code:
- <div id="dropDown">
- <select name="ubbc">
- <option value="none">Select a Smiley </option>
- <option onclick="add_ubbc(' :)');" value="smile">Smile</option>
- <option onclick="add_ubbc(' ;)');" value="wink">Wink</option>
- <option onclick="add_ubbc(' ;D');" value="grin">Grin</option>
- <option onclick="add_ubbc(' 8-)');" value="Cool">Cool</option>
- </select>
- </div>
- <script type="text/javascript">
- <!--
- if(location.href.match(//post//)){
- var getRow = document.getElementsByTagName("tr");
- for(x=0; x<getRow.length; x++){
- if(getRow[x].cells[0].innerHTML.match(/Smilies/i) && getRow[x].cells[0].width == '15%'){
- var drop = document.getElementById("dropDown").getElementsByTagName("select")[0];
- getRow[x].cells[1].replaceChild(drop, getRow[x].cells[1].firstChild);
- }
- }
- }
- //-->
- </script>
Try that.![]()
EDIT: Fine Wrighty, post a millisecond before me. >.<![]()
or that cr0w!![]()
or that cr0w!![]()
Your way will run quicker; mine has to find the div, then return the dropdown in an array before grabbing the info from it; yours just directly grabs the dropdown.![]()
exactly!![]()
![]()
crows code brings back the drop down box but it says "Invalid Post Form Submitted" again.
and my way?
sorryyour way just kepps it the same as it was.
shouldn't do... browser?
opera
let me test it in that then...
Global header:Code:
- <div id="dropDown">
- <select id="ubbc">
- <option value="none">Select a Smiley </option>
- <option onclick="add_ubbc(' :)');" value="smile">Smile</option>
- <option onclick="add_ubbc(' ;)');" value="wink">Wink</option>
- <option onclick="add_ubbc(' ;D');" value="grin">Grin</option>
- <option onclick="add_ubbc(' 8-)');" value="Cool">Cool</option>
- </select>
- </div>
Global FooterCode:
- <script type="text/javascript">
- <!--
- if(location.href.match(/\/post\//)){
- var getRow = document.getElementsByTagName("tr");
- for(x=0; x<getRow.length; x++){
- if(getRow[x].cells[0].innerHTML.match(/Smilies/i) && getRow[x].cells[0].width == '15%'){
- var drop = document.getElementById("ubbc")
- getRow[x].cells[1].replaceChild(drop, getRow[x].cells[1].firstChild);
- }
- }
- }
- //-->
- </script>
That works!![]()
THANKS MANyou are a legend
About time it worked!![]()
Sorry, I didn't test in Opera
Does an error come with the "Invalid Message", or is that all it says?
it did but not anymore![]()
it did but not anymore![]()
My bad, didn't see the third page [again]. >.<
can I has my [f] Back?![]()